mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 03:24:55 +02:00
walk and key event system rework with some regressions
This commit is contained in:
@@ -23,11 +23,11 @@ function TopMenu.init()
|
||||
gameButtonsPanel = topMenu:getChildById('gameButtonsPanel')
|
||||
|
||||
TopMenu.addRightButton('logoutButton', 'Logout (Ctrl+Q)', '/core_styles/icons/logout.png', onLogout)
|
||||
Hotkeys.bind('Ctrl+Q', onLogout)
|
||||
Hotkeys.bindKeyDown('Ctrl+Q', onLogout)
|
||||
end
|
||||
|
||||
function TopMenu.terminate()
|
||||
Hotkeys.unbind('Ctrl+Q')
|
||||
Hotkeys.unbindKeyDown('Ctrl+Q')
|
||||
leftButtonsPanel = nil
|
||||
rightButtonsPanel = nil
|
||||
topMenu:destroy()
|
||||
|
Reference in New Issue
Block a user