NiftyGUI help

im wondering how to create a Gui for the game do i need to make an XML file for it or do i make it in the program?

it was designed for loading the ui from a xml file.

but it should be possible to define ur ui in code either, but it will be more difficult.

1 Like

A recently added feature in Nifty 1.3 is the Builder pattern to create Nifty GUIs from within Java. You can find the basics on how it works in this blog post: and you’ll need to learn the rest from the source.

This requires a Nifty nightly build because 1.3 is not yet released and therefore not yet available in a JME3 build.