Nifty GUI - the wiki example?

I am wondering about the example provided regarding Nifty GUI.

( http://code.google.com/p/animemaidcode/wiki/jme3_nifty )



I understand everything fine, however, the onClick function ( quit() ?).

Where would one put the code to implement that part of this tutorial? And why is it there if it's not working as is, in an example? :slight_smile:

Twixly said:

I am wondering about the example provided regarding Nifty GUI.
( http://code.google.com/p/animemaidcode/wiki/jme3_nifty )
I understand everything fine, however, the onClick function ( quit() ?).
Where would one put the code to implement that part of this tutorial? And why is it there if it's not working as is, in an example? :)

Ask the guy who made the example, this is not from the jme site.. The screen tag of a nifty file normally has a "controller" value that points at the controller implementation class like this: controller="com.myclass.mycontroller". That class would implement the quit() function.
Cheers,
Normen

Thanks! I will go ahead and try that.