0ad/binaries/data/mods/official/gui/test/4_session.xml

358 lines
14 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="iso-8859-1" standalone="no" ?>
<!DOCTYPE objects SYSTEM "../gui.dtd">
<!--
==========================================
- SESSION GUI -
==========================================
-->
<objects>
<object name="sn"
hidden="true"
hotkey="session.gui.toggle"
>
<action on="Press"><![CDATA[
guiToggle (this.name);
]]></action>
<!-- EMPTY OBJECT USED TO FLIP THE GUI TO VARIOUS ORIENTATIONS. -->
<object name="snFlip"
hotkey="session.gui.flip"
>
<action on="Press"><![CDATA[
flipGUI();
]]></action>
</object>
<!-- GROUP: MINIMAP -->
<object name="snMiniMap"
style="snObject"
type="minimap"
hotkey="session.minimap.toggle"
>
<action on="Load"><![CDATA[
addCrd (this.name, rb, 100, 100, 0, 0, 180, 180);
addCrd (this.name, lb, 0, 100);
addCrd (this.name, lt, 0, 0);
addCrd (this.name, rt, 100, 0);
]]></action>
<action on="Press"><![CDATA[
guiToggle (this.name);
]]></action>
</object>
<!-- GROUP: RESOURCE COUNTER -->
<object name="snResourceCounter"
hotkey="resourcepool.toggle"
>
<action on="Press"><![CDATA[
guiToggle(this.name);
]]></action>
<object name="snResourceCounter_Food"
style="resource_counter"
type="button"
sprite="resource_food_counter"
tooltip="Food, plus some word-wrapping: Material, usually of plant or animal origin, that contains or consists of essential body nutrients, such as carbohydrates, fats, proteins, vitamins, or minerals, and is ingested and assimilated by an organism to produce energy, stimulate growth, and maintain life."
>
<action on="Load"><![CDATA[
addCrd (this.name, rb, 50, 0, -200, 4, snConst.MiniIcon.Width+54, snConst.MiniIcon.Height);
addCrd (this.name, lb, 50, 0);
addCrd (this.name, lt, 50, 100);
addCrd (this.name, rt, 50, 100);
]]></action>
</object>
<object name="snResourceCounter_Wood"
style="resource_counter"
type="button"
sprite="resource_wood_counter"
tooltip="Wood"
>
<action on="Load"><![CDATA[
addCrd (this.name, rb, 50, 0, Crd[Crd.last].coord[rb].x+Crd[Crd.last].coord[rb].width+5, Crd[Crd.last].coord[rb].y, Crd[Crd.last].coord[rb].width, Crd[Crd.last].coord[rb].height);
addCrd (this.name, lb, 50, 0);
addCrd (this.name, lt, 50, 100);
addCrd (this.name, rt, 50, 100);
]]></action>
</object>
<object name="snResourceCounter_Stone"
style="resource_counter"
type="button"
sprite="resource_stone_counter"
tooltip="Stone"
>
<action on="Load"><![CDATA[
addCrd (this.name, rb, 50, 0, Crd[Crd.last].coord[rb].x+Crd[Crd.last].coord[rb].width+5, Crd[Crd.last].coord[rb].y, Crd[Crd.last].coord[rb].width, Crd[Crd.last].coord[rb].height);
addCrd (this.name, lb, 50, 0);
addCrd (this.name, lt, 50, 100);
addCrd (this.name, rt, 50, 100);
]]></action>
</object>
<object name="snResourceCounter_Ore"
style="resource_counter"
type="button"
sprite="resource_ore_counter"
tooltip="Wood"
>
<action on="Load"><![CDATA[
addCrd (this.name, rb, 50, 0, Crd[Crd.last].coord[rb].x+Crd[Crd.last].coord[rb].width+5, Crd[Crd.last].coord[rb].y, Crd[Crd.last].coord[rb].width, Crd[Crd.last].coord[rb].height);
addCrd (this.name, lb, 50, 0);
addCrd (this.name, lt, 50, 100);
addCrd (this.name, rt, 50, 100);
]]></action>
</object>
<object name="snResourceCounter_Population"
style="resource_counter"
type="button"
sprite="resource_population_counter"
tooltip="Population"
>
<action on="Load"><![CDATA[
addCrd (this.name, rb, 50, 0, Crd[Crd.last].coord[rb].x+Crd[Crd.last].coord[rb].width+5, Crd[Crd.last].coord[rb].y, Crd[Crd.last].coord[rb].width+9, Crd[Crd.last].coord[rb].height);
addCrd (this.name, lb, 50, 0);
addCrd (this.name, lt, 50, 100);
addCrd (this.name, rt, 50, 100);
]]></action>
</object>
</object>
<!-- GROUP: STATUS PANE -->
<object name="snStatusPane"
hotkey="session.statuspane.toggle"
>
<action on="Press"><![CDATA[
guiToggle (this.name);
]]></action>
<!-- STATUS PANE -->
<object name="snStatusPaneBkg"
style="skin*Hele*Window"
type="image"
>
<action on="Load"><![CDATA[
addCrd (this.name, rb, 0, 100, 0, 0, 240, 150);
addCrd (this.name, lb, 100, 100);
addCrd (this.name, lt, 100, 0);
addCrd (this.name, rt, 0, 0);
]]></action>
<object name="snStatusPanePortrait"
style="portrait"
type="button"
hotkey="selection.snap"
>
<action on="Load"><![CDATA[
addCrd (this.name, rb, 0, 0, 5, 5,
snConst.Portrait.Lrg.Width, snConst.Portrait.Lrg.Height);
]]></action>
<action on="Press"><![CDATA[
// Focus the camera on the unit when his portrait is clicked.
if (selection[0].position)
setCameraTarget(selection[0].position);
]]></action>
</object>
</object>
<!-- COMMAND BUTTONS (arc the Status Pane) -->
<object name="snStatusPaneCommand1_1"
type="button"
>
</object>
<object name="snStatusPaneCommandGroup1" >
<object type="button" name="snStatusPaneCommand1_2" />
<object type="button" name="snStatusPaneCommand1_3" />
<object type="button" name="snStatusPaneCommand1_4" />
<object type="button" name="snStatusPaneCommand1_5" />
<object type="button" name="snStatusPaneCommand1_6" />
<object type="button" name="snStatusPaneCommand1_7" />
<object type="button" name="snStatusPaneCommand1_8" />
<object type="button" name="snStatusPaneCommand1_9" />
<object type="button" name="snStatusPaneCommand1_10" />
<object type="button" name="snStatusPaneCommand1_11" />
<object type="button" name="snStatusPaneCommand1_12" />
</object>
<object name="snStatusPaneCommand2_1"
type="button"
/>
<object name="snStatusPaneCommandGroup2" >
<object type="button" name="snStatusPaneCommand2_2" />
<object type="button" name="snStatusPaneCommand2_3" />
<object type="button" name="snStatusPaneCommand2_4" />
<object type="button" name="snStatusPaneCommand2_5" />
<object type="button" name="snStatusPaneCommand2_6" />
<object type="button" name="snStatusPaneCommand2_7" />
<object type="button" name="snStatusPaneCommand2_8" />
<object type="button" name="snStatusPaneCommand2_9" />
<object type="button" name="snStatusPaneCommand2_10" />
<object type="button" name="snStatusPaneCommand2_11" />
<object type="button" name="snStatusPaneCommand2_12" />
</object>
<object name="snStatusPaneCommand3_1"
type="button"
/>
<object name="snStatusPaneCommandGroup3" >
<object type="button" name="snStatusPaneCommand3_2" />
<object type="button" name="snStatusPaneCommand3_3" />
<object type="button" name="snStatusPaneCommand3_4" />
<object type="button" name="snStatusPaneCommand3_5" />
<object type="button" name="snStatusPaneCommand3_6" />
<object type="button" name="snStatusPaneCommand3_7" />
<object type="button" name="snStatusPaneCommand3_8" />
<object type="button" name="snStatusPaneCommand3_9" />
<object type="button" name="snStatusPaneCommand3_10" />
<object type="button" name="snStatusPaneCommand3_11" />
<object type="button" name="snStatusPaneCommand3_12" />
</object>
<object name="snStatusPaneCommand4_1"
type="button"
/>
<object name="snStatusPaneCommandGroup4" >
<object type="button" name="snStatusPaneCommand4_2" />
<object type="button" name="snStatusPaneCommand4_3" />
<object type="button" name="snStatusPaneCommand4_4" />
<object type="button" name="snStatusPaneCommand4_5" />
<object type="button" name="snStatusPaneCommand4_6" />
<object type="button" name="snStatusPaneCommand4_7" />
<object type="button" name="snStatusPaneCommand4_8" />
<object type="button" name="snStatusPaneCommand4_9" />
<object type="button" name="snStatusPaneCommand4_10" />
<object type="button" name="snStatusPaneCommand4_11" />
<object type="button" name="snStatusPaneCommand4_12" />
</object>
<object name="snStatusPaneCommand5_1"
type="button"
/>
<object name="snStatusPaneCommandGroup5" >
<object type="button" name="snStatusPaneCommand5_2" />
<object type="button" name="snStatusPaneCommand5_3" />
<object type="button" name="snStatusPaneCommand5_4" />
<object type="button" name="snStatusPaneCommand5_5" />
<object type="button" name="snStatusPaneCommand5_6" />
<object type="button" name="snStatusPaneCommand5_7" />
<object type="button" name="snStatusPaneCommand5_8" />
<object type="button" name="snStatusPaneCommand5_9" />
<object type="button" name="snStatusPaneCommand5_10" />
<object type="button" name="snStatusPaneCommand5_11" />
<object type="button" name="snStatusPaneCommand5_12" />
</object>
<object name="snStatusPaneCommand6_1"
type="button"
/>
<object name="snStatusPaneCommandGroup6" >
<object type="button" name="snStatusPaneCommand6_2" />
<object type="button" name="snStatusPaneCommand6_3" />
<object type="button" name="snStatusPaneCommand6_4" />
<object type="button" name="snStatusPaneCommand6_5" />
<object type="button" name="snStatusPaneCommand6_6" />
<object type="button" name="snStatusPaneCommand6_7" />
<object type="button" name="snStatusPaneCommand6_8" />
<object type="button" name="snStatusPaneCommand6_9" />
<object type="button" name="snStatusPaneCommand6_10" />
<object type="button" name="snStatusPaneCommand6_11" />
<object type="button" name="snStatusPaneCommand6_12" />
</object>
<object name="snStatusPaneCommand7_1"
type="button"
/>
<object name="snStatusPaneCommandGroup7" >
<object type="button" name="snStatusPaneCommand7_2" />
<object type="button" name="snStatusPaneCommand7_3" />
<object type="button" name="snStatusPaneCommand7_4" />
<object type="button" name="snStatusPaneCommand7_5" />
<object type="button" name="snStatusPaneCommand7_6" />
<object type="button" name="snStatusPaneCommand7_7" />
<object type="button" name="snStatusPaneCommand7_8" />
<object type="button" name="snStatusPaneCommand7_9" />
<object type="button" name="snStatusPaneCommand7_10" />
<object type="button" name="snStatusPaneCommand7_11" />
<object type="button" name="snStatusPaneCommand7_12" />
</object>
<object name="snStatusPaneCommand8_1"
type="button"
/>
<object name="snStatusPaneCommandGroup8" >
<object type="button" name="snStatusPaneCommand8_2" />
<object type="button" name="snStatusPaneCommand8_3" />
<object type="button" name="snStatusPaneCommand8_4" />
<object type="button" name="snStatusPaneCommand8_5" />
<object type="button" name="snStatusPaneCommand8_6" />
<object type="button" name="snStatusPaneCommand8_7" />
<object type="button" name="snStatusPaneCommand8_8" />
<object type="button" name="snStatusPaneCommand8_9" />
<object type="button" name="snStatusPaneCommand8_10" />
<object type="button" name="snStatusPaneCommand8_11" />
<object type="button" name="snStatusPaneCommand8_12" />
</object>
<object name="snStatusPaneCommand9_1"
type="button"
/>
<object name="snStatusPaneCommandGroup9" >
<object type="button" name="snStatusPaneCommand9_2" />
<object type="button" name="snStatusPaneCommand9_3" />
<object type="button" name="snStatusPaneCommand9_4" />
<object type="button" name="snStatusPaneCommand9_5" />
<object type="button" name="snStatusPaneCommand9_6" />
<object type="button" name="snStatusPaneCommand9_7" />
<object type="button" name="snStatusPaneCommand9_8" />
<object type="button" name="snStatusPaneCommand9_9" />
<object type="button" name="snStatusPaneCommand9_10" />
<object type="button" name="snStatusPaneCommand9_11" />
<object type="button" name="snStatusPaneCommand9_12" />
</object>
<object name="snStatusPaneCommand10_1"
type="button"
/>
<object name="snStatusPaneCommandGroup10" >
<object type="button" name="snStatusPaneCommand10_2" />
<object type="button" name="snStatusPaneCommand10_3" />
<object type="button" name="snStatusPaneCommand10_4" />
<object type="button" name="snStatusPaneCommand10_5" />
<object type="button" name="snStatusPaneCommand10_6" />
<object type="button" name="snStatusPaneCommand10_7" />
<object type="button" name="snStatusPaneCommand10_8" />
<object type="button" name="snStatusPaneCommand10_9" />
<object type="button" name="snStatusPaneCommand10_10" />
<object type="button" name="snStatusPaneCommand10_11" />
<object type="button" name="snStatusPaneCommand10_12"
>
<action on="Load"><![CDATA[
defineCommandButtons(this.name);
]]></action>
</object>
</object>
<object name="snStatusPaneCommandProgress"
style="snPortraitProgress"
type="progressbar"
hidden="true"
>
<action on="Load"><![CDATA[
addCrd (this.name, rb, 0, 100,
getCrd ("snStatusPaneBkg").coord[rb].x
+getCrd ("snStatusPaneBkg").coord[rb].width,
getCrd ("snStatusPaneBkg").coord[rb].y,
snConst.Portrait.Sml.Width, snConst.Portrait.Sml.Height);
addCrd (this.name, lb, 100, 100);
addCrd (this.name, lt, 100, 0);
addCrd (this.name, rt, 0, 0);
]]></action>
</object>
</object>
</object>
</objects>