Guest User

Untitled

a guest
Feb 25th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. TextButton.TextButtonStyle buttonStyle = new TextButton.TextButtonStyle();
  2. buttonStyle.font = new BitmapFont();
  3. buttonStyle.font.scale(2f);
  4. buttonStyle.fontColor = Color.WHITE;
  5. buttonStyle.overFontColor = Color.LIGHT_GRAY;
  6. buttonStyle.downFontColor = Color.GRAY;
  7.  
  8. newGameButton = new TextButton("New Game", buttonStyle);
  9. continueButton = new TextButton("Continue", buttonStyle);
  10. optionsButton = new TextButton("Options", buttonStyle);
  11. exitButton = new TextButton("Exit", buttonStyle);
  12.  
  13. Table buttonGroup = new Table();
  14. buttonGroup.setFillParent(true);
  15. buttonGroup.align(Align.center);
  16.  
  17. buttonGroup.add(newGameButton);
  18. buttonGroup.row();
  19. buttonGroup.add(continueButton);
  20. buttonGroup.row(); b
  21. uttonGroup.add(optionsButton);
  22. buttonGroup.row();
  23. buttonGroup.add(exitButton);
  24.  
  25. stage.addActor(buttonGroup);
  26.  
  27. Controllers.addListener(new MenuControllerListener(buttonWrapper));
Add Comment
Please, Sign In to add comment