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