mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 03:24:55 +02:00
restore inventory and healthbar
* make inventory/healthbar work again allowing reload * changes in top menu toggle buttons * all modules are now reloadable by default * fix warning when using fade in * remove some unused files
This commit is contained in:
@@ -41,14 +41,14 @@ local function setSkillPercent(id, percent, tooltip)
|
||||
end
|
||||
|
||||
-- public functions
|
||||
function Skills.create()
|
||||
function Skills.init()
|
||||
skillsWindow = displayUI('skills.otui', GameInterface.getRightPanel())
|
||||
skillsWindow:hide()
|
||||
skillsButton = TopMenu.addGameButton('skillsButton', 'Skills (Ctrl+S)', '/core_styles/icons/skills.png', Skills.toggle)
|
||||
Keyboard.bindKeyDown('Ctrl+S', Skills.toggle)
|
||||
end
|
||||
|
||||
function Skills.destroy()
|
||||
function Skills.terminate()
|
||||
Keyboard.unbindKeyDown('Ctrl+S')
|
||||
skillsButton:destroy()
|
||||
skillsButton = nil
|
||||
|
@@ -6,3 +6,7 @@ Module
|
||||
|
||||
@onLoad: |
|
||||
dofile 'skills'
|
||||
Skills.init()
|
||||
|
||||
@onUnload: |
|
||||
Skills.terminate()
|
||||
|
Reference in New Issue
Block a user