From 78d077e7d02dceef3b3810cee715a0b5800d2bbe Mon Sep 17 00:00:00 2001 From: Mees Roelofsz Date: Fri, 12 Jan 2024 09:32:36 +0100 Subject: [PATCH] centered pause buttons --- web/js/Menu.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/web/js/Menu.js b/web/js/Menu.js index 8539e21..2117e9d 100644 --- a/web/js/Menu.js +++ b/web/js/Menu.js @@ -77,6 +77,9 @@ function button(r, g, b, buttonX, buttonY, buttonWidth, buttonHeight, buttonText function pauseMenu(){ textAlign(CENTER); - button(255, 255, 255, width / 2 - 90, height / 2, 200, 40, "Resume") - button(255, 255, 255, width / 2 - 90, height / 2 + 50, 200, 40, "Main Menu") + textSize(50); + fill(255, 255, 255); + text("Paused", width / 2, height / 2 - 100); + button(255, 255, 255, width / 2 - 100, height / 2, 200, 40, "Resume"); + button(255, 255, 255, width / 2 - 100, height / 2 + 50, 200, 40, "Main Menu"); } \ No newline at end of file