package net.cis.client.login;
import com.jme3.app.SimpleApplication;
import com.jme3.niftygui.NiftyJmeDisplay;
import de.lessvoid.nifty.Nifty;
public class TestNifty extends SimpleApplication {
private Nifty nifty;
public static void main(String[] args) {
TestNifty app = new TestNifty();
app.setPauseOnLostFocus(false);
app.start();
}
@Override
public void simpleInitApp() {
NiftyJmeDisplay niftyDisplay = new NiftyJmeDisplay(assetManager,
inputManager, audioRenderer, guiViewPort);
nifty = niftyDisplay.getNifty();
nifty.fromXml("assets/Interface/LoginScreen/loginScreen.xml", "start", new LoginScreen(null));
guiViewPort.addProcessor(niftyDisplay);
inputManager.setCursorVisible(true);
}
}