mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
fixes and preparations for battle window
This commit is contained in:
@@ -68,7 +68,6 @@ end
|
||||
function HotkeysManager.load()
|
||||
local hotkeySettings = Settings.getNode('HotkeysManager')
|
||||
|
||||
local label
|
||||
if hotkeySettings ~= nil then
|
||||
for i, v in pairs(hotkeySettings) do
|
||||
HotkeysManager.addKeyCombo(nil, v.keyCombo, v)
|
||||
@@ -99,7 +98,7 @@ function HotkeysManager.terminate()
|
||||
hotkeyLabelSelectedOnList = nil
|
||||
currentItemPreview = nil
|
||||
|
||||
hotkeyList = nil
|
||||
hotkeyList = {}
|
||||
addHotkey = nil
|
||||
removeHotkey = nil
|
||||
hotkeyText = nil
|
||||
@@ -201,6 +200,7 @@ function HotkeysManager.addHotkey()
|
||||
local widget
|
||||
|
||||
messageBox = createWidget('MainWindow', hotkeysWindow)
|
||||
messageBox:grabKeyboard()
|
||||
messageBox:setId('assignWindow')
|
||||
messageBox:setText('Button Assign')
|
||||
messageBox:setWidth(420)
|
||||
|
@@ -8,7 +8,7 @@ Module
|
||||
- client_tibiafiles
|
||||
|
||||
onLoad: |
|
||||
require 'hotkeys_manager'
|
||||
dofile 'hotkeys_manager'
|
||||
HotkeysManager.init()
|
||||
|
||||
onUnload: |
|
||||
|
Reference in New Issue
Block a user