HELI-X. transition from swing to NiftyGui

Hello

the transition from the swing interface to NiftyGui is nearly finished. You may have a look here:

[video]http://youtu.be/c4QHk9qul_I[/video]

The code for the file selector might be of use to others. It can be found here: http://hub.jmonkeyengine.org/forum/topic/niftygui-file-selector/

6 Likes

Cool! :smiley: how do you made those graphic panels in flight mode configuration window ? (at 1:52) .I didn’t know that I could make something like that with nifty! .

In the plugins there is an ImagePainter with which you can paint lines on a texture. The integratiion with NiftyGui is made like this:

[java]
Texture2D tex = new Texture2D(painter.getImage());
RenderImage ri = new RenderImageJme(tex);
Element image = nifty.findPopupByName(“name”).findElementByName(“image”);
NiftyImage newImage = new NiftyImage(nifty.getRenderEngine(), ri);
image.getRenderer(ImageRenderer.class).setImage(newImage);
[/java]

1 Like

Very impressive user interface, looks neat. I was wondering in the previous comment-

Texture2D tex = new Texture2D(painter.getImage());

What type of object is the painter?

Heli said: In the plugins there is an ImagePainter

painter is an ImagePainter