from retail

This commit is contained in:
NoM0Re
2025-01-10 19:24:25 +01:00
parent a747346a9d
commit 4c4b84863f
10 changed files with 160 additions and 33 deletions
+18
View File
@@ -341,6 +341,17 @@ local function BuildUidMap(data, children, type)
if data.parent then
uidMap.map[data.uid].parent = idToUid[data.parent]
end
-- Handle anchorFrameFrame
if data.anchorFrameType == "SELECTFRAME"
and data.anchorFrameFrame
and data.anchorFrameFrame:sub(1, 10) == "WeakAuras:"
then
local target = data.anchorFrameFrame:sub(11)
if idToUid[target] then
uidMap.map[data.uid].anchorFrameFrame = idToUid[target]
end
end
end
local function handleSortHybridTable(data)
@@ -504,6 +515,13 @@ local function BuildUidMap(data, children, type)
data.controlledChildren = nil
end
if self.map[uid].anchorFrameFrame then
local target = self:GetIdFor(self.map[uid].anchorFrameFrame)
if target then
data.anchorFrameFrame = "WeakAuras:" .. target
end
end
if data.regionType == "dynamicgroup" then
data.sortHybridTable = {}
for i, childUid in ipairs(self.map[uid].controlledChildren) do