Added keypad, fixed one crash bug and few more features for mobile version

This commit is contained in:
OTCv8
2020-06-12 17:58:54 +02:00
parent 8391355c42
commit 82018bf3c9
23 changed files with 294 additions and 36 deletions

View File

@@ -25,7 +25,7 @@ function setupExtraHotkeys(combobox)
local nextChild = nil
local breakNext = false
for i, child in ipairs(battlePanel:getChildren()) do
if not child.creature or child:isDisabled() then
if not child.creature or not child:isOn() then
break
end
nextChild = child
@@ -53,7 +53,7 @@ function setupExtraHotkeys(combobox)
local attackedCreature = g_game.getAttackingCreature()
local prevChild = nil
for i, child in ipairs(battlePanel:getChildren()) do
if not child.creature or child:isDisabled() or child:isHidden() then
if not child.creature or not child:isOn() then
break
end
if child.creature == attackedCreature then