From 514f3b4c78da35d88fae74ca3112263056a529b7 Mon Sep 17 00:00:00 2001 From: Infus Date: Thu, 3 Oct 2024 21:17:07 +0200 Subject: [PATCH] Tweak Default Collapse setting on display tab * Set Progress Source settings to default collapsed, it's usually not something people will want to touch. * Set Position settings to default collapsed. This is a bit more controversial, but imho most editing of auras does not involve those. * Set Sub Element settings to default collapsed. --- WeakAurasOptions/CommonOptions.lua | 2 ++ WeakAurasOptions/DisplayOptions.lua | 1 + 2 files changed, 3 insertions(+) diff --git a/WeakAurasOptions/CommonOptions.lua b/WeakAurasOptions/CommonOptions.lua index 211d51714f..7de42a045f 100644 --- a/WeakAurasOptions/CommonOptions.lua +++ b/WeakAurasOptions/CommonOptions.lua @@ -1071,6 +1071,7 @@ local function ProgressOptions(data) local options = { __title = L["Progress Settings"], __order = 98, + __collapsed = true } options.progressSource = { @@ -1244,6 +1245,7 @@ local function PositionOptions(id, data, _, hideWidthHeight, disableSelfPoint, g local positionOptions = { __title = L["Position Settings"], __order = metaOrder, + __collapsed = true, width = { type = "range", control = "WeakAurasSpinBox", diff --git a/WeakAurasOptions/DisplayOptions.lua b/WeakAurasOptions/DisplayOptions.lua index a735fed199..9fe88daeb4 100644 --- a/WeakAurasOptions/DisplayOptions.lua +++ b/WeakAurasOptions/DisplayOptions.lua @@ -104,6 +104,7 @@ function OptionsPrivate.GetDisplayOptions(data) subIndex[subRegionType] = subIndex[subRegionType] and subIndex[subRegionType] + 1 or 1 local options, common = OptionsPrivate.Private.subRegionOptions[subRegionType].create(data, subRegionData, index, subIndex[subRegionType]) options.__order = 200 + index + options.__collapsed = true regionOption["sub." .. index .. "." .. subRegionType] = options commonOption[subRegionType] = common end