Changes

Jump to navigation Jump to search
Line 154: Line 154:     
=== 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, ModBehaviour callback). Example:  
 
<pre class="language-html"><window MinSize="0,0" NonLocTitle="Test window">
 
<pre class="language-html"><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">

Navigation menu