from retail

This commit is contained in:
NoM0Re
2025-01-26 21:24:18 +01:00
parent 1793d7ac19
commit f9bf9c3c16
25 changed files with 1467 additions and 500 deletions
+6 -2
View File
@@ -4,6 +4,10 @@ local AddonName, OptionsPrivate = ...
local L = WeakAuras.L;
local function createOptions(parentData, data, index, subIndex)
local areaAnchors = {}
for child in OptionsPrivate.Private.TraverseLeafsOrAura(parentData) do
WeakAuras.Mixin(areaAnchors, OptionsPrivate.Private.GetAnchorsForData(child, "area"))
end
local options = {
__title = L["Border %s"]:format(subIndex),
__order = 1,
@@ -48,12 +52,12 @@ local function createOptions(parentData, data, index, subIndex)
softMax = 64,
bigStep = 1,
},
border_anchor = {
anchor_area = {
type = "select",
width = WeakAuras.normalWidth,
name = L["Border Anchor"],
order = 7,
values = OptionsPrivate.Private.aurabar_anchor_areas,
values = areaAnchors,
hidden = function() return parentData.regionType ~= "aurabar" end
}
}