1
0
forked from mirrors/0ad
Files
0ad/binaries/data/mods/public/gui/reference/structree/structree.xml
T
s0600204 cdf6109713 Relocate and Rearrange the structree codebase
Makes it possible to reuse the more generic parts of the `structree`
codebase in other pages without including `structree`-specific logic.
This sets the stage for further reference/encyclopedia-type pages.

Reviewed By: fatherbushido, elexis
Differential Revision: https://code.wildfiregames.com/D295
This was SVN commit r19940.
2017-07-31 12:49:00 +00:00

128 lines
3.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<objects>
<script file="gui/common/functions_civinfo.js"/>
<script file="gui/common/functions_global_object.js"/>
<script file="gui/common/functions_utility.js"/>
<script file="gui/common/tooltips.js"/>
<script directory="gui/reference/common/"/>
<script file="gui/reference/structree/structree.js"/>
<script file="gui/reference/structree/draw.js"/>
<!-- Add a translucent black background to fade out the menu page -->
<object type="image" z="0" sprite="BackgroundTranslucent"/>
<object type="image" style="ModernDialog" size="16 24 100%-16 100%-24">
<object style="TitleText" type="text" size="50%-128 -18 50%+128 14">
<translatableAttribute id="caption">Structure Tree</translatableAttribute>
</object>
<!-- Civ selection -->
<object size="16 10 100%-16 30">
<object
name="civSelectionHeading"
type="text"
font="sans-bold-16"
textcolor="white"
text_align="left"
size="100%-264 10 100%-160 48">
<translatableAttribute id="caption">Civilization:</translatableAttribute>
</object>
<object name="civSelection" type="dropdown" style="ModernDropDown" size="100%-160 8 100% 34" dropdown_size="350">
<action on="SelectionChange">selectCiv(this.list_data[this.selected]);</action>
</object>
</object>
<object
name="civEmblem"
type="image"
size="6 6 96+6 96+6"
sprite="stretched:pregame/shell/logo/wfg_logo_white.png"
/>
<object
name="civName"
type="text"
font="sans-bold-20"
textcolor="white"
text_align="left"
text_valign="top"
size="104 32 100%-8 96"
/>
<object
name="civHistory"
type="text"
font="sans-12"
textcolor="white"
text_align="left"
text_valign="top"
size="104 52 100%-8 100%"
/>
<!-- Structure Tree display -->
<object size="0 54+64 100%-124 100%-54" name="display_tree">
<object name="phase_ident">
<repeat count="4" var="n">
<object>
<object name="phase[n]_phase" type="image"/>
<object name="phase[n]_bars">
<repeat count="4" var="k">
<object name="phase[n]_bar[k]" type="image" sprite="ProdBar">
<object name="phase[n]_bar[k]_icon" type="image" size="2 2 20 20"/>
</object>
</repeat>
</object>
</object>
</repeat>
</object>
<object type="image" name="tree_display" style="TreeDisplay" size="48+16+8 0 100%-12 100%">
<include file="gui/reference/structree/rows.xml"/>
</object>
</object>
<!-- Trainer Units display -->
<object size="100%-124 54+64 100%-16 100%-54" name="display_trainers">
<object
type="text"
font="sans-bold-14"
textcolor="white"
text_align="center"
text_valign="top"
size="0 0 100% 16"
>
<translatableAttribute id="caption">Trainer Units</translatableAttribute>
</object>
<object type="image" style="TreeDisplay" size="0 24 100% 100%" name="trainers">
<repeat count="6" var="t">
<object type="image" style="StructBox" name="trainer[t]">
<object type="text" style="StructNameSpecific" name="trainer[t]_name"/>
<object type="image" style="StructIcon" name="trainer[t]_icon"
sprite="stretched:pregame/shell/logo/wfg_logo_white.png"
/>
<object name="trainer[t]_row">
<repeat count="4" var="p">
<object type="image" style="ProdBox" name="trainer[t]_prod[p]"/>
</repeat>
</object>
</object>
</repeat>
</object>
</object>
<!-- Close dialog -->
<object
type="button"
style="StoneButton"
size="100%-164 100%-44 100%-16 100%-16"
hotkey="cancel"
>
<translatableAttribute id="caption">Close</translatableAttribute>
<action on="Press">closePage();</action>
</object>
</object>
</objects>