Exemplo n.º 1
0
 @Override
 public void show() {
   ready = false;
   if (!VisUI.isLoaded()) VisUI.load(VisUI.SkinScale.X1);
   multiplexer = new InputMultiplexer();
   screenSize = new Vector2(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
   midpoint = new Vector2(Gdx.graphics.getWidth() / 2, Gdx.graphics.getHeight() / 2);
   stage2d = new Stage(new ScreenViewport(new OrthographicCamera(screenSize.x, screenSize.y)));
   setActiveCamera();
 }
Exemplo n.º 2
0
 /** Loads default VisUI skin for given {@link SkinScale}. */
 public static void load(SkinScale scale) {
   VisUI.scale = scale;
   load(scale.getSkinFile());
 }
Exemplo n.º 3
0
 /** Loads default VisUI skin with {@link SkinScale#X1}. */
 public static void load() {
   load(SkinScale.X1);
 }