from retail
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
if not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
local L = WeakAuras.L
|
||||
@@ -1072,7 +1072,7 @@ local function PositionOptions(id, data, _, hideWidthHeight, disableSelfPoint, g
|
||||
return data.anchorFrameParent or data.anchorFrameParent == nil;
|
||||
end,
|
||||
hidden = function()
|
||||
return (data.anchorFrameType == "SCREEN" or data.anchorFrameType == "MOUSE" or IsParentDynamicGroup());
|
||||
return not IsGroupByFrame() and (data.anchorFrameType == "SCREEN" or data.anchorFrameType == "MOUSE" or IsParentDynamicGroup());
|
||||
end,
|
||||
},
|
||||
anchorFrameSpaceOne = {
|
||||
@@ -1082,7 +1082,7 @@ local function PositionOptions(id, data, _, hideWidthHeight, disableSelfPoint, g
|
||||
order = 72,
|
||||
image = function() return "", 0, 0 end,
|
||||
hidden = function()
|
||||
return IsParentDynamicGroup() or IsGroupByFrame() or not (data.anchorFrameType == "SCREEN" or data.anchorFrameType == "MOUSE")
|
||||
return IsParentDynamicGroup() or not (data.anchorFrameType == "SCREEN" or data.anchorFrameType == "MOUSE")
|
||||
end,
|
||||
},
|
||||
-- Input field to select frame to anchor on
|
||||
@@ -1142,6 +1142,9 @@ local function PositionOptions(id, data, _, hideWidthHeight, disableSelfPoint, g
|
||||
if IsGroupByFrame() then
|
||||
return false
|
||||
end
|
||||
if IsParentDynamicGroup() then
|
||||
return true
|
||||
end
|
||||
return data.anchorFrameType == "SCREEN" or data.anchorFrameType == "MOUSE";
|
||||
else
|
||||
return data.anchorFrameType == "MOUSE";
|
||||
|
||||
Reference in New Issue
Block a user