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