SHARE
TWEET
Untitled
a guest
Apr 3rd, 2018
18
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- @Override
- public void show() {
- Gdx.input.setInputProcessor(stage);
- tableRight = new Table();
- tableRight.setFillParent(true);
- tableLeft = new Table();
- tableLeft.setFillParent(true);
- tableCenter = new Table();
- tableCenter.setFillParent(true);
- /*
- tableRight.setDebug(true);
- tableLeft.setDebug(true);
- tableCenter.setDebug(true);
- */
- stage.addActor(tableLeft);
- stage.addActor(tableRight);
- stage.addActor(tableCenter);
- final Label title = new Label("AWESOME GAME TITLE HERE!", skin, "default");
- title.setFontScale(1.6f,1.6f);
- final TextButton profile = new TextButton("Profile", skin, "round");
- final TextButton continueGame = new TextButton("Continue", skin, "round");
- final TextButton newGame = new TextButton("New Game", skin, "round");
- final TextButton loadGame = new TextButton("Load Game", skin, "round");
- final TextButton settings = new TextButton("Settings", skin, "round");
- final TextButton highScore = new TextButton("High Score", skin, "round");
- final TextButton credits = new TextButton("Credits", skin, "round");
- final TextButton exitGame = new TextButton("Exit", skin, "round");
- tableCenter.center().top();
- tableCenter.add(title).uniformX().pad(48, 0, 0, 0);
- tableLeft.left().bottom();
- tableLeft.add(highScore).uniformX().pad(0, 64, 132, 0);
- tableRight.right().bottom();
- tableRight.pad(0, 0, 16, 16);
- tableRight.add(profile).uniformX();
- tableRight.row().pad(4, 0, 0, 0);
- tableRight.add(continueGame).uniformX();
- tableRight.row().pad(4, 0, 0, 0);
- tableRight.add(newGame).uniformX();
- tableRight.row().pad(4, 0, 0, 0);
- tableRight.add(loadGame).uniformX();
- tableRight.row().pad(4, 0, 0, 0);
- tableRight.add(settings).uniformX();
- tableRight.row().pad(4, 0, 0, 0);
- tableRight.add(credits).uniformX();
- tableRight.row().pad(4, 0, 0, 0);
- tableRight.add(exitGame).uniformX();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.
