
package com.quexten.ravtech.ui;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input.Keys;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.InputListener;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.utils.viewport.ScreenViewport;
import com.kotcrab.vis.ui.VisUI;
import com.quexten.ravtech.RavTech;
import com.quexten.ravtech.util.Debug;

public class RavUI {

	Stage screenStage = new Stage(new ScreenViewport());
	public DebugConsole debugConsole;

	public RavUI () {
		if (!RavTech.isEditor)
			return;
		if (!VisUI.isLoaded())
			VisUI.load(Gdx.files.internal("mdpi/uiskin.json"));
		debugConsole = new DebugConsole();
		RavTech.input.addInputProcessor(screenStage);
		screenStage.addListener(new InputListener() {
			@Override
			public boolean keyDown (InputEvent event, int key) {
				if (key == Keys.F1)
					debugConsole.toggleVisible();
				return true;
			}
		});
		screenStage.addActor(debugConsole);
	}

	public void render () {
		screenStage.act();
		screenStage.draw();
	}

	public Stage getStage () {
		return screenStage;
	}

}

@@ -542,44 +542,8 @@
 ) %7B%0A
-%09%09if (!RavTech.isEditor)%0A%09%09%09return;%0A
 %09%09if

Fix UI Not Being Loaded