Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/prelobby/login/login.js
Show All 34 Lines | Engine.StartXmppClient( | ||||
Engine.GetGUIObjectByName("username").caption, | Engine.GetGUIObjectByName("username").caption, | ||||
getEncryptedPassword(), | getEncryptedPassword(), | ||||
Engine.ConfigDB_GetValue("user", "lobby.room"), | Engine.ConfigDB_GetValue("user", "lobby.room"), | ||||
Engine.GetGUIObjectByName("username").caption, | Engine.GetGUIObjectByName("username").caption, | ||||
+Engine.ConfigDB_GetValue("user", "lobby.history")); | +Engine.ConfigDB_GetValue("user", "lobby.history")); | ||||
Engine.ConnectXmppClient(); | Engine.ConnectXmppClient(); | ||||
} | } | ||||
/** | |||||
* The data from Engine.SendGetBoardList() is used for the leaderboard, but also for autocompletion in the profile player search field. | |||||
*/ | |||||
function onLogin(message) | function onLogin(message) | ||||
{ | { | ||||
saveCredentials(); | saveCredentials(); | ||||
Engine.SwitchGuiPage("page_lobby.xml", { | Engine.SwitchGuiPage("page_lobby.xml", { | ||||
"dialog": false | "dialog": false | ||||
}); | }); | ||||
Engine.SendGetBoardList(); | |||||
} | } |
Wildfire Games · Phabricator