|
|
@ -18,8 +18,8 @@ currentHotkeysList = nil
|
|
|
|
hotkeyLabelSelectedOnList = nil
|
|
|
|
hotkeyLabelSelectedOnList = nil
|
|
|
|
currentItemPreview = nil
|
|
|
|
currentItemPreview = nil
|
|
|
|
itemWidget = nil
|
|
|
|
itemWidget = nil
|
|
|
|
addHotkey = nil
|
|
|
|
addHotkeyButton = nil
|
|
|
|
removeHotkey = nil
|
|
|
|
removeHotkeyButton = nil
|
|
|
|
hotkeyText = nil
|
|
|
|
hotkeyText = nil
|
|
|
|
hotKeyTextLabel = nil
|
|
|
|
hotKeyTextLabel = nil
|
|
|
|
sendAutomatically = nil
|
|
|
|
sendAutomatically = nil
|
|
|
@ -43,8 +43,8 @@ function init()
|
|
|
|
|
|
|
|
|
|
|
|
currentHotkeysList = hotkeysWindow:getChildById('currentHotkeys')
|
|
|
|
currentHotkeysList = hotkeysWindow:getChildById('currentHotkeys')
|
|
|
|
currentItemPreview = hotkeysWindow:getChildById('itemPreview')
|
|
|
|
currentItemPreview = hotkeysWindow:getChildById('itemPreview')
|
|
|
|
addHotkey = hotkeysWindow:getChildById('addHotkey')
|
|
|
|
addHotkeyButton = hotkeysWindow:getChildById('addHotkeyButton')
|
|
|
|
removeHotkey = hotkeysWindow:getChildById('removeHotkey')
|
|
|
|
removeHotkeyButton = hotkeysWindow:getChildById('removeHotkeyButton')
|
|
|
|
hotkeyText = hotkeysWindow:getChildById('hotkeyText')
|
|
|
|
hotkeyText = hotkeysWindow:getChildById('hotkeyText')
|
|
|
|
hotKeyTextLabel = hotkeysWindow:getChildById('hotKeyTextLabel')
|
|
|
|
hotKeyTextLabel = hotkeysWindow:getChildById('hotKeyTextLabel')
|
|
|
|
sendAutomatically = hotkeysWindow:getChildById('sendAutomatically')
|
|
|
|
sendAutomatically = hotkeysWindow:getChildById('sendAutomatically')
|
|
|
@ -164,7 +164,7 @@ function onChooseItemMouseRelease(self, mousePosition, mouseButton)
|
|
|
|
hotkeyLabelSelectedOnList.itemId = item:getId()
|
|
|
|
hotkeyLabelSelectedOnList.itemId = item:getId()
|
|
|
|
changeUseType(HOTKEY_MANAGER_USEONSELF)
|
|
|
|
changeUseType(HOTKEY_MANAGER_USEONSELF)
|
|
|
|
checkSelectedHotkey(hotkeyLabelSelectedOnList)
|
|
|
|
checkSelectedHotkey(hotkeyLabelSelectedOnList)
|
|
|
|
HotkeysManager:show()
|
|
|
|
show()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
g_mouse.restoreCursor()
|
|
|
|
g_mouse.restoreCursor()
|
|
|
@ -182,7 +182,7 @@ function startChooseItem()
|
|
|
|
mouseGrabberWidget:grabMouse()
|
|
|
|
mouseGrabberWidget:grabMouse()
|
|
|
|
g_mouse.setTargetCursor()
|
|
|
|
g_mouse.setTargetCursor()
|
|
|
|
|
|
|
|
|
|
|
|
HotkeysManager:hide()
|
|
|
|
hide()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
function clearObject()
|
|
|
|
function clearObject()
|
|
|
@ -314,7 +314,7 @@ function checkSelectedHotkey(focused)
|
|
|
|
hotkeyLabelSelectedOnList = focused
|
|
|
|
hotkeyLabelSelectedOnList = focused
|
|
|
|
|
|
|
|
|
|
|
|
if hotkeyLabelSelectedOnList ~= nil then
|
|
|
|
if hotkeyLabelSelectedOnList ~= nil then
|
|
|
|
removeHotkey:enable()
|
|
|
|
removeHotkeyButton:enable()
|
|
|
|
|
|
|
|
|
|
|
|
if hotkeyLabelSelectedOnList.itemId == nil then
|
|
|
|
if hotkeyLabelSelectedOnList.itemId == nil then
|
|
|
|
hotkeyText:enable()
|
|
|
|
hotkeyText:enable()
|
|
|
@ -347,7 +347,7 @@ function checkSelectedHotkey(focused)
|
|
|
|
changeUseType(hotkeyLabelSelectedOnList.useType)
|
|
|
|
changeUseType(hotkeyLabelSelectedOnList.useType)
|
|
|
|
else
|
|
|
|
else
|
|
|
|
hotkeyText:clearText()
|
|
|
|
hotkeyText:clearText()
|
|
|
|
removeHotkey:disable()
|
|
|
|
removeHotkeyButton:disable()
|
|
|
|
hotkeyText:disable()
|
|
|
|
hotkeyText:disable()
|
|
|
|
sendAutomatically:disable()
|
|
|
|
sendAutomatically:disable()
|
|
|
|
sendAutomatically:setChecked(false)
|
|
|
|
sendAutomatically:setChecked(false)
|
|
|
|