Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesetup/Panels/Buttons/LobbyButton.js
- This file was added.
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
class LobbyButton | |||||
{ | |||||
constructor() | |||||
{ | |||||
this.lobbyButton = Engine.GetGUIObjectByName("lobbyButton"); | |||||
this.lobbyButton.tooltip = this.Tooltip; | |||||
this.lobbyButton.onPress = this.onPress.bind(this); | |||||
this.lobbyButton.hidden = !Engine.HasXmppClient(); | |||||
} | |||||
onPress() | |||||
{ | |||||
if (Engine.HasXmppClient()) | |||||
Engine.PushGuiPage("page_lobby.xml", { "dialog": true }); | |||||
} | |||||
} | |||||
LobbyButton.prototype.Tooltip = | |||||
translate("Show the multiplayer lobby in a dialog window."); |
Wildfire Games · Phabricator