Files
0ad/binaries/data/mods/public/gui/session/menu.xml
T
elexis cf04bad4bc Ingame summary screen and allied resource / population tooltips for active players. Patch by Imarok, also reviewed by fatherbushido and discussed with mimo, fixes #3841.
Shows (only) the stats of the current player in the summary screen while
playing.
Also shows those of mutual allies too if the shared vision tech is
researched.
Display the resources and population counts of allies in the tooltips of
the top panel.
Use a sprintf for the pop / limit ratio and remove hardcoded resource
strings in the XML, refs #3934.

This was SVN commit r18533.
2016-07-20 01:22:07 +00:00

105 lines
2.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<object name="menu"
style="StonePanelThinBorder"
type="image"
hidden="false"
z="40"
>
<object size="4 36 100%-4 50%+20">
<!-- Manual button -->
<object type="button"
name="manualButton"
style="StoneButtonFancy"
size="0 0 100% 28"
tooltip_style="sessionToolTip"
>
<translatableAttribute id="caption">Manual</translatableAttribute>
<action on="Press">openManual();</action>
</object>
<!-- Chat button -->
<object type="button"
name="chatButton"
style="StoneButtonFancy"
size="0 32 100% 60"
tooltip_style="sessionToolTip"
>
<translatableAttribute id="caption">Chat</translatableAttribute>
<action on="Press">chatMenuButton();</action>
</object>
<!-- Save game button -->
<object type="button"
name="saveGameButton"
style="StoneButtonFancy"
size="0 64 100% 92"
tooltip_style="sessionToolTip"
>
<translatableAttribute id="caption">Save</translatableAttribute>
<action on="Press">
openSave();
</action>
</object>
<!-- Summary button -->
<object type="button"
name="summaryButton"
style="StoneButtonFancy"
size="0 96 100% 124"
tooltip_style="sessionToolTip"
>
<translatableAttribute id="caption">Summary</translatableAttribute>
<action on="Press">openGameSummary();</action>
</object>
<!-- Options button -->
<object type="button"
name="optionsButton"
style="StoneButtonFancy"
size="0 128 100% 156"
tooltip_style="sessionToolTip"
>
<translatableAttribute id="caption">Options</translatableAttribute>
<action on="Press">optionsMenuButton();</action>
</object>
<!-- Pause / Resume Button -->
<object type="button"
name="pauseButton"
style="StoneButtonFancy"
size="0 160 100% 188"
tooltip_style="sessionToolTip"
>
<object name="pauseButtonText" type="text" style="CenteredButtonText" ghost="true">
<translatableAttribute id="caption">Pause</translatableAttribute>
</object>
<action on="Press">togglePause();</action>
</object>
<!-- Resign button -->
<object type="button"
name="menuResignButton"
style="StoneButtonFancy"
size="0 192 100% 220"
tooltip_style="sessionToolTip"
>
<translatableAttribute id="caption">Resign</translatableAttribute>
<action on="Press">resignMenuButton();</action>
</object>
<!-- Exit button -->
<object type="button"
name="menuExitButton"
style="StoneButtonFancy"
size="0 224 100% 252"
tooltip_style="sessionToolTip"
>
<translatableAttribute id="caption">Exit</translatableAttribute>
<action on="Press">exitMenuButton();</action>
</object>
</object>
</object>