mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 03:24:55 +02:00
double click funcionalities and some fixes
This commit is contained in:
@@ -45,9 +45,11 @@ function Skills.create()
|
||||
skillsWindow = displayUI('skills.otui', { parent = Game.gameRightPanel })
|
||||
skillsWindow:hide()
|
||||
skillsButton = TopMenu.addGameButton('skillsButton', 'Skills (Ctrl+S)', '/core_styles/icons/skills.png', Skills.toggle)
|
||||
Hotkeys.bindKeyDown('Ctrl+S', Skills.toggle)
|
||||
end
|
||||
|
||||
function Skills.destroy()
|
||||
Hotkeys.unbindKeyDown('Ctrl+S')
|
||||
skillsButton:destroy()
|
||||
skillsButton = nil
|
||||
skillsWindow:destroy()
|
||||
|
Reference in New Issue
Block a user