controlDefinition window missing

Jun 11, 2014 9:25:57 PM de.lessvoid.nifty.loaderv2.types.ControlType internalApplyControl
WARNING: controlDefinition [window] missing

^^ That is what it tells me when I try to load a control window. I intend to use the one in this link:

However only the text in my xml file shows up. Here is the code:

<layer id=”windows” childLayout=”absolute”>
<control id=”window” name=”window” title=”Please Drag Me Too!” width=”500px” height=”400px” x=”400px”>
<text text=”I’m Another Window!” font=”Interface/Fonts/DifficultyMenu/STechMono14px.fnt” color=”#eeef” valign=”center” width=”100%” />
</control>
</layer>

I have assumed that all I have to do is use this “control” of yours to be able to use a window, however, is it the case that I have to “create” my own window before using it? I’m kind of confused on the control idea as a whole

you probably forget to add this two lines in your xml file :
[xml]
<useStyles filename=“nifty-default-styles.xml”/>
<useControls filename=“nifty-default-controls.xml”/>
[/xml]

they must be inside nifty element at the same level of screen elements. Also check that you have nifty-default-control and nifty-default-styles jar in your classpath.

1 Like

Thank you.