mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 19:44:54 +02:00
logout back to mainmenu
This commit is contained in:
@@ -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()
|
Reference in New Issue
Block a user