PDA

View Full Version : [WoW] Addon Issue: Sunn Viewport art is more "on top" than power auras



luxlunae
07-27-2012, 09:02 PM
Any addon developers know where I can go to either move power auras aura up (strangely the stack count is on TOP of the sunn viewport panel) or move the panel to the bottom.

I'm not afraid to get my hands dirty by modifying a little lua.

MiRai
07-27-2012, 09:12 PM
Each aura you create has an X,Y position value that you can adjust. If you're talking about frame strata, Power Auras 4.x does not support that w/o hacking the Lua.

luxlunae
07-28-2012, 12:26 PM
Yes sorry, I meant the frame strata. I'm just fine with hacking the lua if someone more familiar with it would tell me where. It seems it might be easier to push sunnart down than to pull power auras up.

MiRai
07-28-2012, 01:08 PM
http://www.wowinterface.com/downloads/fileinfo.php?id=8579&so=&page=5#comments


When I realized the strata limitation, I poked around the code and saved variables. I noticed that there's an option for strata which can be modified by "strata:BACKGROUND/LOW/MEDIUM/HIGH/DIALOG" in an import string. This really didn't change anything though because the aura would still be shown as "BACKGROUND" using fstack inspection.

Adjusting this function seemed it allow the strata to work right using the strata option when importing an aura

Code:

function PowaAuras:ShowAuraForFirstTime(aura)
...
if (aura.strata ~= "LOW") then
frame:SetFrameStrata(aura.strata);
else
frame:SetFrameStrata("BACKGROUND");
end
...
end
Here's a working example of the current power auras working with the saved strata option.

http://www.youtube.com/watch?v=OBtyMlJNe8k&hd=1 (http://www.youtube.com/watch?v=OBtyMlJNe8k&hd=1)