Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/prelobby/entrance/entrance.js
function init() | var g_RdbLobby; | ||||
function init(attribs) | |||||
{ | { | ||||
if (attribs.rdbLobby) | |||||
Engine.GetGUIObjectByName("windowLabel").caption = translate("Replay Database"); | |||||
g_RdbLobby = attribs.rdbLobby; | |||||
if (Engine.ConfigDB_GetValue("user", "lobby.login")) | if (Engine.ConfigDB_GetValue("user", "lobby.login")) | ||||
loginButton(); | loginButton(); | ||||
} | } | ||||
function loginButton() | function loginButton() | ||||
{ | { | ||||
Engine.PushGuiPage("page_prelobby_login.xml"); | Engine.PushGuiPage("page_prelobby_login.xml", { rdbLobby: g_RdbLobby }); | ||||
} | } | ||||
function registerButton() | function registerButton() | ||||
{ | { | ||||
Engine.PushGuiPage("page_prelobby_register.xml"); | Engine.PushGuiPage("page_prelobby_register.xml", { rdbLobby: g_RdbLobby }); | ||||
} | } | ||||
function cancelButton() | function cancelButton() |
Wildfire Games · Phabricator