|
|
@ -123,11 +123,11 @@ function terminate()
|
|
|
|
|
|
|
|
|
|
|
|
disconnect(gameLeftPanel, { onVisibilityChange = onLeftPanelVisibilityChange })
|
|
|
|
disconnect(gameLeftPanel, { onVisibilityChange = onLeftPanelVisibilityChange })
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
logoutButton:destroy()
|
|
|
|
gameRootPanel:destroy()
|
|
|
|
gameRootPanel:destroy()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
function onGameStart()
|
|
|
|
function onGameStart()
|
|
|
|
logoutButton:setTooltip(tr('Logout'))
|
|
|
|
|
|
|
|
show()
|
|
|
|
show()
|
|
|
|
|
|
|
|
|
|
|
|
-- open tibia has delay in auto walking
|
|
|
|
-- open tibia has delay in auto walking
|
|
|
@ -139,7 +139,6 @@ function onGameStart()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
function onGameEnd()
|
|
|
|
function onGameEnd()
|
|
|
|
logoutButton:setTooltip(tr('Exit'))
|
|
|
|
|
|
|
|
setupViewMode(0)
|
|
|
|
setupViewMode(0)
|
|
|
|
hide()
|
|
|
|
hide()
|
|
|
|
end
|
|
|
|
end
|
|
|
@ -151,10 +150,13 @@ function show()
|
|
|
|
gameRootPanel:focus()
|
|
|
|
gameRootPanel:focus()
|
|
|
|
gameMapPanel:followCreature(g_game.getLocalPlayer())
|
|
|
|
gameMapPanel:followCreature(g_game.getLocalPlayer())
|
|
|
|
updateStretchShrink()
|
|
|
|
updateStretchShrink()
|
|
|
|
|
|
|
|
logoutButton:setTooltip(tr('Logout'))
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
function hide()
|
|
|
|
function hide()
|
|
|
|
disconnect(g_app, { onClose = tryExit })
|
|
|
|
disconnect(g_app, { onClose = tryExit })
|
|
|
|
|
|
|
|
logoutButton:setTooltip(tr('Exit'))
|
|
|
|
|
|
|
|
|
|
|
|
if logoutWindow then
|
|
|
|
if logoutWindow then
|
|
|
|
logoutWindow:destroy()
|
|
|
|
logoutWindow:destroy()
|
|
|
|
logoutWindow = nil
|
|
|
|
logoutWindow = nil
|
|
|
|