from retail

This commit is contained in:
NoM0Re
2025-01-16 22:58:42 +01:00
parent 869ac5c1b4
commit db45573d1c
10 changed files with 172 additions and 53 deletions
+6 -1
View File
@@ -1365,7 +1365,12 @@ local function modify(parent, region, data)
end
controlPoint:SetWidth(regionData.dimensions.width)
controlPoint:SetHeight(regionData.dimensions.height)
if data.anchorFrameParent then
if (data.anchorFrameParent
or data.anchorFrameParent == nil)
and not (data.anchorFrameType == "SCREEN"
or data.anchorFrameType == "UIPARENT"
or data.anchorFrameType == "MOUSE")
and not data.useAnchorPerUnit then
controlPoint:SetParent(frame == "" and self.relativeTo or frame)
else
controlPoint:SetParent(self)