#Custom Anchor WA Icon to another WA Icon

6 messages · Page 1 of 1 (latest)

jolly tulip
#

Hey all! I’ve been reworking my UI in anticipation for WOTLK next week. I’m trying to build a single row of icons – 2 of which will be for trinket 1 and trinket 2. I’d like to dynamically overlay additional icons onto these trinket 1 and trinket 2 icons for procs, actives, ICDs, etc. however I’m running into some issues with this.

Basically, I’m trying to set a custom anchor for the “proc” icon to be on top of the trinket icon and have it dynamically position on top of the correct trinket icon based on what slot said trinket is in. Problem is when I use a custom anchor and have it return a weakaura I get an error such as: Couldn't find region named 'WeakAuras:Trinket_14'. Even though that is the name of the WA region (confirmed by setting the “Anchor To” setting directly to that text).

Am I missing something here? I’ll note that I’ve gotten similar code to work, but instead of trying to dynamically place the proc on a WA icon I placed it on an elvui bar slot (like aka replacing "WeakAuras:Trinket_14" with "ElvUI_Bar9Button1” in the custom anchor, for example) and everything works fine.

Here’s a link to a sample WA demonstrating this issue: https://wago.io/d5o6PcJwT

Wago.io is a database of sharable World of Warcraft addon elements

urban fox
#

honestly you could just do a dynamic group... you could also just have a WA for trinket 1 and 2 and the WA changes based on procs and the like instead of trying to overlay it

#

Say a desat trinket icon for a proc based one that saturates and has a duration when the proc occurs

jolly tulip
#

So I’m trying to allow myself to move trinkets from one slot to another and have the UI update with that movement. It’s probably pretty niche, but I want to be able to show that a trinket is in slot 13 and have its procs overlayed there, but if I move it slot 14 later on have all the procs there – without having duplicate icons in different dynamic groups (if I understand your suggestion correctly).

Besides my weirdo point that I’m trying to do this for my trinkets – is there a reason I can’t “Custom Anchor” to a weak aura region, but can when I anchor via “Select Frame”?

#

Just to reiterate - that function I use inside the "Custom Anchor" works fine when it returns non-WA-regions (like an elvui action bar button)

final spindle
#

I think WeakAuras:Trinket_13 is just a shortcut name within the /wa options. This actually doesn't exist: /run print(_G["WeakAuras:Trinket_13"]) --> nil

Try Anchoring to: WeakAuras.regions["Trinket_13"].region