Beispiel #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();
 }
Beispiel #2
0
 /** Loads default VisUI skin for given {@link SkinScale}. */
 public static void load(SkinScale scale) {
   VisUI.scale = scale;
   load(scale.getSkinFile());
 }
Beispiel #3
0
 /** Loads default VisUI skin with {@link SkinScale#X1}. */
 public static void load() {
   load(SkinScale.X1);
 }