Changeset View
Standalone View
binaries/data/mods/public/gui/summary/summary.xml
Show All 9 Lines | <objects> | ||||
<!-- After settings.js, which defines g_Settings and g_MaxPlayers. --> | <!-- After settings.js, which defines g_Settings and g_MaxPlayers. --> | ||||
<script file="gui/summary/counters.js"/> | <script file="gui/summary/counters.js"/> | ||||
<script file="gui/summary/summary.js"/> | <script file="gui/summary/summary.js"/> | ||||
<!-- Needs the colors from summary.js --> | <!-- Needs the colors from summary.js --> | ||||
<script file="gui/summary/layout.js"/> | <script file="gui/summary/layout.js"/> | ||||
<object hotkey="summary"> | |||||
<action on="Press">continueButton();</action> | |||||
</object> | |||||
<object hotkey="cancel"> | |||||
<action on="Press"> | |||||
if (g_GameData.gui.isInGame) | |||||
ffffffff: also close summary on cancel. (ESC) | |||||
Not Done Inline ActionsClosing dialogs with escape is a good idea. elexis: Closing dialogs with escape is a good idea.
Closing stacked pages with escape like the ingame… | |||||
Not Done Inline Actionsso whats ur decision ffffffff: so whats ur decision | |||||
Not Done Inline ActionsIn the definition of the cancel hotkey it says "Close all dialogs". If we want a hotkey switching GUI pages as opposed to closing dialogs, then it should be a different hotkey (like shift+escape) with a custom description. We know that continueButton() closes the current GUI page if we're ingame and switches the GUI pages unrecoverably otherwise. So the cancel hotkey could close the summary page if isInGame and don't do anything otherwise. elexis: In the definition of the cancel hotkey it says "Close all dialogs".
A dialog is a GUI object or… | |||||
Not Done Inline Actionsaway with it ffffffff: away with it | |||||
Not Done Inline ActionsNot away. but if (g_GameData.gui.isInGame), newline, continueButton(); elexis: Not away. but `if (g_GameData.gui.isInGame)`, newline, `continueButton();` | |||||
continueButton(); | |||||
</action> | |||||
</object> | |||||
<object hotkey="tab.next"> | |||||
<action on="Press">selectNextTab(1);</action> | |||||
</object> | |||||
<object hotkey="tab.prev"> | |||||
<action on="Press">selectNextTab(-1);</action> | |||||
</object> | |||||
<object name="summaryWindow" | <object name="summaryWindow" | ||||
type="image" | type="image" | ||||
style="ModernWindow" | style="ModernWindow" | ||||
size="0 0 100% 100%" | size="0 0 100% 100%" | ||||
> | > | ||||
<object style="ModernLabelText" type="text" size="50%-128 4 50%+128 36"> | <object style="ModernLabelText" type="text" size="50%-128 4 50%+128 36"> | ||||
<translatableAttribute id="caption">Summary</translatableAttribute> | <translatableAttribute id="caption">Summary</translatableAttribute> | ||||
</object> | </object> | ||||
▲ Show 20 Lines • Show All 186 Lines • Show Last 20 Lines |
also close summary on cancel. (ESC)