mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 03:24:55 +02:00
replace require with dofile, rename Hotkeys to Keyboard
This commit is contained in:
@@ -45,11 +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)
|
||||
Keyboard.bindKeyDown('Ctrl+S', Skills.toggle)
|
||||
end
|
||||
|
||||
function Skills.destroy()
|
||||
Hotkeys.unbindKeyDown('Ctrl+S')
|
||||
Keyboard.unbindKeyDown('Ctrl+S')
|
||||
skillsButton:destroy()
|
||||
skillsButton = nil
|
||||
skillsWindow:destroy()
|
||||
|
@@ -4,4 +4,4 @@ Module
|
||||
author: OTClient team
|
||||
website: https://github.com/edubart/otclient
|
||||
onLoad: |
|
||||
require 'skills'
|
||||
dofile 'skills'
|
||||
|
Reference in New Issue
Block a user