Version 2.3.1 - bug fixes, hotkeys and anction bars work now in old tibia version (<780)

This commit is contained in:
OTCv8
2020-04-15 21:41:49 +02:00
parent 9a4ab2ae3b
commit 401eb76bba
44 changed files with 101 additions and 47 deletions

View File

@@ -36,5 +36,14 @@ function updateOrder()
table.sort(children, function(a, b)
return (a.index or 1000) < (b.index or 1000)
end)
contentsPanel.buttons:reorderChildren(children)
contentsPanel.buttons:reorderChildren(children)
local visibleCount = 0
for _, child in ipairs(children) do
if child:isVisible() then
visibleCount = visibleCount + 1
end
end
if visibleCount > 6 and buttonsWindow:getHeight() < 30 then
buttonsWindow:setHeight(buttonsWindow:getHeight() + 22)
end
end