diff --git a/source/core/src/main/com/csse3200/game/components/pausemenu/PauseMenuSettingsButton.java b/source/core/src/main/com/csse3200/game/components/pausemenu/PauseMenuSettingsButton.java index 5ad5022af..f33944a60 100644 --- a/source/core/src/main/com/csse3200/game/components/pausemenu/PauseMenuSettingsButton.java +++ b/source/core/src/main/com/csse3200/game/components/pausemenu/PauseMenuSettingsButton.java @@ -36,9 +36,7 @@ private void addActors() { table = new Table(); table.top().right(); table.setFillParent(true); - ButtonFactory buttonFactory = new ButtonFactory(); -// TextButton pauseMenuBtn = buttonFactory.createButton("Settings"); - TextButton pauseMenuBtn = new TextButton("Settings", skin); + TextButton pauseMenuBtn = ButtonFactory.createButton("Settings"); // Triggers an event when the button is pressed. pauseMenuBtn.addListener( @@ -52,7 +50,7 @@ public void changed(ChangeEvent changeEvent, Actor actor) { table.add(pauseMenuBtn).padTop(300f).padRight(500f); - stage.addActor(table); +// stage.addActor(table); } @Override