logout back to mainmenu

This commit is contained in:
Eduardo Bart 2011-08-29 00:48:12 -03:00
parent 9de3bfb8b0
commit 549cd27e9c
2 changed files with 6 additions and 2 deletions

View File

@ -7,5 +7,7 @@ function Game.onLogin()
end
function Game.onLogout()
gameUi:destroy()
gameUi = nil
mainMenu:show()
end

View File

@ -10,4 +10,6 @@ UIWidget
anchors.left: gameMap.right
anchors.top: parent.top
text: Logout
onClick: Game.logout()
onClick: |
Game.logout()
Game.onLogout()