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

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


  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

      attenuationY = slider("Attenuation*d", 3);
      attenuationZ = slider("Attenuation*d*d", 5);
      strength = slider("Strength", 1);
      {
        Table table = new Table();
        table.defaults().space(12);
        table.add(useShadow = checkbox(" Use shadow", true));
        table.add(useNormals = checkbox(" Use normals", true));
        table.add(yInvert = checkbox(" Invert Y", true));
        root.add(table).colspan(2).row();
      }
View Full Code Here

      }));
    }

    private Table table (Actor... actors) {
      Table table = new Table();
      table.defaults().space(6);
      table.add(actors);
      return table;
    }

    void toast (String text) {
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.