beta
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user