From fba3f308de2b95c6d94577792be757e3966ae8bb Mon Sep 17 00:00:00 2001 From: Ahmad Abu-Aysha <111224176+The-AhmadAA@users.noreply.github.com> Date: Sat, 14 Oct 2023 14:00:23 +1000 Subject: [PATCH] updated glass Skin font --- source/core/assets/images/ui/buttons/glass.json | 2 +- .../game/components/mainmenu/MainMenuDisplay.java | 12 ++++-------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/source/core/assets/images/ui/buttons/glass.json b/source/core/assets/images/ui/buttons/glass.json index aeb2b5780..8866aff36 100644 --- a/source/core/assets/images/ui/buttons/glass.json +++ b/source/core/assets/images/ui/buttons/glass.json @@ -147,7 +147,7 @@ com.badlogic.gdx.scenes.scene2d.ui.Label$LabelStyle: { } title: { parent: default - font: title + font: game_paused_title fontColor: White } } diff --git a/source/core/src/main/com/csse3200/game/components/mainmenu/MainMenuDisplay.java b/source/core/src/main/com/csse3200/game/components/mainmenu/MainMenuDisplay.java index 559843d32..f0a67c1ff 100644 --- a/source/core/src/main/com/csse3200/game/components/mainmenu/MainMenuDisplay.java +++ b/source/core/src/main/com/csse3200/game/components/mainmenu/MainMenuDisplay.java @@ -66,20 +66,16 @@ private void addActors() { title.setPosition(0, 0); // Create a "Start" TextButton using the default style -// TextButton startBtn = ButtonFactory.createButton("Start"); - TextButton startBtn = new TextButton("Start", skin); + TextButton startBtn = ButtonFactory.createButton("Start"); // Create a "Help" TextButton using the default style -// TextButton helpBtn = ButtonFactory.createButton("Help"); - TextButton helpBtn = new TextButton("Help", skin); + TextButton helpBtn = ButtonFactory.createButton("Help"); // Create a "Settings" TextButton with a custom image -// TextButton settingsBtn =ButtonFactory.createButton("Settings"); - TextButton settingsBtn =new TextButton("Settings", skin); + TextButton settingsBtn =ButtonFactory.createButton("Settings"); // Create a "Quit" TextButton with a custom image -// TextButton exitBtn = ButtonFactory.createButton("Quit"); - TextButton exitBtn = new TextButton("Quit", skin); + TextButton exitBtn = ButtonFactory.createButton("Quit"); // Triggers an event when the button is pressed startBtn.addListener(