Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/pregame/mainmenu.xml
Context not available. | |||||
if (!Engine.StartXmppClient) | if (!Engine.StartXmppClient) | ||||
return; | return; | ||||
closeMenu(); | closeMenu(); | ||||
Engine.PushGuiPage("page_prelobby_entrance.xml"); | Engine.PushGuiPage("page_prelobby_entrance.xml", { rdbLobby: false }); | ||||
</action> | </action> | ||||
<action on="load"> | <action on="load"> | ||||
if (!Engine.StartXmppClient) | if (!Engine.StartXmppClient) | ||||
Context not available. | |||||
}); | }); | ||||
</action> | </action> | ||||
</object> | </object> | ||||
<object | |||||
type="button" | |||||
style="StoneButtonFancy" | |||||
size="0 128 100% 152" | |||||
tooltip_style="pgToolTip" | |||||
> | |||||
<translatableAttribute id="caption">Replay Database</translatableAttribute> | |||||
<translatableAttribute id="tooltip">Upload and browse replays.</translatableAttribute> | |||||
<action on="Press"> | |||||
if (!Engine.StartRdbClient) | |||||
return; | |||||
closeMenu(); | |||||
Engine.PushGuiPage("page_prelobby_entrance.xml", { rdbLobby: true }); | |||||
</action> | |||||
<action on="load"> | |||||
if (!Engine.StartRdbClient) | |||||
{ | |||||
this.enabled = false; | |||||
this.tooltip = getRdbDisabledByBuild(); | |||||
} | |||||
</action> | |||||
</object> | |||||
</object> | </object> | ||||
<!-- submenuOptions --> | <!-- submenuOptions --> | ||||
Context not available. | |||||
<translatableAttribute id="tooltip">Fight against one or more human players in a multiplayer game.</translatableAttribute> | <translatableAttribute id="tooltip">Fight against one or more human players in a multiplayer game.</translatableAttribute> | ||||
<action on="Press"> | <action on="Press"> | ||||
closeMenu(); | closeMenu(); | ||||
openMenu("submenuMultiplayer", this.parent.size.top + this.size.top, this.size.bottom - this.size.top, 4); | openMenu("submenuMultiplayer", this.parent.size.top + this.size.top, this.size.bottom - this.size.top, 5); | ||||
</action> | </action> | ||||
</object> | </object> | ||||
Context not available. |
Wildfire Games · Phabricator