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