Skip to content

Commit

Permalink
updated to use ButtonFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
The-AhmadAA committed Oct 14, 2023
1 parent fba3f30 commit 5b7dd16
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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
Expand Down

0 comments on commit 5b7dd16

Please sign in to comment.