|
|
@ -27,6 +27,15 @@ function init()
|
|
|
|
onLoginAdvice = onLoginAdvice,
|
|
|
|
onLoginAdvice = onLoginAdvice,
|
|
|
|
}, true)
|
|
|
|
}, true)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Call load AFTER game window has been created and
|
|
|
|
|
|
|
|
-- resized to a stable state, otherwise the saved
|
|
|
|
|
|
|
|
-- settings can get overridden by false onGeometryChange
|
|
|
|
|
|
|
|
-- events
|
|
|
|
|
|
|
|
connect(g_app, {
|
|
|
|
|
|
|
|
onRun = load,
|
|
|
|
|
|
|
|
onExit = save
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
gameRootPanel = g_ui.displayUI('gameinterface')
|
|
|
|
gameRootPanel = g_ui.displayUI('gameinterface')
|
|
|
|
gameRootPanel:hide()
|
|
|
|
gameRootPanel:hide()
|
|
|
|
gameRootPanel:lower()
|
|
|
|
gameRootPanel:lower()
|
|
|
@ -49,7 +58,6 @@ function init()
|
|
|
|
setupViewMode(0)
|
|
|
|
setupViewMode(0)
|
|
|
|
|
|
|
|
|
|
|
|
bindKeys()
|
|
|
|
bindKeys()
|
|
|
|
load()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if g_game.isOnline() then
|
|
|
|
if g_game.isOnline() then
|
|
|
|
show()
|
|
|
|
show()
|
|
|
@ -102,7 +110,6 @@ function unbindWalkKey(key)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
function terminate()
|
|
|
|
function terminate()
|
|
|
|
save()
|
|
|
|
|
|
|
|
hide()
|
|
|
|
hide()
|
|
|
|
|
|
|
|
|
|
|
|
hookedMenuOptions = {}
|
|
|
|
hookedMenuOptions = {}
|
|
|
|