GUI XML Parser ?
Posted: Mon Sep 15, 2008 1:11 pm
Hi!
I'm searching for that since 2 hours now. I have seen the GUI Editor example but I cannot find a Sourcecode of it... So I want to ask you if Irrlicht has an XML-Reader built in which can read GUI Structures directly from XML Files?
Example XML:
This was created with the GUI Editor.
//Edit: LOL
That was too easy for me >.< I found it xD guienv->loadGUI()
I'm searching for that since 2 hours now. I have seen the GUI Editor example but I cannot find a Sourcecode of it... So I want to ask you if Irrlicht has an XML-Reader built in which can read GUI Structures directly from XML Files?
Example XML:
Code: Select all
<?xml version="1.0"?>
<element type="button">
<attributes>
<int name="Id" value="100" />
<string name="Caption" value="" />
<rect name="Rect" value="460, 260, 560, 360" />
<position name="MinSize" value="1, 1" />
<position name="MaxSize" value="0, 0" />
<bool name="NoClip" value="false" />
<enum name="LeftAlign" value="upperLeft" />
<enum name="RightAlign" value="upperLeft" />
<enum name="TopAlign" value="upperLeft" />
<enum name="BottomAlign" value="upperLeft" />
<bool name="Visible" value="true" />
<bool name="Enabled" value="true" />
<bool name="TabStop" value="true" />
<bool name="TabGroup" value="false" />
<int name="TabOrder" value="1" />
<bool name="PushButton" value="false" />
<texture name="Image" value="" />
<rect name="ImageRect" value="0, 0, 0, 0" />
<texture name="PressedImage" value="" />
<rect name="PressedImageRect" value="0, 0, 0, 0" />
<bool name="Border" value="true" />
<bool name="UseAlphaChannel" value="false" />
</attributes>
</element>
//Edit: LOL
That was too easy for me >.< I found it xD guienv->loadGUI()