from retail
This commit is contained in:
@@ -72,6 +72,16 @@ local gridSelfPoints = {
|
||||
DR = "TOPLEFT",
|
||||
LD = "TOPRIGHT",
|
||||
DL = "TOPRIGHT",
|
||||
HD = "TOP",
|
||||
HU = "BOTTOM",
|
||||
VR = "LEFT",
|
||||
VL = "RIGHT",
|
||||
DH = "TOP",
|
||||
UH = "BOTTOM",
|
||||
LV = "RIGHT",
|
||||
RV = "LEFT",
|
||||
HV = "CENTER",
|
||||
VH = "CENTER",
|
||||
}
|
||||
|
||||
local function createOptions(id, data)
|
||||
@@ -267,7 +277,7 @@ local function createOptions(id, data)
|
||||
width = WeakAuras.normalWidth,
|
||||
name = function()
|
||||
if not data.gridType then return "" end
|
||||
if data.gridType:find("^[RL]") then
|
||||
if data.gridType:find("^[RLH]") then
|
||||
return L["Row Width"]
|
||||
else
|
||||
return L["Column Height"]
|
||||
@@ -448,7 +458,7 @@ local function createOptions(id, data)
|
||||
OptionsPrivate.commonOptions.AddCodeOption(options, data, L["Custom Anchor"], "custom_anchor_per_unit", "https://github.com/WeakAuras/WeakAuras2/wiki/Custom-Code-Blocks#group-by-frame",
|
||||
1.7, function() return not(data.grow ~= "CUSTOM" and data.useAnchorPerUnit and data.anchorPerUnit == "CUSTOM") end, {"customAnchorPerUnit"}, false, { setOnParent = true })
|
||||
|
||||
local borderHideFunc = function() return data.useAnchorPerUnit or data.grow == "CUSTOM" end
|
||||
local borderHideFunc = function() return data.useAnchorPerUnit end
|
||||
local disableSelfPoint = function() return data.grow ~= "CUSTOM" and data.grow ~= "GRID" and not data.useAnchorPerUnit end
|
||||
|
||||
for k, v in pairs(OptionsPrivate.commonOptions.BorderOptions(id, data, nil, borderHideFunc, 70)) do
|
||||
|
||||
Reference in New Issue
Block a user