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