JME Tutorial for Nifty?

I downloaded nifty gui - the manual, but it does its stuff in lwjgl instead of jme3, so I’m not sure what to do in some parts. For instance, it wants me to implement this block of code, but I’m not sure how to implement it in jme.

// render and update Nifty
boolean done = false;
while (!done) {
    // update Nifty
    if (nifty.update()) {
        done = true; 
    }
    // render Nifty
    nifty.render(true);
    // render other stuff, call LWJGL Display.update() and so on
}

Is there a nifty tutorial that does nifty in jme3?

I think the code you are showing is related to how one could implement Nifty support in LWJGL based app. But all this has been done in JME and you don’t need to worry about it. You will never need to call nifty.update etc.

You can use the manual, or rather you really should use the manual to fiddle around with Nifty. Any JME related part is covered in Creating JME3 User Interfaces with Nifty GUI :: jMonkeyEngine Docs.

3 Likes