mirror of
https://codeberg.org/Duvelcorp/MetaHunt.git
synced 2026-09-22 07:36:58 +00:00
Balance animation options layout
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user