Hi,
in general, do I need to do control definitions if I use standard controls like label or button?
If I write something like
[xml]
<control id="butQuit" name="button" label="Quit">
</control>[/xml]
I get the following error at runtime:
WARNUNG: controlDefinition [button] missing.
java.util.NoSuchElementException
I added the following files to my build path:
nifty-1.3-SNAPSHOT.jar
nifty-default-controls-1.3.jar
nifty-style-black-1.3-SNAPSHOT.jar
nifty-style-grey-1.0.jar
nifty-examples-1.3-SNAPSHOT.jar
To enable the standard controls you’ll need to add:
[xml] <useStyles filename=“nifty-default-styles.xml” />
<useControls filename=“nifty-default-controls.xml” />[/xml]
somewhere at the top of your xml file or you call:
[java] nifty.loadStyleFile(“nifty-default-styles.xml”);
nifty.loadControlFile(“nifty-default-controls.xml”);[/java]
from java.
Thank you