#Unit Frame Anchor with Two Vuhdo Windows

32 messages · Page 1 of 1 (latest)

torn whale
#

I've a WeakAura that shows the externals on the tanks.

Atm it's set to Unit Frames
My Unit Frames are TWO VuhDo Windows

Is there a possible way to set the anchor from windows 2 to windows 1 ??

See Picture for better unterstanding

drowsy spade
#

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

torn whale
#

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

drowsy spade
torn whale
#

Will check it thx 😊

torn whale
#

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 😦

drowsy spade
#

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 😦

torn whale
drowsy spade
#

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
torn whale
#

Thx.

I get some icons but its always at the wrong window

drowsy spade
#

are you sure Vd2 is what you think?

#

with /fstack you can check frame names

torn whale
#

It's Vd3 but i changed the priolist to
"^Vd3", "^Vd1"

#

same issue

drowsy spade
#

hmmm i think i got wrong syntaxe

#

ok fixed

torn whale
#

unfortunately it is still the wrong window 😦

drowsy spade
#

yes i'v edited again

#

missed an "aura_env."

torn whale
#

ahh now it's working ❤️

#

thx