double click funcionalities and some fixes

This commit is contained in:
Andre Ricca da Costa
2012-02-03 04:20:58 -02:00
parent 1340699b01
commit 882b7ec026
5 changed files with 15 additions and 1 deletions

View File

@@ -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()