Changes

Jump to navigation Jump to search
Line 155: Line 155:  
=== HTML-like UI ===
 
=== HTML-like UI ===
 
You can load in UIs using xml files with an html like structure using '''WindowManager.GenerateUI'''(List<XMLParser.XMLNode> nodes, GameObject parent, object callback). Example:  
 
You can load in UIs using xml files with an html like structure using '''WindowManager.GenerateUI'''(List<XMLParser.XMLNode> nodes, GameObject parent, object callback). Example:  
<pre class="language-html">&lt;window MinSize="0,0" NonLocTitle="Test Window"&gt;
+
<pre class="language-html">&lt;Window MinSize="0,0" NonLocTitle="Test Window"&gt;
 
&lt;ScrollView anchor="fill" position="4,4" size="-8,-8"&gt;
 
&lt;ScrollView anchor="fill" position="4,4" size="-8,-8"&gt;
 
&lt;VerticalLayout anchor="top" padding="4,4,4,4" spacing="2" childForceExpandHeight="False" childControlHeight="False"&gt;
 
&lt;VerticalLayout anchor="top" padding="4,4,4,4" spacing="2" childForceExpandHeight="False" childControlHeight="False"&gt;

Navigation menu