Nifty button not showing?

When I try to add a button control for my start menu, er, it just doesn’t show up. I’ve tried adding the control in the same way JME’s nifty tutorials do it and also in the same way as niftie’s wiki shows. This is my XML:

[xml]

<?xml version=“1.0” encoding=“UTF-8”?>

<nifty xmlns=“http://nifty-gui.sourceforge.net/nifty-1.3.xsd” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance

xsi:schemaLocation=“http://nifty-gui.sourceforge.net/nifty-1.3.xsd http://nifty-gui.sourceforge.net/nifty-1.3.xsd”>



<screen id=“start”>

<layer id=“background” backgroundColor="#1000" childLayout=“vertical” >



<panel id=“Title” height=“25%” width=“30%” align=“center” childLayout=“center” backgroundColor="#f60f">

<text text=“Start Menu” width=“100%” height=“100%” font=“Interface/Fonts/Default.fnt”/>

</panel>



<panel id=“Button1” height=“20%” width=“30%” align=“left” childLayout=“horizontal” backgroundColor="#f60f" valign=“center”>

<control name=“button” label=“Start” id=“StartButton” type=“button"align=“center” valign=“center”/>

</control>

</panel>



</layer>

</screen>

</nifty>

[/xml]



OR



[xml]

<?xml version=“1.0” encoding=“UTF-8”?>

<nifty xmlns=“http://nifty-gui.sourceforge.net/nifty-1.3.xsd” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance

xsi:schemaLocation=“http://nifty-gui.sourceforge.net/nifty-1.3.xsd http://nifty-gui.sourceforge.net/nifty-1.3.xsd”>



<screen id=“start”>

<layer id=“background” backgroundColor=”#1000" childLayout=“vertical” >



<panel id=“Title” height=“25%” width=“30%” align=“center” childLayout=“center” backgroundColor="#f60f">

<text text=“Start Menu” width=“100%” height=“100%” font=“Interface/Fonts/Default.fnt”/>

</panel>



<panel id=“Button1” height=“20%” width=“30%” align=“left” childLayout=“horizontal” backgroundColor="#f60f" valign=“center”>

<control name=“button” label=“Start” id=“StartButton” align=“center” valign=“center”>

</control>

</panel>



</layer>

</screen>

</nifty>

[/xml]







Either way, the button doesn’t show up, what am I doing wrong here?

http://imgur.com/P25Go

Did you:



[xml]



<!-- include the style file for the standard controls -->

<useStyles filename="nifty-default-styles.xml" />

<!-- include the standard controls -->

<useControls filename="nifty-default-controls.xml" />

[/xml]

1 Like

No :0 ill try that when I ge home, cheers