|
|
|
@ -108,7 +108,7 @@ function GameInterface.terminate()
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function GameInterface.show()
|
|
|
|
|
g_app.onClose = GameInterface.tryExit
|
|
|
|
|
connect(g_app, { onClose = GameInterface.tryExit })
|
|
|
|
|
logoutButton:show()
|
|
|
|
|
Background.hide()
|
|
|
|
|
gameRootPanel:show()
|
|
|
|
@ -117,6 +117,7 @@ function GameInterface.show()
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function GameInterface.hide()
|
|
|
|
|
disconnect(g_app, { onClose = GameInterface.tryExit })
|
|
|
|
|
if logoutWindow then
|
|
|
|
|
logoutWindow:destroy()
|
|
|
|
|
logoutWindow = nil
|
|
|
|
@ -132,7 +133,6 @@ function GameInterface.hide()
|
|
|
|
|
gameRootPanel:hide()
|
|
|
|
|
logoutButton:hide()
|
|
|
|
|
Background.show()
|
|
|
|
|
g_app.onClose = nil
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function GameInterface.exit()
|
|
|
|
@ -154,7 +154,6 @@ function GameInterface.tryExit()
|
|
|
|
|
|
|
|
|
|
local exitFunc = function()
|
|
|
|
|
GameInterface.exit()
|
|
|
|
|
exitButton:getParent():destroy()
|
|
|
|
|
end
|
|
|
|
|
local logoutFunc = function()
|
|
|
|
|
GameInterface.logout()
|
|
|
|
|