from retail

This commit is contained in:
NoM0Re
2025-01-17 17:10:25 +01:00
parent ad4ada1eb9
commit f970df8eab
3 changed files with 13 additions and 10 deletions
+6 -3
View File
@@ -1365,12 +1365,15 @@ local function modify(parent, region, data)
end
controlPoint:SetWidth(regionData.dimensions.width)
controlPoint:SetHeight(regionData.dimensions.height)
if (data.anchorFrameParent
or data.anchorFrameParent == nil)
if (data.anchorFrameParent or data.anchorFrameParent == nil)
and (data.useAnchorPerUnit
or (
not data.useAnchorPerUnit
and not (data.anchorFrameType == "SCREEN"
or data.anchorFrameType == "UIPARENT"
or data.anchorFrameType == "MOUSE")
and not data.useAnchorPerUnit then
))
then
controlPoint:SetParent(frame == "" and self.relativeTo or frame)
else
controlPoint:SetParent(self)