Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesetup_mp/gamesetup_mp.js
Show First 20 Lines • Show All 372 Lines • ▼ Show 20 Lines | if (Engine.HasXmppClient() && | ||||
hostFeedback.caption = translate("Game name already in use."); | hostFeedback.caption = translate("Game name already in use."); | ||||
return false; | return false; | ||||
} | } | ||||
let useSTUN = Engine.HasXmppClient() && Engine.GetGUIObjectByName("useSTUN").checked; | let useSTUN = Engine.HasXmppClient() && Engine.GetGUIObjectByName("useSTUN").checked; | ||||
try | try | ||||
{ | { | ||||
Engine.StartNetworkHost(playername + (g_UserRating ? " (" + g_UserRating + ")" : ""), port, playername, useSTUN, password); | Engine.StartNetworkHost(playername + (g_UserRating ? " (" + g_UserRating + ")" : ""), port, useSTUN, password); | ||||
} | } | ||||
catch (e) | catch (e) | ||||
{ | { | ||||
cancelSetup(); | cancelSetup(); | ||||
messageBox( | messageBox( | ||||
400, 200, | 400, 200, | ||||
sprintf(translate("Cannot host game: %(message)s."), { "message": e.message }), | sprintf(translate("Cannot host game: %(message)s."), { "message": e.message }), | ||||
translate("Error") | translate("Error") | ||||
▲ Show 20 Lines • Show All 93 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator