View Single Post
10/29/16, 02:41 PM   #6
Letho
AddOn Author - Click to view addons
Join Date: Apr 2016
Posts: 238
Thumbs up

Hey @Ayantir, I just browsed through your code. This "swap sniffer" method as you named it, is quite similar to my current implementation. The Problem is we have to wait for the player to swap his weapons before we get the full data set (= main bar and back bar). What I had in mind is the following:

1. Nightblade tank ability "mirrage" (20% dodge buff)
2. an aura/icon that displays as soon as the buff is missing (as a reminder for keeping it upat all times)
3. loading/displaying this aura only makes sense as long as the player has the ability sloted
4. I usually slot this ability on my back bar (long duration, no synergies, etc.)
=> Icon is even displayed if the ability is not sloted. So I wanted to provide a "loading condition: ability sloted" - but this can only be achieved if the addon knows both bar layouts from the beginning.

So using this swap sniffer method and unload unused auras as soon as the addon knows both bar layouts seems the best approach I can get, sadly

Thanks for confirming sirinsidiators response!
  Reply With Quote