1
0
forked from 0ad/0ad

Fix line endings

This was SVN commit r7652.
This commit is contained in:
Ykkrosh 2010-06-30 21:34:44 +00:00
parent 8268d8ad0b
commit 303a3ff437
4 changed files with 1295 additions and 1295 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,469 +1,469 @@
<?xml version="1.0" encoding="utf-8"?>
<objects>
<script file="gui/common/functions_global_object.js" />
<script file="gui/session_new/session.js"/>
<script file="gui/session_new/selection.js"/>
<script file="gui/session_new/input.js"/>
<script file="gui/session_new/music.js"/>
<object name="sn" hotkey="session.gui.toggle">
<action on="Tick">
onTick();
</action>
<action on="SimulationUpdate">
onSimulationUpdate();
</action>
<action on="Press">
this.hidden = !this.hidden;
</action>
<!-- ================================ ================================ -->
<!-- ALPHA LABELS (alpha, build time, revision) -->
<!-- ================================ ================================ -->
<!-- Displays Alpha name and number -->
<object size="100%-170 0 100%-8 25" name="alphaLabel" type="text" style="centeredText" font="serif-bold-16" textcolor="white">
<action on="Load"><![CDATA[this.caption = "ALPHA I : Argonaut";]]></action>
</object>
<!-- Displays build date and revision number-->
<object size="100%-170 25 100%-8 45" name="buildTimeLabel" type="text" style="centeredText" font="serif-12" textcolor="white">
<action on="Load"><![CDATA[this.caption = buildTime(0) + " (" + buildTime(2) + ")";]]></action>
</object>
<!-- ================================ ================================ -->
<!-- HOTKEYS (For some reason, they won't work properly unless outside menu) -->
<!-- ================================ ================================ -->
<!-- Exit button Hotkey -->
<object hotkey="leave">
<action on="Press"><![CDATA[
messageBox(400, 200, "Do you really want to quit?", "Confirmation", 0,
["Yes", "No!"], [leaveGame, null]);
]]></action>
</object>
<!-- ================================ ================================ -->
<!-- Developer / Debug items -->
<!-- ================================ ================================ -->
<!-- Debug text -->
<object name="debug"
type="text"
size="0 50 50% 100%"
ghost="true"
textcolor="yellow"
font="mono-stroke-10"
/>
<!-- Dev/cheat commands -->
<object z="200" size="100%-155 50 100%-16 130" type="image" name="devCommands" sprite="devCommandsBackground" hidden="true">
<object size="0 0 100%-18 16" type="text" style="devCommandsText">Control all units</object>
<object size="100%-16 0 100% 16" type="checkbox" name="devControlAll" style="wheatCrossBox"/>
<object size="0 16 100%-18 32" type="text" style="devCommandsText">Display selection state</object>
<object size="100%-16 16 100% 32" type="checkbox" name="devDisplayState" style="wheatCrossBox"/>
<object size="0 32 100%-18 48" type="text" style="devCommandsText">Pathfinder overlay</object>
<object size="100%-16 32 100% 48" type="checkbox" style="wheatCrossBox">
<action on="Press">Engine.GuiInterfaceCall("SetPathfinderDebugOverlay", this.checked);</action>
</object>
<object size="0 48 100%-18 64" type="text" style="devCommandsText">Obstruction overlay</object>
<object size="100%-16 48 100% 64" type="checkbox" style="wheatCrossBox">
<action on="Press">Engine.GuiInterfaceCall("SetObstructionDebugOverlay", this.checked);</action>
</object>
<object size="0 64 100%-18 80" type="text" style="devCommandsText">Unit motion overlay</object>
<object size="100%-16 64 100% 80" type="checkbox" style="wheatCrossBox">
<action on="Press">g_Selection.SetMotionDebugOverlay(this.checked);</action>
</object>
<!--
<object size="0 80 100%-18 96" type="text" style="devCommandsText">Toggle music</object>
<object size="100%-16 80 100% 96" type="checkbox" style="wheatCrossBox" checked="true" hotkey="music.toggle">
<action on="Press">if (this.checked) startMusic(); else stopMusic();</action>
</object>
<object size="0 96 100%-18 112" type="text" style="devCommandsText">Pause game</object>
<object size="100%-16 96 100% 112" type="checkbox" style="wheatCrossBox" hotkey="pause">
<action on="Press">setPaused(this.checked);</action>
</object>
-->
</object>
<!-- ================================ ================================ -->
<!-- Pause Overlay -->
<!-- ================================ ================================ -->
<object type="button"
name="pauseOverlay"
size="0 0 100% 100%"
tooltip_style="snToolTip"
tooltip="Click to Unpause Game"
hidden="true"
z="0"
>
<object size="0 0 100% 100%" type="image" sprite="devCommandsBackground" ghost="true" z="0"/>
<object size="0 0 100% 100%" type="text" style="largeBoldCenteredText" textcolor="white" ghost="true" z="0">Game Paused</object>
<action on="Press">togglePause();</action>
</object>
<!-- ================================ ================================ -->
<!-- Settings Window -->
<!-- ================================ ================================ -->
<object name="settingsWindow"
style="wheatWindow"
type="image"
size="50%-180 50%-200 50%+180 50%+50"
hidden="true"
z="50"
>
<object name="settingsTitleBar" style="wheatWindowTitleBar" type="text">Settings</object>
<object name="settingsOptions"
size="30 30 100%-30 150"
type="image"
style="goldPanel"
>
<object size="0 10 100%-80 35" type="text" style="settingsText" ghost="true">Enable Shadows</object>
<object name="shadowsCheckbox" size="100%-56 15 100%-30 40" type="checkbox" style="wheatCrossBox" checked="true">
<action on="Load">if (renderer.shadows) this.checked = true; else this.checked = false;</action>
<action on="Press">renderer.shadows = this.checked;</action>
</object>
<object size="0 35 100%-80 60" type="text" style="settingsText" ghost="true">Enable Water Reflections</object>
<object name="fancyWaterCheckbox" size="100%-56 40 100%-30 65" type="checkbox" style="wheatCrossBox" checked="true">
<action on="Load">if (renderer.fancyWater) this.checked = true; else this.checked = false;</action>
<action on="Press">renderer.fancyWater = this.checked;</action>
</object>
<object size="0 60 100%-80 85" type="text" style="settingsText" ghost="true">Enable Music</object>
<object size="100%-56 65 100%-30 90" type="checkbox" style="wheatCrossBox" checked="true">
<action on="Press">if (this.checked) startMusic(); else stopMusic();</action>
</object>
<object size="0 85 100%-80 110" type="text" style="settingsText" ghost="true">Developer Overlay</object>
<object size="100%-56 90 100%-30 115" type="checkbox" style="wheatCrossBox" checked="false">
<action on="Press">if (this.checked) toggleDeveloperOverlay(); else toggleDeveloperOverlay();</action>
</object>
</object>
<object name="settingsOKButton"
style="wheatButtonFancy"
type="button"
size="50%-50 100%-52 50%+50 100%-20"
>
<object size="0 0 100% 100%" type="text" style="centeredText" name="settingsOKButtonText" ghost="true">OK</object>
<action on="Press">toggleSettingsWindow();</action>
</object>
</object>
<!-- ================================ ================================ -->
<!-- Menu Details -->
<!-- ================================ ================================ -->
<object name="menu"
size="0 0 114 128"
type="image"
sprite="devCommandsBackground"
hidden="true"
>
<!-- Settings button -->
<object type="button"
name="settingsButton"
style="wheatButtonFancy"
size="0 32 114 64"
tooltip_style="snToolTip"
>
<object size="0 0 100% 100%" type="text" style="centeredText" name="settingsButtonText" ghost="true">Settings</object>
<action on="Press">toggleSettingsWindow();</action>
</object>
<!-- Pause Button -->
<object type="button"
style="wheatButtonFancy"
name="pauseButton"
size="0 64 114 96"
tooltip_style="snToolTip"
>
<object size="0 0 100% 100%" type="text" ghost="true" style="centeredText">Pause Game</object>
<action on="Press">togglePause();</action>
</object>
<!-- Exit button -->
<object type="button"
name="exitButton"
style="wheatButtonFancy"
size="0 96 114 128"
tooltip_style="snToolTip"
>
<object size="0 0 100% 100%" type="text" style="centeredText" name="exitButtonText" ghost="true" font="serif-14">Quit Game</object>
<action on="Press">
toggleMenu();
<![CDATA[messageBox(400, 200, "Do you really want to quit?", "Confirmation", 0, ["Yes", "No!"], [leaveGame, null]);]]>
</action>
</object>
</object>
<!-- Menu Button -->
<object type="button"
name="menuButton"
style="wheatButtonFancy"
size="0 0 114 32"
tooltip_style="snToolTip"
>
<object size="0 0 100% 100%" type="text" style="largeBoldCenteredText" name="menuButtonText" ghost="true">Menu</object>
<action on="Press">toggleMenu();</action>
</object>
<!-- ================================ ================================ -->
<!-- Bottom-left Minimap and Resource Panel-->
<!-- ================================ ================================ -->
<object
name="mapAndResourcePanel"
style="thinWheatWindow"
size="0 100%-154 272 100%"
type="image"
z="30"
>
<!-- Minimap -->
<object name="minimap">
<object
size="24 100%-164 164 100%-24"
type="image"
style="wheatWindow"
/>
<object name="minimapDisplay"
type="minimap"
size="6 100%-182 182 100%-6"
/>
</object>
<!-- Player resource bar -->
<object
size="188 100%-130 100% 100%-2"
type="image"
sprite="bronzeResourceRectangles"
>
<!-- Food -->
<object size="0 0 100% 26" type="image" style="resourceCounter" tooltip="Food" >
<object size="0 0 28 24" type="image" style="resourceIcon" cell_id="0"/>
<object size="28 0 100% 24" type="text" style="resourceText" name="resourceFood"/>
</object>
<!-- Wood -->
<object size="0 26 100% 52" type="image" style="resourceCounter" tooltip="Wood">
<object size="0 0 28 24" type="image" style="resourceIcon" cell_id="1"/>
<object size="28 0 100% 24" type="text" style="resourceText" name="resourceWood"/>
</object>
<!-- Stone -->
<object size="0 52 100%78" type="image" style="resourceCounter" tooltip="Stone">
<object size="0 0 28 24" type="image" style="resourceIcon" cell_id="2"/>
<object size="28 0 100% 24" type="text" style="resourceText" name="resourceStone"/>
</object>
<!-- Metal -->
<object size="0 78 100% 104" type="image" style="resourceCounter" tooltip="Metal">
<object size="0 0 28 24" type="image" style="resourceIcon" cell_id="3"/>
<object size="28 0 100% 24" type="text" style="resourceText" name="resourceMetal"/>
</object>
<!-- Population -->
<object size="0 104 100% 130" type="image" style="resourceCounter" tooltip="Population (current / maximum)">
<object size="0 0 28 24" type="image" style="resourceIcon" cell_id="4"/>
<object size="28 0 100% 24" type="text" style="resourceText" name="resourcePop"/>
</object>
</object>
</object>
<!-- ================================ ================================ -->
<!-- Bottom-middle selected-units and unit details panel -->
<!-- ================================ ================================ -->
<object name="selectionDetails"
type="image"
style="thinWheatWindow"
size="282 100%-154 594 100%"
hidden="true"
z="20"
>
<!-- OAD logo background
<object name="selectionProductLogo"
size="65 45 100%-65 100%-55"
type="image"
style="frilly"
hidden="true"
>
<object name="selectionProductLogoImage"
type="image"
size="-4 -16 100%+24 100%+22"
sprite="watermarkProduct"
/>
</object>
-->
<!-- Unit Selection Area -->
<object name="unitSelectionPanel"
size="10 4 278 64"
>
<object size="0 0 100% 47">
<repeat count="18">
<object name="unitSelectionButton[n]" hidden="true" style="iconButton" type="button" size="0 0 34 34" z="20">
<object name="unitSelectionHighlight[n]" hidden="true" ghost="true" type="image" sprite="primaryGroupHighlight" size="-1 -1 35 35"/>
<object name="unitSelectionIcon[n]" type="image" ghost="true" size="3 3 32 32"/>
<object name="unitSelectionCount[n]" ghost="true" style="groupIconsText" type="text"/>
</object>
</repeat>
</object>
</object>
<!-- Big unit icon -->
<object size="16 100%-94 88 100%-22" name="selectionDetailsIcon" >
<object type="image" style="selectionDetailsIconOutline"/>
<object type="image" name="selectionDetailsIconImage" tooltip_style="snToolTip"/>
</object>
<!-- Health bar -->
<object size="16 100%-20 88 100%-14" type="image" name="selectionDetailsHealth" tooltip="Hitpoints" tooltip_style="snToolTip">
<object type="image" sprite="selectionDetailsHealthBackground" ghost="true"/>
<object type="image" sprite="selectionDetailsHealthForeground" ghost="true" name="selectionDetailsHealthBar"/>
</object>
<!-- Stamina bar -->
<object size="16 100%-12 88 100%-6" type="image" name="selectionDetailsStamina" tooltip="Stamina" tooltip_style="snToolTip">
<object type="image" sprite="selectionDetailsStaminaBackground" ghost="true"/>
<object type="image" sprite="selectionDetailsStaminaForeground" ghost="true" name="selectionDetailsStaminaBar"/>
</object>
<!-- Details text -->
<object size="10 0 100%-10 56" name="selectionDetailsMainText" type="image" sprite="wheatWindowTitle">
<object size="0 5 100% 30" name="selectionDetailsSpecific" type="text" style="largeBoldCenteredText" tooltip_style="snToolTip"/>
<object hidden="true" size="0 20 100% 40" name="selectionDetailsGeneric" type="text" font="serif-14"/>
<object size="0 30 100% 50" name="selectionDetailsPlayer" type="text" style="centeredText" font="serif-14" textcolor="blue"/>
</object>
<!-- Attack stats -->
<object hidden="true" size="116 72 100% 100%" type="image" name="selectionDetailsAttack" tooltip="Attack strengths" tooltip_style="snToolTip">
<object size="-4 -8 36 36" type="image" name="selectionDetailsAttackImage" ghost="true" sprite="snIconSheetStance" cell_id="1"/>
<object size="30 0 100% 100%" type="text" name="selectionDetailsAttackStats" ghost="true" font="serif-bold-12"/>
</object>
<!-- Armour stats -->
<object hidden="true" size="216 72 100% 100%" type="image" name="selectionDetailsArmour" tooltip="Armour strengths" tooltip_style="snToolTip">
<object size="-4 -4 36 36" type="image" name="selectionDetailsArmourImage" ghost="true" sprite="snIconSheetStance" cell_id="3"/>
<object size="30 0 100% 100%" type="text" name="selectionDetailsArmourStats" ghost="true" font="serif-bold-12"/>
</object>
</object>
<!-- ================================ ================================ -->
<!-- Bottom-right commands panel -->
<!-- ================================ ================================ -->
<object name="unitCommands"
type="image"
style="thinWheatWindow"
size="604 100%-154 1024 100%"
hidden="true"
z="0"
>
<object name="bronzeSquares"
type="image"
sprite="bronzeCommandsSquares"
size="56 10 414 100%"
/>
<object name="unitConstructionPanel"
size="0 10 100% 33%"
>
<object size="-2 -6 54 50" type="image" sprite="snIconSheetTab" tooltip_style="snToolTip"
cell_id="0" tooltip="Construction"/>
<object size="56 0 100% 37">
<repeat count="16">
<object name="unitConstructionButton[n]" hidden="true" style="iconButton" type="button" size="0 0 43 43">
<object name="unitConstructionIcon[n]" type="image" ghost="true" size="3 3 40 40"/>
</object>
</repeat>
</object>
</object>
<object name="unitStancePanel"
style="goldPanelFrilly"
size="0 100%-56 100% 100%"
type="text"
>
<object size="-5 -2 59 62" type="image" sprite="snIconSheetTab" tooltip_style="snToolTip"
cell_id="4" tooltip="Stances"/>
[stance commands]
</object>
<object name="unitFormationPanel"
style="goldPanelFrilly"
size="0 100%-56 100% 100%"
type="text"
>
<object size="-5 -2 59 62" type="image" sprite="snIconSheetTab" tooltip_style="snToolTip"
cell_id="5" tooltip="Formations"/>
[formation commands]
</object>
<object name="unitResearchPanel"
style="goldPanelFrilly"
size="0 100%-56 100% 100%"
type="text"
>
<object size="-5 -2 59 62" type="image" sprite="snIconSheetTab" tooltip_style="snToolTip"
cell_id="1" tooltip="Research"/>
[research commands]
</object>
<object name="unitTrainingPanel"
size="0 10 100% 33%"
>
<object size="-2 -6 54 50" type="image" sprite="snIconSheetTab" tooltip_style="snToolTip"
cell_id="2" tooltip="Training"/>
<object size="56 0 100% 37">
<repeat count="16">
<object name="unitTrainingButton[n]" hidden="true" style="iconButton" type="button" size="0 0 43 43">
<object name="unitTrainingIcon[n]" type="image" ghost="true" size="3 3 40 40"/>
</object>
</repeat>
</object>
</object>
<object name="unitQueuePanel"
style="goldPanelFrilly"
size="0 -60 100% 100%-166"
type="image"
>
<object size="-2 -3 54 53" type="image" sprite="snIconSheetTab" tooltip_style="snToolTip"
cell_id="3" tooltip="Production queue"/>
<object size="56 3 100% 37">
<repeat count="16">
<object name="unitQueueButton[n]" hidden="true" style="iconButton" type="button" size="0 0 43 43">
<object name="unitQueueIcon[n]" ghost="true" type="image" size="3 3 40 40"/>
<object name="unitQueueCount[n]" ghost="true" style="iconButtonCount" type="text"/>
<object name="unitQueueProgress[n]" ghost="true" style="iconButtonProgress" type="text"/>
</object>
</repeat>
</object>
</object>
</object>
</object>
<!-- ================================ ================================ -->
<!-- Selection bandbox -->
<!-- ================================ ================================ -->
<object name="bandbox" type="image" sprite="bandbox" ghost="true" hidden="true" z="100"
/>
</objects>
<?xml version="1.0" encoding="utf-8"?>
<objects>
<script file="gui/common/functions_global_object.js" />
<script file="gui/session_new/session.js"/>
<script file="gui/session_new/selection.js"/>
<script file="gui/session_new/input.js"/>
<script file="gui/session_new/music.js"/>
<object name="sn" hotkey="session.gui.toggle">
<action on="Tick">
onTick();
</action>
<action on="SimulationUpdate">
onSimulationUpdate();
</action>
<action on="Press">
this.hidden = !this.hidden;
</action>
<!-- ================================ ================================ -->
<!-- ALPHA LABELS (alpha, build time, revision) -->
<!-- ================================ ================================ -->
<!-- Displays Alpha name and number -->
<object size="100%-170 0 100%-8 25" name="alphaLabel" type="text" style="centeredText" font="serif-bold-16" textcolor="white">
<action on="Load"><![CDATA[this.caption = "ALPHA I : Argonaut";]]></action>
</object>
<!-- Displays build date and revision number-->
<object size="100%-170 25 100%-8 45" name="buildTimeLabel" type="text" style="centeredText" font="serif-12" textcolor="white">
<action on="Load"><![CDATA[this.caption = buildTime(0) + " (" + buildTime(2) + ")";]]></action>
</object>
<!-- ================================ ================================ -->
<!-- HOTKEYS (For some reason, they won't work properly unless outside menu) -->
<!-- ================================ ================================ -->
<!-- Exit button Hotkey -->
<object hotkey="leave">
<action on="Press"><![CDATA[
messageBox(400, 200, "Do you really want to quit?", "Confirmation", 0,
["Yes", "No!"], [leaveGame, null]);
]]></action>
</object>
<!-- ================================ ================================ -->
<!-- Developer / Debug items -->
<!-- ================================ ================================ -->
<!-- Debug text -->
<object name="debug"
type="text"
size="0 50 50% 100%"
ghost="true"
textcolor="yellow"
font="mono-stroke-10"
/>
<!-- Dev/cheat commands -->
<object z="200" size="100%-155 50 100%-16 130" type="image" name="devCommands" sprite="devCommandsBackground" hidden="true">
<object size="0 0 100%-18 16" type="text" style="devCommandsText">Control all units</object>
<object size="100%-16 0 100% 16" type="checkbox" name="devControlAll" style="wheatCrossBox"/>
<object size="0 16 100%-18 32" type="text" style="devCommandsText">Display selection state</object>
<object size="100%-16 16 100% 32" type="checkbox" name="devDisplayState" style="wheatCrossBox"/>
<object size="0 32 100%-18 48" type="text" style="devCommandsText">Pathfinder overlay</object>
<object size="100%-16 32 100% 48" type="checkbox" style="wheatCrossBox">
<action on="Press">Engine.GuiInterfaceCall("SetPathfinderDebugOverlay", this.checked);</action>
</object>
<object size="0 48 100%-18 64" type="text" style="devCommandsText">Obstruction overlay</object>
<object size="100%-16 48 100% 64" type="checkbox" style="wheatCrossBox">
<action on="Press">Engine.GuiInterfaceCall("SetObstructionDebugOverlay", this.checked);</action>
</object>
<object size="0 64 100%-18 80" type="text" style="devCommandsText">Unit motion overlay</object>
<object size="100%-16 64 100% 80" type="checkbox" style="wheatCrossBox">
<action on="Press">g_Selection.SetMotionDebugOverlay(this.checked);</action>
</object>
<!--
<object size="0 80 100%-18 96" type="text" style="devCommandsText">Toggle music</object>
<object size="100%-16 80 100% 96" type="checkbox" style="wheatCrossBox" checked="true" hotkey="music.toggle">
<action on="Press">if (this.checked) startMusic(); else stopMusic();</action>
</object>
<object size="0 96 100%-18 112" type="text" style="devCommandsText">Pause game</object>
<object size="100%-16 96 100% 112" type="checkbox" style="wheatCrossBox" hotkey="pause">
<action on="Press">setPaused(this.checked);</action>
</object>
-->
</object>
<!-- ================================ ================================ -->
<!-- Pause Overlay -->
<!-- ================================ ================================ -->
<object type="button"
name="pauseOverlay"
size="0 0 100% 100%"
tooltip_style="snToolTip"
tooltip="Click to Unpause Game"
hidden="true"
z="0"
>
<object size="0 0 100% 100%" type="image" sprite="devCommandsBackground" ghost="true" z="0"/>
<object size="0 0 100% 100%" type="text" style="largeBoldCenteredText" textcolor="white" ghost="true" z="0">Game Paused</object>
<action on="Press">togglePause();</action>
</object>
<!-- ================================ ================================ -->
<!-- Settings Window -->
<!-- ================================ ================================ -->
<object name="settingsWindow"
style="wheatWindow"
type="image"
size="50%-180 50%-200 50%+180 50%+50"
hidden="true"
z="50"
>
<object name="settingsTitleBar" style="wheatWindowTitleBar" type="text">Settings</object>
<object name="settingsOptions"
size="30 30 100%-30 150"
type="image"
style="goldPanel"
>
<object size="0 10 100%-80 35" type="text" style="settingsText" ghost="true">Enable Shadows</object>
<object name="shadowsCheckbox" size="100%-56 15 100%-30 40" type="checkbox" style="wheatCrossBox" checked="true">
<action on="Load">if (renderer.shadows) this.checked = true; else this.checked = false;</action>
<action on="Press">renderer.shadows = this.checked;</action>
</object>
<object size="0 35 100%-80 60" type="text" style="settingsText" ghost="true">Enable Water Reflections</object>
<object name="fancyWaterCheckbox" size="100%-56 40 100%-30 65" type="checkbox" style="wheatCrossBox" checked="true">
<action on="Load">if (renderer.fancyWater) this.checked = true; else this.checked = false;</action>
<action on="Press">renderer.fancyWater = this.checked;</action>
</object>
<object size="0 60 100%-80 85" type="text" style="settingsText" ghost="true">Enable Music</object>
<object size="100%-56 65 100%-30 90" type="checkbox" style="wheatCrossBox" checked="true">
<action on="Press">if (this.checked) startMusic(); else stopMusic();</action>
</object>
<object size="0 85 100%-80 110" type="text" style="settingsText" ghost="true">Developer Overlay</object>
<object size="100%-56 90 100%-30 115" type="checkbox" style="wheatCrossBox" checked="false">
<action on="Press">if (this.checked) toggleDeveloperOverlay(); else toggleDeveloperOverlay();</action>
</object>
</object>
<object name="settingsOKButton"
style="wheatButtonFancy"
type="button"
size="50%-50 100%-52 50%+50 100%-20"
>
<object size="0 0 100% 100%" type="text" style="centeredText" name="settingsOKButtonText" ghost="true">OK</object>
<action on="Press">toggleSettingsWindow();</action>
</object>
</object>
<!-- ================================ ================================ -->
<!-- Menu Details -->
<!-- ================================ ================================ -->
<object name="menu"
size="0 0 114 128"
type="image"
sprite="devCommandsBackground"
hidden="true"
>
<!-- Settings button -->
<object type="button"
name="settingsButton"
style="wheatButtonFancy"
size="0 32 114 64"
tooltip_style="snToolTip"
>
<object size="0 0 100% 100%" type="text" style="centeredText" name="settingsButtonText" ghost="true">Settings</object>
<action on="Press">toggleSettingsWindow();</action>
</object>
<!-- Pause Button -->
<object type="button"
style="wheatButtonFancy"
name="pauseButton"
size="0 64 114 96"
tooltip_style="snToolTip"
>
<object size="0 0 100% 100%" type="text" ghost="true" style="centeredText">Pause Game</object>
<action on="Press">togglePause();</action>
</object>
<!-- Exit button -->
<object type="button"
name="exitButton"
style="wheatButtonFancy"
size="0 96 114 128"
tooltip_style="snToolTip"
>
<object size="0 0 100% 100%" type="text" style="centeredText" name="exitButtonText" ghost="true" font="serif-14">Quit Game</object>
<action on="Press">
toggleMenu();
<![CDATA[messageBox(400, 200, "Do you really want to quit?", "Confirmation", 0, ["Yes", "No!"], [leaveGame, null]);]]>
</action>
</object>
</object>
<!-- Menu Button -->
<object type="button"
name="menuButton"
style="wheatButtonFancy"
size="0 0 114 32"
tooltip_style="snToolTip"
>
<object size="0 0 100% 100%" type="text" style="largeBoldCenteredText" name="menuButtonText" ghost="true">Menu</object>
<action on="Press">toggleMenu();</action>
</object>
<!-- ================================ ================================ -->
<!-- Bottom-left Minimap and Resource Panel-->
<!-- ================================ ================================ -->
<object
name="mapAndResourcePanel"
style="thinWheatWindow"
size="0 100%-154 272 100%"
type="image"
z="30"
>
<!-- Minimap -->
<object name="minimap">
<object
size="24 100%-164 164 100%-24"
type="image"
style="wheatWindow"
/>
<object name="minimapDisplay"
type="minimap"
size="6 100%-182 182 100%-6"
/>
</object>
<!-- Player resource bar -->
<object
size="188 100%-130 100% 100%-2"
type="image"
sprite="bronzeResourceRectangles"
>
<!-- Food -->
<object size="0 0 100% 26" type="image" style="resourceCounter" tooltip="Food" >
<object size="0 0 28 24" type="image" style="resourceIcon" cell_id="0"/>
<object size="28 0 100% 24" type="text" style="resourceText" name="resourceFood"/>
</object>
<!-- Wood -->
<object size="0 26 100% 52" type="image" style="resourceCounter" tooltip="Wood">
<object size="0 0 28 24" type="image" style="resourceIcon" cell_id="1"/>
<object size="28 0 100% 24" type="text" style="resourceText" name="resourceWood"/>
</object>
<!-- Stone -->
<object size="0 52 100%78" type="image" style="resourceCounter" tooltip="Stone">
<object size="0 0 28 24" type="image" style="resourceIcon" cell_id="2"/>
<object size="28 0 100% 24" type="text" style="resourceText" name="resourceStone"/>
</object>
<!-- Metal -->
<object size="0 78 100% 104" type="image" style="resourceCounter" tooltip="Metal">
<object size="0 0 28 24" type="image" style="resourceIcon" cell_id="3"/>
<object size="28 0 100% 24" type="text" style="resourceText" name="resourceMetal"/>
</object>
<!-- Population -->
<object size="0 104 100% 130" type="image" style="resourceCounter" tooltip="Population (current / maximum)">
<object size="0 0 28 24" type="image" style="resourceIcon" cell_id="4"/>
<object size="28 0 100% 24" type="text" style="resourceText" name="resourcePop"/>
</object>
</object>
</object>
<!-- ================================ ================================ -->
<!-- Bottom-middle selected-units and unit details panel -->
<!-- ================================ ================================ -->
<object name="selectionDetails"
type="image"
style="thinWheatWindow"
size="282 100%-154 594 100%"
hidden="true"
z="20"
>
<!-- OAD logo background
<object name="selectionProductLogo"
size="65 45 100%-65 100%-55"
type="image"
style="frilly"
hidden="true"
>
<object name="selectionProductLogoImage"
type="image"
size="-4 -16 100%+24 100%+22"
sprite="watermarkProduct"
/>
</object>
-->
<!-- Unit Selection Area -->
<object name="unitSelectionPanel"
size="10 4 278 64"
>
<object size="0 0 100% 47">
<repeat count="18">
<object name="unitSelectionButton[n]" hidden="true" style="iconButton" type="button" size="0 0 34 34" z="20">
<object name="unitSelectionHighlight[n]" hidden="true" ghost="true" type="image" sprite="primaryGroupHighlight" size="-1 -1 35 35"/>
<object name="unitSelectionIcon[n]" type="image" ghost="true" size="3 3 32 32"/>
<object name="unitSelectionCount[n]" ghost="true" style="groupIconsText" type="text"/>
</object>
</repeat>
</object>
</object>
<!-- Big unit icon -->
<object size="16 100%-94 88 100%-22" name="selectionDetailsIcon" >
<object type="image" style="selectionDetailsIconOutline"/>
<object type="image" name="selectionDetailsIconImage" tooltip_style="snToolTip"/>
</object>
<!-- Health bar -->
<object size="16 100%-20 88 100%-14" type="image" name="selectionDetailsHealth" tooltip="Hitpoints" tooltip_style="snToolTip">
<object type="image" sprite="selectionDetailsHealthBackground" ghost="true"/>
<object type="image" sprite="selectionDetailsHealthForeground" ghost="true" name="selectionDetailsHealthBar"/>
</object>
<!-- Stamina bar -->
<object size="16 100%-12 88 100%-6" type="image" name="selectionDetailsStamina" tooltip="Stamina" tooltip_style="snToolTip">
<object type="image" sprite="selectionDetailsStaminaBackground" ghost="true"/>
<object type="image" sprite="selectionDetailsStaminaForeground" ghost="true" name="selectionDetailsStaminaBar"/>
</object>
<!-- Details text -->
<object size="10 0 100%-10 56" name="selectionDetailsMainText" type="image" sprite="wheatWindowTitle">
<object size="0 5 100% 30" name="selectionDetailsSpecific" type="text" style="largeBoldCenteredText" tooltip_style="snToolTip"/>
<object hidden="true" size="0 20 100% 40" name="selectionDetailsGeneric" type="text" font="serif-14"/>
<object size="0 30 100% 50" name="selectionDetailsPlayer" type="text" style="centeredText" font="serif-14" textcolor="blue"/>
</object>
<!-- Attack stats -->
<object hidden="true" size="116 72 100% 100%" type="image" name="selectionDetailsAttack" tooltip="Attack strengths" tooltip_style="snToolTip">
<object size="-4 -8 36 36" type="image" name="selectionDetailsAttackImage" ghost="true" sprite="snIconSheetStance" cell_id="1"/>
<object size="30 0 100% 100%" type="text" name="selectionDetailsAttackStats" ghost="true" font="serif-bold-12"/>
</object>
<!-- Armour stats -->
<object hidden="true" size="216 72 100% 100%" type="image" name="selectionDetailsArmour" tooltip="Armour strengths" tooltip_style="snToolTip">
<object size="-4 -4 36 36" type="image" name="selectionDetailsArmourImage" ghost="true" sprite="snIconSheetStance" cell_id="3"/>
<object size="30 0 100% 100%" type="text" name="selectionDetailsArmourStats" ghost="true" font="serif-bold-12"/>
</object>
</object>
<!-- ================================ ================================ -->
<!-- Bottom-right commands panel -->
<!-- ================================ ================================ -->
<object name="unitCommands"
type="image"
style="thinWheatWindow"
size="604 100%-154 1024 100%"
hidden="true"
z="0"
>
<object name="bronzeSquares"
type="image"
sprite="bronzeCommandsSquares"
size="56 10 414 100%"
/>
<object name="unitConstructionPanel"
size="0 10 100% 33%"
>
<object size="-2 -6 54 50" type="image" sprite="snIconSheetTab" tooltip_style="snToolTip"
cell_id="0" tooltip="Construction"/>
<object size="56 0 100% 37">
<repeat count="16">
<object name="unitConstructionButton[n]" hidden="true" style="iconButton" type="button" size="0 0 43 43">
<object name="unitConstructionIcon[n]" type="image" ghost="true" size="3 3 40 40"/>
</object>
</repeat>
</object>
</object>
<object name="unitStancePanel"
style="goldPanelFrilly"
size="0 100%-56 100% 100%"
type="text"
>
<object size="-5 -2 59 62" type="image" sprite="snIconSheetTab" tooltip_style="snToolTip"
cell_id="4" tooltip="Stances"/>
[stance commands]
</object>
<object name="unitFormationPanel"
style="goldPanelFrilly"
size="0 100%-56 100% 100%"
type="text"
>
<object size="-5 -2 59 62" type="image" sprite="snIconSheetTab" tooltip_style="snToolTip"
cell_id="5" tooltip="Formations"/>
[formation commands]
</object>
<object name="unitResearchPanel"
style="goldPanelFrilly"
size="0 100%-56 100% 100%"
type="text"
>
<object size="-5 -2 59 62" type="image" sprite="snIconSheetTab" tooltip_style="snToolTip"
cell_id="1" tooltip="Research"/>
[research commands]
</object>
<object name="unitTrainingPanel"
size="0 10 100% 33%"
>
<object size="-2 -6 54 50" type="image" sprite="snIconSheetTab" tooltip_style="snToolTip"
cell_id="2" tooltip="Training"/>
<object size="56 0 100% 37">
<repeat count="16">
<object name="unitTrainingButton[n]" hidden="true" style="iconButton" type="button" size="0 0 43 43">
<object name="unitTrainingIcon[n]" type="image" ghost="true" size="3 3 40 40"/>
</object>
</repeat>
</object>
</object>
<object name="unitQueuePanel"
style="goldPanelFrilly"
size="0 -60 100% 100%-166"
type="image"
>
<object size="-2 -3 54 53" type="image" sprite="snIconSheetTab" tooltip_style="snToolTip"
cell_id="3" tooltip="Production queue"/>
<object size="56 3 100% 37">
<repeat count="16">
<object name="unitQueueButton[n]" hidden="true" style="iconButton" type="button" size="0 0 43 43">
<object name="unitQueueIcon[n]" ghost="true" type="image" size="3 3 40 40"/>
<object name="unitQueueCount[n]" ghost="true" style="iconButtonCount" type="text"/>
<object name="unitQueueProgress[n]" ghost="true" style="iconButtonProgress" type="text"/>
</object>
</repeat>
</object>
</object>
</object>
</object>
<!-- ================================ ================================ -->
<!-- Selection bandbox -->
<!-- ================================ ================================ -->
<object name="bandbox" type="image" sprite="bandbox" ghost="true" hidden="true" z="100"
/>
</objects>

View File

@ -1,141 +1,141 @@
<?xml version="1.0" encoding="utf-8"?>
<sprites>
<sprite name="goldPanel">
<!-- (currently this is all a hack - need proper textures) -->
<image
texture="global/titlebar/middle_gold_fern.dds"
texture_size="0 0 64 32"
size="0 -6 100% 0"
/>
<image
texture="global/titlebar/middle_gold_fern.dds"
texture_size="0 0 64 32"
size="0 100%+5 100% 100%"
/>
<image
texture="global/border/corner_bronze.dds"
texture_size="0 0 16 100%"
size="-4 -4 0 100%+4"
/>
<image
texture="global/border/corner_bronze.dds"
texture_size="0 0 16 100%"
size="100% 0%-4 100%+4 100%+4"
/>
<image
texture="global/tile/sandstone.dds"
texture_size="0 0 128 128"
/>
</sprite>
<sprite name="goldPanelFrilly">
<!-- (currently this is all a hack - need proper textures) -->
<image
texture="global/titlebar/middle_gold_fern.dds"
texture_size="0 0 64 32"
size="0 -6 100% 0"
/>
<image
texture="global/titlebar/middle_gold_fern.dds"
texture_size="0 0 64 32"
size="0 100%+5 100% 100%"
/>
<image
texture="global/border/corner_bronze.dds"
texture_size="0 0 16 100%"
size="-4 -4 0 100%+4"
/>
<image
texture="global/border/corner_bronze.dds"
texture_size="0 0 16 100%"
size="100% 0%-4 100%+4 100%+4"
/>
<image
texture="global/titlebar/left_gold_fern.dds"
texture_size="0 0 64 32"
size="-48 50%-16 0 50%+16"
/>
<image
texture="global/titlebar/right_gold_fern.dds"
texture_size="-16 0 48 32"
size="100% 50%-16 100%+48 50%+16"
/>
<image
texture="global/tile/sandstone.dds"
texture_size="0 0 128 128"
/>
</sprite>
<sprite name="frilly">
<!-- (currently this is all a hack - need proper textures) -->
<image
texture="global/titlebar/left_gold_fern.dds"
texture_size="0 0 64 32"
size="-48 50%-16 0 50%+16"
/>
<image
texture="global/titlebar/right_gold_fern.dds"
texture_size="-16 0 48 32"
size="100% 50%-16 100%+48 50%+16"
/>
</sprite>
<sprite name="bronzeResourceRectangles">
<!-- (currently this is all a hack - need proper textures) -->
<image
texture="global/border/corner_bronze.dds"
texture_size="0 0 60 26"
size="28 0 100% 100%"
/>
</sprite>
<sprite name="bronzeCommandsSquares">
<!-- (currently this is all a hack - need proper textures) -->
<image
texture="global/border/corner_bronze.dds"
texture_size="0 0 45 45"
size="0 0 100% 135"
/>
</sprite>
<sprite name="selectionDetailsIconOutline">
<image backcolor="blue"/>
</sprite>
<sprite name="selectionDetailsHealthBackground">
<image backcolor="red"/>
</sprite>
<sprite name="selectionDetailsHealthForeground">
<image backcolor="green"/>
</sprite>
<sprite name="selectionDetailsStaminaBackground">
<image backcolor="black"/>
</sprite>
<sprite name="selectionDetailsStaminaForeground">
<image backcolor="blue"/>
</sprite>
<sprite name="bandbox">
<image backcolor="black" size="0 0 100% 1"/>
<image backcolor="black" size="100%-1 0 100% 100%"/>
<image backcolor="black" size="0 100%-1 100% 100%"/>
<image backcolor="black" size="0 0 1 100%"/>
<image backcolor="white" size="1 1 100%-1 2"/>
<image backcolor="white" size="100%-2 1 100%-1 100%-1"/>
<image backcolor="white" size="1 100%-2 100%-1 100%-1"/>
<image backcolor="white" size="1 1 2 100%-1"/>
</sprite>
<sprite name="primaryGroupHighlight">
<image backcolor="0 255 0 85"/>
</sprite>
<sprite name="devCommandsBackground">
<image backcolor="0 0 0 85"/>
</sprite>
</sprites>
<?xml version="1.0" encoding="utf-8"?>
<sprites>
<sprite name="goldPanel">
<!-- (currently this is all a hack - need proper textures) -->
<image
texture="global/titlebar/middle_gold_fern.dds"
texture_size="0 0 64 32"
size="0 -6 100% 0"
/>
<image
texture="global/titlebar/middle_gold_fern.dds"
texture_size="0 0 64 32"
size="0 100%+5 100% 100%"
/>
<image
texture="global/border/corner_bronze.dds"
texture_size="0 0 16 100%"
size="-4 -4 0 100%+4"
/>
<image
texture="global/border/corner_bronze.dds"
texture_size="0 0 16 100%"
size="100% 0%-4 100%+4 100%+4"
/>
<image
texture="global/tile/sandstone.dds"
texture_size="0 0 128 128"
/>
</sprite>
<sprite name="goldPanelFrilly">
<!-- (currently this is all a hack - need proper textures) -->
<image
texture="global/titlebar/middle_gold_fern.dds"
texture_size="0 0 64 32"
size="0 -6 100% 0"
/>
<image
texture="global/titlebar/middle_gold_fern.dds"
texture_size="0 0 64 32"
size="0 100%+5 100% 100%"
/>
<image
texture="global/border/corner_bronze.dds"
texture_size="0 0 16 100%"
size="-4 -4 0 100%+4"
/>
<image
texture="global/border/corner_bronze.dds"
texture_size="0 0 16 100%"
size="100% 0%-4 100%+4 100%+4"
/>
<image
texture="global/titlebar/left_gold_fern.dds"
texture_size="0 0 64 32"
size="-48 50%-16 0 50%+16"
/>
<image
texture="global/titlebar/right_gold_fern.dds"
texture_size="-16 0 48 32"
size="100% 50%-16 100%+48 50%+16"
/>
<image
texture="global/tile/sandstone.dds"
texture_size="0 0 128 128"
/>
</sprite>
<sprite name="frilly">
<!-- (currently this is all a hack - need proper textures) -->
<image
texture="global/titlebar/left_gold_fern.dds"
texture_size="0 0 64 32"
size="-48 50%-16 0 50%+16"
/>
<image
texture="global/titlebar/right_gold_fern.dds"
texture_size="-16 0 48 32"
size="100% 50%-16 100%+48 50%+16"
/>
</sprite>
<sprite name="bronzeResourceRectangles">
<!-- (currently this is all a hack - need proper textures) -->
<image
texture="global/border/corner_bronze.dds"
texture_size="0 0 60 26"
size="28 0 100% 100%"
/>
</sprite>
<sprite name="bronzeCommandsSquares">
<!-- (currently this is all a hack - need proper textures) -->
<image
texture="global/border/corner_bronze.dds"
texture_size="0 0 45 45"
size="0 0 100% 135"
/>
</sprite>
<sprite name="selectionDetailsIconOutline">
<image backcolor="blue"/>
</sprite>
<sprite name="selectionDetailsHealthBackground">
<image backcolor="red"/>
</sprite>
<sprite name="selectionDetailsHealthForeground">
<image backcolor="green"/>
</sprite>
<sprite name="selectionDetailsStaminaBackground">
<image backcolor="black"/>
</sprite>
<sprite name="selectionDetailsStaminaForeground">
<image backcolor="blue"/>
</sprite>
<sprite name="bandbox">
<image backcolor="black" size="0 0 100% 1"/>
<image backcolor="black" size="100%-1 0 100% 100%"/>
<image backcolor="black" size="0 100%-1 100% 100%"/>
<image backcolor="black" size="0 0 1 100%"/>
<image backcolor="white" size="1 1 100%-1 2"/>
<image backcolor="white" size="100%-2 1 100%-1 100%-1"/>
<image backcolor="white" size="1 100%-2 100%-1 100%-1"/>
<image backcolor="white" size="1 1 2 100%-1"/>
</sprite>
<sprite name="primaryGroupHighlight">
<image backcolor="0 255 0 85"/>
</sprite>
<sprite name="devCommandsBackground">
<image backcolor="0 0 0 85"/>
</sprite>
</sprites>

View File

@ -1,106 +1,106 @@
<?xml version="1.0" encoding="utf-8"?>
<styles>
<style name="goldPanel"
sprite="goldPanel"
buffer_zone="4"
text_align="left"
text_valign="top"
/>
<style name="goldPanelFrilly"
sprite="goldPanelFrilly"
buffer_zone="4"
text_align="center"
text_valign="center"
/>
<style name="frilly"
sprite="frilly"
buffer_zone="4"
text_align="center"
text_valign="center"
/>
<style name="resourceIcon"
sprite="snIconSheetResource"
ghost="true"
/>
<style name="resourceText"
textcolor="white"
font="serif-bold-14"
ghost="true"
text_valign="center"
/>
<style name="resourceCounter"
tooltip_style="snToolTip"
/>
<style name="selectionDetailsIconOutline"
sprite="selectionDetailsIconOutline"
/>
<style name="iconButton"
sprite="snIconPortrait"
sprite_over="snIconPortraitOver"
sprite_disabled="snIconPortraitDisabled"
tooltip_style="snToolTipBottom"
/>
<style name="iconButtonCount"
textcolor="255 255 255"
font="serif-9"
text_align="right"
text_valign="top"
buffer_zone="4"
/>
<style name="iconButtonProgress"
textcolor="255 255 255"
font="serif-stroke-14"
text_align="center"
text_valign="center"
/>
<style name="groupIconsText"
font="mono-stroke-10"
textcolor="255 255 255"
text_align="left"
text_valign="bottom"
/>
<style name="devCommandsText"
font="sans-10"
textcolor="255 255 255"
text_align="right"
/>
<style name="settingsText"
font="serif-16"
textcolor="0 0 0"
text_align="right"
text_valign="center"
/>
<style name="rightAlignedText"
textcolor="255 255 255"
text_align="right"
text_valign="top"
/>
<style name="centeredText"
textcolor="0 0 0"
text_align="center"
text_valign="center"
/>
<style name="largeBoldCenteredText"
font="serif-bold-18"
textcolor="0 0 0"
text_align="center"
text_valign="center"
/>
</styles>
<?xml version="1.0" encoding="utf-8"?>
<styles>
<style name="goldPanel"
sprite="goldPanel"
buffer_zone="4"
text_align="left"
text_valign="top"
/>
<style name="goldPanelFrilly"
sprite="goldPanelFrilly"
buffer_zone="4"
text_align="center"
text_valign="center"
/>
<style name="frilly"
sprite="frilly"
buffer_zone="4"
text_align="center"
text_valign="center"
/>
<style name="resourceIcon"
sprite="snIconSheetResource"
ghost="true"
/>
<style name="resourceText"
textcolor="white"
font="serif-bold-14"
ghost="true"
text_valign="center"
/>
<style name="resourceCounter"
tooltip_style="snToolTip"
/>
<style name="selectionDetailsIconOutline"
sprite="selectionDetailsIconOutline"
/>
<style name="iconButton"
sprite="snIconPortrait"
sprite_over="snIconPortraitOver"
sprite_disabled="snIconPortraitDisabled"
tooltip_style="snToolTipBottom"
/>
<style name="iconButtonCount"
textcolor="255 255 255"
font="serif-9"
text_align="right"
text_valign="top"
buffer_zone="4"
/>
<style name="iconButtonProgress"
textcolor="255 255 255"
font="serif-stroke-14"
text_align="center"
text_valign="center"
/>
<style name="groupIconsText"
font="mono-stroke-10"
textcolor="255 255 255"
text_align="left"
text_valign="bottom"
/>
<style name="devCommandsText"
font="sans-10"
textcolor="255 255 255"
text_align="right"
/>
<style name="settingsText"
font="serif-16"
textcolor="0 0 0"
text_align="right"
text_valign="center"
/>
<style name="rightAlignedText"
textcolor="255 255 255"
text_align="right"
text_valign="top"
/>
<style name="centeredText"
textcolor="0 0 0"
text_align="center"
text_valign="center"
/>
<style name="largeBoldCenteredText"
font="serif-bold-18"
textcolor="0 0 0"
text_align="center"
text_valign="center"
/>
</styles>