Changes

Jump to navigation Jump to search
Line 155: Line 155:     
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:  
<code class="html">
+
<pre><code class="html">
 
<'''window''' '''MinSize'''="0,0" '''NonLocTitle'''="Test window">
 
<'''window''' '''MinSize'''="0,0" '''NonLocTitle'''="Test window">
 
<'''ScrollView''' '''anchor'''="fill" '''position'''="4,4" '''size'''="-8,-8">
 
<'''ScrollView''' '''anchor'''="fill" '''position'''="4,4" '''size'''="-8,-8">
Line 167: Line 167:  
</'''ScrollView'''>
 
</'''ScrollView'''>
 
</'''window'''>
 
</'''window'''>
</code>
+
</code></pre>
 
This will create a window with a scroll view containing a label, a button and a combobox automatically laid out vertically. Please note that attributes, e.g. '''position'''="4,4" are case sensitive!
 
This will create a window with a scroll view containing a label, a button and a combobox automatically laid out vertically. Please note that attributes, e.g. '''position'''="4,4" are case sensitive!
  

Navigation menu