Balance animation options layout

This commit is contained in:
DuvelCorp
2026-09-11 15:29:01 +02:00
parent aa99ee01cc
commit 402cd8aef0
+5 -3
View File
@@ -100,8 +100,9 @@ function MTH_SetupAnimationsOptions()
end, end,
}) })
-- Per-animation checkboxes: each section is a self-sizing box, dropped into -- Keep the two columns balanced at standard Options-window sizes. The
-- whichever column currently has the most room so the two stay balanced. -- Interface section is intentionally paired with Pet instead of stacked
-- below Leveling and Combat, where it would run below the window.
local s = 1 local s = 1
while MTH_FX_ANIM_SECTIONS and s <= table.getn(MTH_FX_ANIM_SECTIONS) do while MTH_FX_ANIM_SECTIONS and s <= table.getn(MTH_FX_ANIM_SECTIONS) do
local sec = MTH_FX_ANIM_SECTIONS[s] local sec = MTH_FX_ANIM_SECTIONS[s]
@@ -119,7 +120,8 @@ function MTH_SetupAnimationsOptions()
local count = table.getn(secDefs) local count = table.getn(secDefs)
if count > 0 then if count > 0 then
local box = panel:Box(panel:ShorterSide(), local side = (sec.id == "pet" or sec.id == "ui") and "left" or "right"
local box = panel:Box(side,
"MetaHuntOptionsAnimBox_" .. tostring(sec.id), "MetaHuntOptionsAnimBox_" .. tostring(sec.id),
MTH_ANIM_L(sec.titleKey, sec.title)) MTH_ANIM_L(sec.titleKey, sec.title))