This commit is contained in:
OTCv8
2020-06-09 18:19:20 +02:00
parent 76d6f2ce7d
commit 541e189d3f
154 changed files with 2540 additions and 1221 deletions

View File

@@ -51,9 +51,9 @@ function setupExtraHotkeys(combobox)
end
local battlePanel = modules.game_battle.battlePanel
local attackedCreature = g_game.getAttackingCreature()
local prevChild = battlePanel:getLastChild()
local prevChild = nil
for i, child in ipairs(battlePanel:getChildren()) do
if not child.creature or child:isDisabled() then
if not child.creature or child:isDisabled() or child:isHidden() then
break
end
if child.creature == attackedCreature then

View File

@@ -43,7 +43,9 @@ configValueChanged = false
-- public functions
function init()
hotkeysButton = modules.client_topmenu.addLeftGameButton('hotkeysButton', tr('Hotkeys') .. ' (Ctrl+K)', '/images/topbuttons/hotkeys', toggle, false, 7)
if not g_app.isMobile() then
hotkeysButton = modules.client_topmenu.addLeftGameButton('hotkeysButton', tr('Hotkeys') .. ' (Ctrl+K)', '/images/topbuttons/hotkeys', toggle, false, 7)
end
g_keyboard.bindKeyDown('Ctrl+K', toggle)
hotkeysWindow = g_ui.displayUI('hotkeys_manager')
hotkeysWindow:setVisible(false)
@@ -104,7 +106,9 @@ function terminate()
unload()
hotkeysWindow:destroy()
hotkeysButton:destroy()
if hotkeysButton then
hotkeysButton:destroy()
end
mouseGrabberWidget:destroy()
end