Dynamic Group custom grow: aura_env.child_envs empty
mrbuds opened this issue ยท 2 comments
To Reproduce
Import
!1I1EVnoUr8VlBrbYDnRtKYZRO7FK4yN6TEvsnD2h4qLnTeTmVirQkr5hBX5p7DgsQh2wEVauu4DJPOgoCEp)g774p2NK7tEGT0NK4tcX)bBrZcgYerQf(ExC95(K1pnFEot57bR30ynveSqM9SKlu(K7FA84N(0WE9bgKjxrsPbmFphFYmAWRrzYcbWEpPGbNlqXLIC9TROzkybWaUGBxnhwMVqVgEsLXJIyzi5EAj2UbUmKnRy(8XBsbU(37n85(VmeEV(rArg1fUGuwC8GWCdNZlMXwYekcCk(AFYKU3rgpHm(UraZkqbGKgt3amVI0NZyAsjp3BiWC9EWLXOXG9HiOjS8sjTqulAkZwbY4IerTXamvSmbn(ZGcb2ayVRr7ipHIMKMweRAi0wSqqzqcMy2mNfifGobxqcLlE7uxzzFB0dNGgZJe(KU98g3BKw60ki6(JLuD4sroBsqmnp3FM2EhGBMueR4LggZB3F3C(3z7VPQ0AWqMfuKRKjpcHtGOxi0HnNiyREwMZ1HqNUDkgmTKnIfHp)tB)42PMpXYaA82PwbE70pSD65h(w0XCK3fZt4k97aXzrNffrSdOjHh(1t1F9ndxoTnoHbw563)F(96xoxcsfhoqMw2FGQOWZc4)PuEw(j7PytdL1NT8ZN5z0ii9DSugp5UWqKjNuZpG5VR(P39thYaRegSGhhoHjwQLsm1bFOt125)AnB6ec)zGiKT(F9gfOs(DksX7kFQnX5hE8gIZPn4tJTbwo99VVvfamRW)PXROBGVzjPQnhE9hUZ7FFAgKZEsfJ6abukwh0L2q(zIWgNTLvw7SOi5Z8C(SytqxcxCIomd0N)0FqGSsQOXFHhQwOp6jnzfOYoGQ)ZLb07fJPpGZP7E9TfozVQMbKFyVmSFL3IxFpzR5J)fqu3l2PZk8vhZ6zLH1G4UXAKc)QwfRz7zUvjDW(NuLJ)ZTzxoZ9qJP1KuV)kW)Y07)3(W))StR10T(hAvME22PUh9ktL2cjA7ZVFiDn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odtJL8CV29cNl119CV5YlU9gDXp3RVYfQMJvaHL4pGayQbcCH1OjgwE9134I2v8yU34GgvGwCTUVHoECYcEiRs9bvi41MbMjZap3Nm6MrRgkxbU7QJBNLf9)LNQ9r6BzWDS7ZVPN3uBKeBQssmKnuIb3eZVKXsMD3pb9zSv9BDmFmN9R70fRTX(pYW4nhyVXy)VnQRh7)nrpwCvbfk38qzMj47RaY4ykXHIEGPif5oSKhzbJhTauTloVvKp6swCmbaZOOXPlOLmdAMRnEqMX8DqeORA2f2cuxDkhzGhzWd9m05t6NX)(2P)ZcAyMgf(ylydNMDMD0rOo6GtN96m3kVR6lC8lW9nCbASBr34QgWg6598fTHwR7OE98A0EP9Bm4nCz5SAejG763G4v(CiW18lYPvjFYFgRaWsqeeeNoN3X6wqdpwLUjdA5hPZMeGb(HYj2hMTBa2rjX(Z7vrGPz0UePm4JXYH5gjRFg7Fxa4s2azmDCVApmR)cauZ0MeJ5Aby63LaNXCnUadhnnXqBnyksRazoiqhxdv(U6QZpeWBlOOrr7EZSkw5EjWGlDrxH))9
or wago link : https://wago.io/64m6GJ7vC
VDT show an empty table for aura_env.child_envs
I was expecting to see an entry for each of my active buffs am i doing it wrong or is it a bug ?
Also if i duplicate the aura in the dynamic group, then disable it, and duplicate the disabled aura i get this error
1x WeakAuras\AuraEnvironment.lua:159: attempt to index upvalue 'current_aura_env' (a nil value)
WeakAuras\AuraEnvironment.lua:159: in function `ActivateAuraEnvironment'
WeakAuras\RegionTypes\DynamicGroup.lua:525: in function `growFunc'
WeakAuras\RegionTypes\DynamicGroup.lua:810: in function `DoPositionChildren'
WeakAuras\RegionTypes\DynamicGroup.lua:796: in function `PositionChildren'
WeakAuras\RegionTypes\DynamicGroup.lua:778: in function `SortUpdatedChildren'
WeakAuras\RegionTypes\DynamicGroup.lua:675: in function `ReloadControlledChildren'
WeakAuras\RegionTypes\DynamicGroup.lua:978: in function `modify'
WeakAuras\WeakAuras-@[email protected]:3492: in function `SetRegion'
WeakAuras\WeakAuras-@[email protected]:3352: in function <WeakAuras\WeakAuras.lua:3339>
WeakAuras\WeakAuras-@[email protected]:3423: in function `Add'
WeakAurasOptions\WeakAurasOptions-@[email protected]:103: in function `DuplicateAura'
...eGUI-Widgets\AceGUIWidget-WeakAurasDisplayButton.lua:614: in function `func'
FrameXML\UIDropDownMenu.lua:914: in function `UIDropDownMenuButton_OnClick'
[string "*:OnClick"]:1: in function <[string "*:OnClick"]:1>
Locals:
id = "test dynamic group aura_env.child_envs"
cloneId = nil
state = nil
data = <table> {
arcLength = 360
controlledChildren = <table> {
}
xOffset = 0
yOffset = 0
anchorPoint = "BOTTOMLEFT"
space = 2
background = "None"
actions = <table> {
}
triggers = <table> {
}
columnSpace = 1
radius = 200
selfPoint = "CENTER"
align = "CENTER"
stagger = 0
load = <table> {
}
animate = false
customGrow = "function(newPositions, activeRegions)
local stagger = 0
local space = 0
local limit = math.huge
local midX, midY = 0, 0
local units = {}
for i, regionData in ipairs(activeRegions) do
ViragDevTool_AddData(regionData, "regionData")
local child_env = aura_env.child_envs[regionData.dataIndex]
ViragDevTool_AddData(aura_env, "aura_env")
ViragDevTool_AddData(aura_env.child_envs, "aura_env.child_envs") -- aura_env.child_envs is always empty
--print(child_env.state.unit)
end
local numVisible = min(limit, #activeRegions)
local totalWidth = (numVisible - 1) * space
for i = 1, numVisible do
local regionData = activeRegions[i]
totalWidth = totalWidth + (regionData.data.width)
end
local x, y = midX - totalWidth/2, midY - (stagger * (numVisible - 1)/2)
local i = 1
while i <= numVisible do
local regionData = activeRegions[i]
x = x + (regionData.data.width) / 2
scale = 1
border = "None"
anchorFrameFrame = "UIParent"
regionType = "dynamicgroup"
gridType = "RD"
sort = "none"
backgroundInset = 0
rotation = 0
anchorFrameParent = true
constantFactor = "RADIUS"
animation = <table> {
}
borderOffset = 16
useLimit = false
grow = "CUSTOM"
id = "test dynamic group aura_env.child_envs"
uid = "Jvvy5GryKG1"
gridWidth = 5
anchorFrameType = "SELECTFRAME"
authorOptions = <table> {
}
config = <table> {
}
frameStrata = 1
limit = 5
conditions = <table> {
}
internalVersion = 16
rowSpace = 1
}
region = <unnamed> {
IsSuspended = <function> defined @WeakAuras\RegionTypes\DynamicGroup.lua:573
controlledChildren = <table> {
}
SetAnimAlpha = <function> defined @WeakAuras\RegionTypes\RegionPrototype.lua:282
growFunc = <function> defined @WeakAuras\RegionTypes\DynamicGroup.lua:524
xOffset = 0
SortUpdatedChildren = <function> defined @WeakAuras\RegionTypes\DynamicGroup.lua:741
Expand = <function> defined @WeakAuras\RegionTypes\RegionPrototype.lua:610
yOffset = 0
anchorPoint = "CENTER"
needToSort = false
GetXOffset = <function> defined @WeakAuras\RegionTypes\RegionPrototype.lua:252
SetYOffset = <function> defined @WeakAuras\RegionTypes\RegionPrototype.lua:248
Resize = <function> defined @WeakAuras\RegionTypes\DynamicGroup.lua:914
SetOffset = <function> defined @WeakAuras\RegionTypes\RegionPrototype.lua:235
needToReload = false
needToPosition = false
updatedChildren = <table> {
}
RemoveChild = <function> defined @WeakAuras\RegionTypes\DynamicGroup.lua:719
SetRegionAlpha = <function> defined @WeakAuras\RegionTypes\RegionPrototype.lua:269
0 = <userdata>
ReloadControlledChildren = <function> defined @WeakAuras\RegionTypes\DynamicGroup.lua:644
GetYOffset = <function> defined @WeakAuras\RegionTypes\RegionPrototype.lua:256
AddChild = <function> defined @WeakAuras\RegionTypes\DynamicGroup.lua:681
PositionChildren = <function> defined @WeakAuras\RegionTypes\DynamicGroup.lua:787
currentWidth = 90
Suspend = <function> defined @WeakAuras\RegionTypes\DynamicGroup.lua:577
currentHeight = 30
SetOffsetAnim = <function> defined @WeakAuras\RegionTypes\RegionPrototype.lua:260
background = <unnamed> {
}
OptionsClosed = <function> defined @WeakAuras\RegionTypes\RegionPrototype.lua:478
selfPoint = "TOPLEFT"
suspended = 0
sortFunc = <function> defined @Wea
This error was solved by 40a6d1b
I'm on classic branch and i failed to merge the conflict i had on this file. (ty causese for noticing!)