Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/common/functions_global_object.js
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | |||||
/** | /** | ||||
* This function is called from the engine whenever starting a game fails. | * This function is called from the engine whenever starting a game fails. | ||||
*/ | */ | ||||
function cancelOnLoadGameError(msg) | function cancelOnLoadGameError(msg) | ||||
{ | { | ||||
Engine.EndGame(); | Engine.EndGame(); | ||||
if (Engine.HasXmppClient()) | if (Engine.HasXmppClient && Engine.HasXmppClient()) | ||||
Engine.StopXmppClient(); | Engine.StopXmppClient(); | ||||
Engine.SwitchGuiPage("page_pregame.xml"); | Engine.SwitchGuiPage("page_pregame.xml"); | ||||
if (msg) | if (msg) | ||||
Engine.PushGuiPage("page_msgbox.xml", { | Engine.PushGuiPage("page_msgbox.xml", { | ||||
"width": 500, | "width": 500, | ||||
"height": 200, | "height": 200, | ||||
Show All 21 Lines |
Wildfire Games · Phabricator