Hi Guys, For some reason i cannot see the buttons added to nifty gui xml file. I’m using the SDK to view the buttons.
Here is the code
Code:
<?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">
<useStyles filename="nifty-default-styles.xml" />
<useControls filename="nifty-default-controls.xml" />
<screen id="start" controller="mygame.Main">
<layer id="layer" backgroundColor="#003f" childLayout="center">
<layer id="background" backgroundColor="#000f">
</layer>
<layer id="foreground" backgroundColor="#0000" childLayout="vertical">
<panel id="panel_top" height="25%" width="75%" align="center" childLayout="center" backgroundColor="#f008">
</panel>
<panel id="panel_mid" height="50%" width="75%" align="center" childLayout="center"
backgroundColor="#0f08">
<control name="button" label="Start" id="StartButton" align="center" valign="center">
</control>
</panel>
</layer>
</layer>
</screen>
</nifty>