mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-23 06:14:09 +00:00
7b04c74043
Summary: The pause button displays an additional GUI element on top of the button containing the text. This apparently unneeded element uses a style forcing the button text to be white, even if the element is disabled. Test Plan: Start a multiplayergame with all players in the same team, winning it instantly. The resign and pause button become disabled, but have different text colors. Apply the patch and notice the issue is gone and that the XML is more consistent. Try pausing to see that the pause button caption still updates. Convince yourself that there are no other occurances of `pauseButtonText`. Reviewers: fatherbushido Reviewed By: fatherbushido Subscribers: Vulcan Differential Revision: https://code.wildfiregames.com/D91 This was SVN commit r19173.
103 lines
2.5 KiB
XML
103 lines
2.5 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"
|
|
>
|
|
<translatableAttribute id="caption">Pause</translatableAttribute>
|
|
<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>
|
|
|
|
|