Changeset View
Changeset View
Standalone View
Standalone View
./gui/gamesetup/gamesetup.js
Context not available. | |||||
/** | /** | ||||
* To report the game to the lobby bot. | * To report the game to the lobby bot. | ||||
*/ | */ | ||||
var g_ServerName; | var g_ServerName; | ||||
var g_ServerIP; | |||||
var g_ServerPort; | var g_ServerPort; | ||||
/** | /** | ||||
* States whether the GUI is currently updated in response to network messages instead of user input | * States whether the GUI is currently updated in response to network messages instead of user input | ||||
* and therefore shouldn't send further messages to the network. | * and therefore shouldn't send further messages to the network. | ||||
Context not available. | |||||
} | } | ||||
g_IsNetworked = attribs.type != "offline"; | g_IsNetworked = attribs.type != "offline"; | ||||
g_IsController = attribs.type != "client"; | g_IsController = attribs.type != "client"; | ||||
g_ServerName = attribs.serverName; | g_ServerName = attribs.serverName; | ||||
g_ServerIP = attribs.serverIP; | |||||
g_ServerPort = attribs.serverPort; | g_ServerPort = attribs.serverPort; | ||||
// Replace empty playername when entering a singleplayermatch for the first time | // Replace empty playername when entering a singleplayermatch for the first time | ||||
if (!g_IsNetworked) | if (!g_IsNetworked) | ||||
{ | { | ||||
Context not available. | |||||
} | } | ||||
Engine.SwitchGuiPage("page_loading.xml", { | Engine.SwitchGuiPage("page_loading.xml", { | ||||
"attribs": g_GameAttributes, | "attribs": g_GameAttributes, | ||||
"isNetworked" : g_IsNetworked, | "isNetworked" : g_IsNetworked, | ||||
"serverIP" : g_ServerIP, | |||||
"serverPort" : g_ServerPort, | |||||
"playerAssignments": g_PlayerAssignments, | "playerAssignments": g_PlayerAssignments, | ||||
"isController": g_IsController | "isController": g_IsController | ||||
}); | }); | ||||
} | } | ||||
Context not available. |
Wildfire Games · Phabricator