forked from mirrors/0ad
Add the lobby button to the summary screen.
Patch By: fpre / ffffffff Differential Revision: https://code.wildfiregames.com/D1272 Refs #4106 This was SVN commit r21263.
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
<include>common/modern/styles.xml</include>
|
||||
<include>common/modern/sprites.xml</include>
|
||||
|
||||
<include>common/sprites.xml</include>
|
||||
<include>common/global.xml</include>
|
||||
|
||||
<include>summary/summary.xml</include>
|
||||
|
||||
@@ -530,6 +530,9 @@ function initGUILabelsAndButtons()
|
||||
});
|
||||
|
||||
Engine.GetGUIObjectByName("replayButton").hidden = g_GameData.gui.isInGame || !g_GameData.gui.replayDirectory;
|
||||
|
||||
Engine.GetGUIObjectByName("lobbyButton").tooltip = colorizeHotkey(translate("%(hotkey)s: Toggle the multiplayer lobby in a dialog window."), "lobby");
|
||||
Engine.GetGUIObjectByName("lobbyButton").hidden = g_GameData.gui.isInGame || !Engine.HasXmppClient();
|
||||
}
|
||||
|
||||
function initTeamData()
|
||||
|
||||
@@ -26,13 +26,6 @@
|
||||
|
||||
<object type="image" sprite="ModernFade" name="fadeImage"/>
|
||||
|
||||
<object hotkey="lobby">
|
||||
<action on="Press">
|
||||
if (Engine.HasXmppClient())
|
||||
Engine.PushGuiPage("page_lobby.xml", { "dialog": true });
|
||||
</action>
|
||||
</object>
|
||||
|
||||
<object name="summaryWindow"
|
||||
type="image"
|
||||
style="ModernWindow"
|
||||
@@ -215,6 +208,21 @@
|
||||
<object name="chartLegend" type="text" style="ModernLabelText" size="15 100%-35 100%-15 100%-5"/>
|
||||
</object>
|
||||
|
||||
<!-- View Lobby Button -->
|
||||
<object name="lobbyButton"
|
||||
type="button"
|
||||
sprite="iconBubbleGold"
|
||||
sprite_over="iconBubbleWhite"
|
||||
size="100%-336 100%-45 100%-320 100%-29"
|
||||
hidden="true"
|
||||
hotkey="lobby"
|
||||
>
|
||||
<action on="Press">
|
||||
if (Engine.HasXmppClient())
|
||||
Engine.PushGuiPage("page_lobby.xml", { "dialog": true });
|
||||
</action>
|
||||
</object>
|
||||
|
||||
<object type="button" name="replayButton" style="ModernButtonRed" size="100%-310 100%-48 100%-170 100%-20">
|
||||
<translatableAttribute id="caption">Replay</translatableAttribute>
|
||||
<action on="Press">confirmStartReplay();</action>
|
||||
|
||||
Reference in New Issue
Block a user