Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/prelobby/entrance/entrance.js
function init() | function init() | ||||
{ | { | ||||
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"); | g_OverlayCounterManager.hide(true); | ||||
Engine.PushGuiPage("page_prelobby_login.xml", {}, () => g_OverlayCounterManager.hide(false)); | |||||
} | } | ||||
function registerButton() | function registerButton() | ||||
{ | { | ||||
Engine.PushGuiPage("page_prelobby_register.xml"); | g_OverlayCounterManager.hide(true); | ||||
Engine.PushGuiPage("page_prelobby_register.xml", {}, () => g_OverlayCounterManager.hide(false)); | |||||
} | } | ||||
function cancelButton() | function cancelButton() | ||||
{ | { | ||||
Engine.PopGuiPage(); | Engine.PopGuiPage(); | ||||
} | } |
Wildfire Games · Phabricator