beta
This commit is contained in:
@@ -108,14 +108,17 @@ local function createOptions(parentData, data, index, subIndex)
|
||||
order = 4,
|
||||
image = function()
|
||||
local collapsed = WeakAuras.IsCollapsed("glow", "glow", "glowextra" .. index, true);
|
||||
return collapsed and "Interface\\AddOns\\WeakAuras\\Media\\Textures\\edit" or "Interface\\AddOns\\WeakAuras\\Media\\Textures\\editdown"
|
||||
return collapsed and "collapsed" or "expanded"
|
||||
end,
|
||||
imageWidth = 24,
|
||||
imageHeight = 24,
|
||||
imageWidth = 15,
|
||||
imageHeight = 15,
|
||||
func = function(info, button)
|
||||
local collapsed = WeakAuras.IsCollapsed("glow", "glow", "glowextra" .. index, true);
|
||||
WeakAuras.SetCollapsed("glow", "glow", "glowextra" .. index, not collapsed);
|
||||
end,
|
||||
arg = {
|
||||
expanderName = "glow" .. index .. "#" .. subIndex
|
||||
}
|
||||
},
|
||||
glow_space1 = {
|
||||
type = "description",
|
||||
@@ -245,6 +248,17 @@ local function createOptions(parentData, data, index, subIndex)
|
||||
name = L["Border"],
|
||||
order = 19,
|
||||
hidden = function() return hiddenGlowExtra() or data.glowType ~= "Pixel" end,
|
||||
},
|
||||
|
||||
glow_anchor = {
|
||||
type = "description",
|
||||
name = "",
|
||||
order = 20,
|
||||
hidden = hiddenGlowExtra,
|
||||
control = "WeakAurasExpandAnchor",
|
||||
arg = {
|
||||
expanderName = "glow" .. index .. "#" .. subIndex
|
||||
}
|
||||
}
|
||||
}
|
||||
return options
|
||||
|
||||
@@ -135,10 +135,13 @@ local function createOptions(parentData, data, index, subIndex)
|
||||
end,
|
||||
image = function()
|
||||
local collapsed = WeakAuras.IsCollapsed("subtext", "subtext", "fontflags" .. index, true)
|
||||
return collapsed and "Interface\\AddOns\\WeakAuras\\Media\\Textures\\edit" or "Interface\\AddOns\\WeakAuras\\Media\\Textures\\editdown"
|
||||
return collapsed and "collapsed" or "expanded"
|
||||
end,
|
||||
imageWidth = 24,
|
||||
imageHeight = 24
|
||||
imageWidth = 15,
|
||||
imageHeight = 15,
|
||||
arg = {
|
||||
expanderName = "subtext" .. index .. "#" .. subIndex
|
||||
}
|
||||
},
|
||||
|
||||
text_font_space = {
|
||||
@@ -256,6 +259,17 @@ local function createOptions(parentData, data, index, subIndex)
|
||||
values = WeakAuras.text_word_wrap,
|
||||
hidden = function() return hiddenFontExtra() or data.text_automaticWidth ~= "Fixed" end
|
||||
},
|
||||
|
||||
text_anchor = {
|
||||
type = "description",
|
||||
name = "",
|
||||
order = 55,
|
||||
hidden = hiddenFontExtra,
|
||||
control = "WeakAurasExpandAnchor",
|
||||
arg = {
|
||||
expanderName = "subtext" .. index .. "#" .. subIndex
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
-- Note: Anchor Options need to be generalized once there are multiple sub regions
|
||||
@@ -306,14 +320,17 @@ local function createOptions(parentData, data, index, subIndex)
|
||||
order = 60,
|
||||
image = function()
|
||||
local collapsed = WeakAuras.IsCollapsed("subregion", "text_anchors", tostring(index), true)
|
||||
return collapsed and "Interface\\AddOns\\WeakAuras\\Media\\Textures\\edit" or "Interface\\AddOns\\WeakAuras\\Media\\Textures\\editdown"
|
||||
return collapsed and "collapsed" or "expanded"
|
||||
end,
|
||||
imageWidth = 24,
|
||||
imageHeight = 24,
|
||||
imageWidth = 15,
|
||||
imageHeight = 15,
|
||||
func = function(info, button)
|
||||
local collapsed = WeakAuras.IsCollapsed("subregion", "text_anchors", tostring(index), true)
|
||||
WeakAuras.SetCollapsed("subregion", "text_anchors", tostring(index), not collapsed)
|
||||
end
|
||||
end,
|
||||
arg = {
|
||||
expanderName = "subtext_anchor" .. index .. "#" .. subIndex
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -380,6 +397,17 @@ local function createOptions(parentData, data, index, subIndex)
|
||||
hidden = hiddenFunction
|
||||
}
|
||||
|
||||
options.text_anchor_anchor = {
|
||||
type = "description",
|
||||
name = "",
|
||||
order = 61,
|
||||
hidden = hiddenFontExtra,
|
||||
control = "WeakAurasExpandAnchor",
|
||||
arg = {
|
||||
expanderName = "subtext_anchor" .. index .. "#" .. subIndex
|
||||
}
|
||||
}
|
||||
|
||||
local function hideCustomTextOption()
|
||||
if not parentData.subRegions then
|
||||
return true
|
||||
|
||||
@@ -108,10 +108,13 @@ local function createOptions(parentData, data, index, subIndex)
|
||||
end,
|
||||
image = function()
|
||||
local collapsed = WeakAuras.IsCollapsed("subtext", "subtext", "tickextras" .. index, true)
|
||||
return collapsed and "Interface\\AddOns\\WeakAuras\\Media\\Textures\\edit" or "Interface\\AddOns\\WeakAuras\\Media\\Textures\\editdown"
|
||||
return collapsed and "collapsed" or "expanded"
|
||||
end,
|
||||
imageWidth = 24,
|
||||
imageHeight = 24
|
||||
imageWidth = 15,
|
||||
imageHeight = 15,
|
||||
arg = {
|
||||
expanderName = "tick" .. index .. "#" .. subIndex
|
||||
}
|
||||
},
|
||||
automatic_length = {
|
||||
type = "toggle",
|
||||
@@ -209,6 +212,17 @@ local function createOptions(parentData, data, index, subIndex)
|
||||
softMax = 200,
|
||||
hidden = hiddentickextras,
|
||||
},
|
||||
|
||||
tick_anchor = {
|
||||
type = "description",
|
||||
name = "",
|
||||
order = 18,
|
||||
hidden = hiddentickextras,
|
||||
control = "WeakAurasExpandAnchor",
|
||||
arg = {
|
||||
expanderName = "tick" .. index .. "#" .. subIndex
|
||||
}
|
||||
}
|
||||
}
|
||||
return options
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user