TEST SCREEN
Everything is same with previous test screens. I added a table and buttons int also, set a sliding animation to table
-
SETTING UP ANIMATED MENU
Extremely fast implementation
Everything is same with previous test screens. I added a table and buttons int also, set a sliding animation to table
-
SETTING UP ANIMATED MENU
Extremely fast implementation
- Created a table
- Gave a slidng animation action
- Added 3 ButtonGames and Texts
- Done!
private void setUpMainMenu() { // #6.1 TEST // Create table button // Animate from outside in // ######################################################################## Table table = MenuCreator.createTable(true, Assets.getSkin()); table.setPosition(getStage().getWidth() + 50, table.getY()); table.addAction(Actions.moveTo(getStage().getWidth() - 550, table.getY(), 0.9f)); table.row(); getStage().addActor(table); // #6.2 TEST // Random buttons // ############################################################################### ButtonGame btnLevels = MenuCreator.createCustomGameButton(Assets.btnAllMenu,Assets.btnAllMenuPressed); btnLevels.setText(Assets.font2, "Levels", true); btnLevels.setTextPosXY(25, 45); table.add(btnLevels).size(230, 62).uniform().pad(2); table.row(); ButtonGame btnSettings = MenuCreator.createCustomGameButton(Assets.btnAllMenu,Assets.btnAllMenuPressed); btnSettings.setText(Assets.font2, "Settings", true); btnSettings.setTextPosXY(25, 45); table.add(btnSettings).size(230, 62).uniform().pad(2); table.row(); ButtonGame btnAbout = MenuCreator.createCustomGameButton(Assets.btnAllMenu,Assets.btnAllMenuPressed); btnAbout.setText(Assets.font2, "About", true); btnAbout.setTextPosXY(25, 45); table.add(btnAbout).size(230, 62).uniform().pad(2); }
No comments:
Post a Comment