Nifty to save a game file. How do see a file browser?

Is there a way in Nifty to See a File Browser.

I want to save my level into a file that the user can select the location and file name.



I want the same for the user to pick which save to use.



If nothing else is there something in Nifty that shows the files in a folder. I could just use a save game folder for all.



thanks,

Greg

there is no file browser control build into nifty. you could create a feature request on the sf.net project page if you really want one. maybe someone else sees a need for this and will contribute a solution like ractoc did for the chat control …

is it possible to use javafX FileChooser control?
or jFileChooser?
is there some one who used them in jme and nifty gui??

Do not show the filesystem to user. Instead of that just create a list of savegame files from one directory and show them with some scrollbar or something. This way you can let user to make his own names with all characters, show additional informations or even a miniature of the screen taken during savegame - all you need is to store that data in your savegame file’s header.

2 Likes