logout back to mainmenu
This commit is contained in:
parent
9de3bfb8b0
commit
549cd27e9c
|
@ -7,5 +7,7 @@ function Game.onLogin()
|
|||
end
|
||||
|
||||
function Game.onLogout()
|
||||
|
||||
gameUi:destroy()
|
||||
gameUi = nil
|
||||
mainMenu:show()
|
||||
end
|
||||
|
|
|
@ -10,4 +10,6 @@ UIWidget
|
|||
anchors.left: gameMap.right
|
||||
anchors.top: parent.top
|
||||
text: Logout
|
||||
onClick: Game.logout()
|
||||
onClick: |
|
||||
Game.logout()
|
||||
Game.onLogout()
|
Loading…
Reference in New Issue