#Unit Frame Anchor with Two Vuhdo Windows
32 messages · Page 1 of 1 (latest)
no
or mhmm
you need a custom anchor function
calling libgetframe with your own priority list
try
function()
if aura_env.state and aura_env.state.unit then
aura_env.prioryList = aura_env.prioryList or {
"^Vd2", "^Vd1"
}
return WeakAuras.GetUnitFrame(aura_env.state.unit, { framePriorities = aura_env.prioryList })
end
end
this is for single aura anchoring, for dynamic groups check the wiki
I don't get it
I can't find this for dynamic groups
Would'nt it be simpler :
Ignore "^Vd1"
I try sth but it didn't work
I try the example at the GitHub from LibGetFrame
Will check it thx 😊
ok if im guessing right i have to combine the group by frame function and the libgetframe function
this is my result:
function(frames, activeRegions)
for _, regionData in ipairs(activeRegions) do
local unit = regionData.region.state and regionData.region.state.destUnit
if unit then
local LGF = LibStub("LibGetFrame-1.0")
local frame = LGF.GetUnitFrame("player", {
ignoreFrames = { "Vd1.*"}
})
if frame then
frames[frame] = frames[frame] or {}
tinsert(frames[frame], regionData)
end
end
end
end
But it doesn't show any icon 😦
local LGF = LibStub("LibGetFrame-1.0")
use WeakAuras.GetUnitFrame
why you want to use ignoreFrames, it reset a very big list of frames ignored, i gave you the way to change priority list
destUnit are you sure that's the right field?
code i gave use unit not destUnit
i wrote some code and you don't want to use any of it 😦
I want ... but it's not that easy for me . I'm not very good at lua, like i said.
Your code is for single anchoring but i have a dynamic group
your code always only return frame for "player"
function(frames, activeRegions)
aura_env.prioryList = aura_env.prioryList or {
"^Vd3", "^Vd1"
}
for _, regionData in ipairs(activeRegions) do
local unit = regionData.region.state and regionData.region.state.unit
if unit then
local frame = WeakAuras.GetUnitFrame(unit, { framePriorities = aura_env.prioryList })
if frame then
frames[frame] = frames[frame] or {}
tinsert(frames[frame], regionData)
end
end
end
end
Thx.
I get some icons but its always at the wrong window
unfortunately it is still the wrong window 😦