mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-20 06:33:26 +02:00
Version 2.3.1 - bug fixes, hotkeys and anction bars work now in old tibia version (<780)
This commit is contained in:
@@ -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
|
Reference in New Issue
Block a user