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(