Package com.badlogic.gdx.scenes.scene2d.ui

Examples of com.badlogic.gdx.scenes.scene2d.ui.Table.left()


  private Table buildTopPanel( NinePatchDrawable back, float width, float height ) {

    Table p = ResourceFactory.newTable();
    p.setSize( width, 155 );
    p.defaults().pad( 5, 25, 5, 0 ).align( Align.top );
    p.left();
    p.setBackground( back );

    return p;
  }
View Full Code Here


  private Table buildBottomPanel( NinePatchDrawable back, float width, float height ) {
    Table t = ResourceFactory.newTable();
    t.setSize( width, 130 );
    t.defaults().pad( 10, 15, 0, 15 ).align( Align.top ).expandY();
    t.setY( -98 );
    t.left();
    t.setBackground( back );

    return t;
  }
View Full Code Here

   */
  public static Stage addFPSCounter(Stage stage, Pair<Align, Align> alignment) {
  Table fpsContainer = new Table();
  fpsContainer.setFillParent(true);
  if (alignment.getKey().equals(Align.left))
    fpsContainer.left();
  else
    fpsContainer.right();
  if (alignment.getValue().equals(Align.top))
    fpsContainer.top();
  else
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.