From 402cd8aef0f73c087a67121bd53eabe52019d62c Mon Sep 17 00:00:00 2001 From: DuvelCorp Date: Fri, 11 Sep 2026 15:29:01 +0200 Subject: [PATCH] Balance animation options layout --- api/options-animations.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/api/options-animations.lua b/api/options-animations.lua index 0bba53f..50f1faf 100644 --- a/api/options-animations.lua +++ b/api/options-animations.lua @@ -100,8 +100,9 @@ function MTH_SetupAnimationsOptions() end, }) - -- Per-animation checkboxes: each section is a self-sizing box, dropped into - -- whichever column currently has the most room so the two stay balanced. + -- Keep the two columns balanced at standard Options-window sizes. The + -- Interface section is intentionally paired with Pet instead of stacked + -- below Leveling and Combat, where it would run below the window. local s = 1 while MTH_FX_ANIM_SECTIONS and s <= table.getn(MTH_FX_ANIM_SECTIONS) do local sec = MTH_FX_ANIM_SECTIONS[s] @@ -119,7 +120,8 @@ function MTH_SetupAnimationsOptions() local count = table.getn(secDefs) 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), MTH_ANIM_L(sec.titleKey, sec.title))