This commit is contained in:
Bunny67
2020-08-08 15:48:17 +03:00
parent 13550c449c
commit 073ca1ffe3
15 changed files with 406 additions and 132 deletions
+4 -4
View File
@@ -1039,15 +1039,15 @@ local function modify(parent, region, data)
function region:DoPositionChildrenPerFrame(frame, positions, handledRegionData)
for regionData, pos in pairs(positions) do
if type(regionData) ~= "table" then
break;
end
handledRegionData[regionData] = true
local x, y, show = type(pos[1]) == "number" and pos[1] or 0,
type(pos[2]) == "number" and pos[2] or 0,
type(pos[3]) ~= "boolean" and true or pos[3]
local controlPoint = type(regionData) == "table" and regionData.controlPoint
if not controlPoint then
break
end
local controlPoint = regionData.controlPoint
controlPoint:ClearAnchorPoint()
controlPoint:SetAnchorPoint(
data.selfPoint,