#Update custom anchor?

7 messages · Page 1 of 1 (latest)

rare harbor
#

I have an aura group I'm trying to anchor to either the default raid frames or the default party frames. I'm using a custom anchor as such:

function()
if CompactRaidFrameContainer:IsShown() then
return CompactRaidFrameContainer
elseif CompactPartyFrameMember1:IsShown() then
return CompactPartyFrameMember1
end
end

This works the first time I join a group or party, but if I switch to the other later (or e.g. the group converts into a party), the anchor doesn't update again without reloading the aura. Is the custom anchor function only called once at Init? Is there a way to fix this?

rain eagle
#

The WA frame lib doesn't use the correct one?

rare harbor
#

I'm sorry, I don't understand what that means

rain eagle
#

Anchor To = Unitframe?

rare harbor
#

I think that would only work if I was doing group by frame to attach something to unit frames

#

I'm trying to 'attach' a group of auras that track CDs to the party/raid frame generally, not attach it to each unit frame

rain eagle
#

I see.
The problem is that the Anchor function doesn't run when you hope it will.
I'd recommend duplicating the group, setting it to load in the different situations, and anchoring each one as you need