SHARE
TWEET

Untitled

a guest Apr 3rd, 2018 18 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @Override
  2.     public void show() {
  3.  
  4.  
  5.         Gdx.input.setInputProcessor(stage);
  6.  
  7.  
  8.         tableRight = new Table();
  9.         tableRight.setFillParent(true);
  10.  
  11.         tableLeft = new Table();
  12.         tableLeft.setFillParent(true);
  13.  
  14.         tableCenter = new Table();
  15.         tableCenter.setFillParent(true);
  16.  
  17.         /*
  18.         tableRight.setDebug(true);
  19.         tableLeft.setDebug(true);
  20.         tableCenter.setDebug(true);
  21.         */
  22.  
  23.  
  24.         stage.addActor(tableLeft);
  25.         stage.addActor(tableRight);
  26.         stage.addActor(tableCenter);
  27.  
  28.  
  29.  
  30.  
  31.         final Label title = new Label("AWESOME GAME TITLE HERE!", skin, "default");
  32.         title.setFontScale(1.6f,1.6f);
  33.  
  34.         final TextButton profile = new TextButton("Profile", skin, "round");
  35.  
  36.         final TextButton continueGame = new TextButton("Continue", skin, "round");
  37.  
  38.  
  39.         final TextButton newGame = new TextButton("New Game", skin, "round");
  40.  
  41.  
  42.         final TextButton loadGame = new TextButton("Load Game", skin, "round");
  43.  
  44.         final TextButton settings = new TextButton("Settings", skin, "round");
  45.  
  46.         final TextButton highScore = new TextButton("High Score", skin, "round");
  47.  
  48.         final TextButton credits = new TextButton("Credits", skin, "round");
  49.  
  50.         final TextButton exitGame = new TextButton("Exit", skin, "round");
  51.  
  52.  
  53.         tableCenter.center().top();
  54.         tableCenter.add(title).uniformX().pad(48, 0, 0, 0);
  55.         tableLeft.left().bottom();
  56.         tableLeft.add(highScore).uniformX().pad(0, 64, 132, 0);
  57.         tableRight.right().bottom();
  58.         tableRight.pad(0, 0, 16, 16);
  59.         tableRight.add(profile).uniformX();
  60.         tableRight.row().pad(4, 0, 0, 0);
  61.         tableRight.add(continueGame).uniformX();
  62.         tableRight.row().pad(4, 0, 0, 0);
  63.         tableRight.add(newGame).uniformX();
  64.         tableRight.row().pad(4, 0, 0, 0);
  65.         tableRight.add(loadGame).uniformX();
  66.         tableRight.row().pad(4, 0, 0, 0);
  67.         tableRight.add(settings).uniformX();
  68.         tableRight.row().pad(4, 0, 0, 0);
  69.         tableRight.add(credits).uniformX();
  70.         tableRight.row().pad(4, 0, 0, 0);
  71.         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. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top