This commit is contained in:
Bunny67
2020-08-08 15:48:17 +03:00
parent 13550c449c
commit 073ca1ffe3
15 changed files with 406 additions and 132 deletions
+23 -3
View File
@@ -32,6 +32,9 @@ local spellCache = WeakAuras.spellCache;
local savedVars = {};
WeakAuras.savedVars = savedVars;
WeakAuras.expanderAnchors = {}
WeakAuras.expanderButtons = {}
local tempGroup = {
id = {"tempGroup"},
regionType = "group",
@@ -1617,10 +1620,13 @@ function WeakAuras.AddTextFormatOption(input, withHeader, get, addOption, hidden
setHidden(not hidden())
end,
image = function()
return hidden() and "Interface\\AddOns\\WeakAuras\\Media\\Textures\\edit" or "Interface\\AddOns\\WeakAuras\\Media\\Textures\\editdown"
return hidden() and "collapsed" or "expanded"
end,
imageWidth = 24,
imageHeight = 24
imageWidth = 15,
imageHeight = 15,
arg = {
expanderName = tostring(addOption)
}
}
addOption("header", headerOption)
else
@@ -1661,6 +1667,20 @@ function WeakAuras.AddTextFormatOption(input, withHeader, get, addOption, hidden
end
end)
if withHeader then
addOption("header_anchor",
{
type = "description",
name = "",
control = "WeakAurasExpandAnchor",
arg = {
expanderName = tostring(addOption)
}
}
)
end
if not next(seenSymbols) and withHeader then
headerOption.hidden = true
end