1
0
forked from mirrors/0ad
Files
0ad/binaries/data/mods/public/gui/session/top_panel.xml
T
elexis 0f807c643a GUI cleanup.
Point out missing functionality and unused properties in the
implementation of checkboxes.
Don't specify a useless font tag for checkboxes in the templates.

This was SVN commit r18419.
2016-06-21 14:38:06 +00:00

42 lines
1.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<object name="topPanel"
type="image"
sprite="topPanel"
size="-3 0 100%+3 36"
>
<!-- most elements are defined in this directory -->
<include directory="gui/session/top_panel/"/>
<!-- ================================ ================================ -->
<!-- "Follow Player" option for observers -->
<!-- ================================ ================================ -->
<object name="optionFollowPlayer" size="50%+64 4 50%+256 100%" hidden="true">
<!-- Checkbox -->
<object name="followPlayer" type="checkbox" checked="false" style="ModernTickBox" size="0 4 20 100%">
<action on="Press">g_FollowPlayer = !g_FollowPlayer;</action>
</object>
<!-- Label -->
<object type="text" size="20 2 100% 100%" text_align="left" textcolor="white">
<translatableAttribute id="caption" context="observer mode">Follow Player</translatableAttribute>
</object>
</object>
<!-- ================================ ================================ -->
<!-- Switch the view perspective to another player's (for observers and for eased development) -->
<!-- ================================ ================================ -->
<object size="100%-415 5 100%-265 100%-5" name="viewPlayer" type="dropdown" hidden="true" z="50" style="ModernDropDown" tooltip_style="sessionToolTipBold">
<translatableAttribute id="tooltip">Choose player to view</translatableAttribute>
<action on="SelectionChange">selectViewPlayer(this.selected - 1);</action>
</object>
<!-- ================================ ================================ -->
<!-- Observer Mode Label -->
<!-- ================================ ================================ -->
<object size="50 4 50% 100%-2" name="observerText" type="text" style="ModernLabelText" text_align="left" hidden="true">
<translatableAttribute id="caption">Observer Mode</translatableAttribute>
</object>
</object>