Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesetup_mp/gamesetup_mp.js
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | function init(attribs) | ||||
{ | { | ||||
Engine.GetGUIObjectByName("hostSTUNWrapper").hidden = !Engine.HasXmppClient(); | Engine.GetGUIObjectByName("hostSTUNWrapper").hidden = !Engine.HasXmppClient(); | ||||
if (Engine.HasXmppClient()) | if (Engine.HasXmppClient()) | ||||
{ | { | ||||
Engine.GetGUIObjectByName("hostPlayerName").caption = attribs.name; | Engine.GetGUIObjectByName("hostPlayerName").caption = attribs.name; | ||||
Engine.GetGUIObjectByName("hostServerName").caption = | Engine.GetGUIObjectByName("hostServerName").caption = | ||||
sprintf(translate("%(name)s's game"), { "name": attribs.name }); | sprintf(translate("%(name)s's game"), { "name": attribs.name }); | ||||
Engine.GetGUIObjectByName("useSTUN").checked = Engine.ConfigDB_GetValue("user", "lobby.stun.enabled") == "true"; | Engine.GetGUIObjectByName("useSTUN").checked = getUserConfigBool("lobby.stun.enabled"); | ||||
} | } | ||||
switchSetupPage("pageHost"); | switchSetupPage("pageHost"); | ||||
break; | break; | ||||
} | } | ||||
default: | default: | ||||
error("Unrecognised multiplayer game type: " + attribs.multiplayerGameType); | error("Unrecognised multiplayer game type: " + attribs.multiplayerGameType); | ||||
break; | break; | ||||
▲ Show 20 Lines • Show All 306 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator