Reporting a buggy behavior. In short, tags registered in text area anchored to Alternate Power bar won't be shown/updated properly.
I was trying to configure SUF text/tags so that current Alternate Power can be shown as number, because checking these numbers not just visually (as bars) but also numerically has some importance in encounters these days (ex: Heroic Amber-shaper in HoF and such). First I made some tags to get and return information of AltPower as follows:
curmaxAltPower
function(unit, unitOwner)
local maxAltPower = UnitPowerMax(unit,SPELL_POWER_ALTERNATE_POWER)
local altPower = UnitPower(unit,SPELL_POWER_ALTERNATE_POWER)
if( maxAltPower <= 0 ) then
return nil
end
return string.format("%s/%s", ShadowUF:FormatLargeNumber(altPower), ShadowUF:FormatLargeNumber(maxAltPower))
end
altPowerType
function(unit, unitOwner)
local maxAltPower = UnitPowerMax(unit,SPELL_POWER_ALTERNATE_POWER)
if( maxAltPower <= 0 ) then
return nil
end
local barType, minPower, startInset, endInset, smooth, hideFromOthers, showOnRaid, opaqueSpark, opaqueFlash, powerName, powerTooltip = UnitAlternatePowerInfo(unit)
return powerName
end
For events which should trigger update of these tags, 'UNIT_POWER', 'UNIT_MAXPOWER' and 'UNIT_DISPLEYPOWER' are registered.
I went Whack-a-Gnoll at the Darkmoon Faire (which gives number of hit gnolls as Alternate Power) and put these tags in default text area anchored to Health Bar for testing. These tags worked properly and return stuff that I need. Name of the bar and numbers were shown and updated like 'Whack-a-Gnoll 1/30' as I played. If I changed game to other games with Alternate Power or reloaded UI, tags reamain working.
Then I made 2 text areas ('Left text'/'Right text') anchored to Alternate Power bars from Text Management tab in General section of configuration. And then registered tags I made to these text areas.
What then happened was, if I registered tags with Whacking started (Alternate Power bar shown), tags start working and correctly updating. However, if I reloaded UI or changed area, tags no longer shown when I started Whack thereafter (bar was shown and worked properly but texts/numbers not shown).
After reloading, if I re-registered tags (uncheck&recheck tags in Text/Tags tab in Unit Configuration) without starting Whack, and then started Whack, again tags weren't shown (bar was again OK. Regardless of tags properly shown/updated or not, Alternate Power bar itself was always working properly).
So what I concluded is, there is some flaw in initialization/loading process of Alternate Power bar or in text-showing functions of SUF bars, which causes text anchored to Alternate Power bar not to be shown after reloading.
If this is actually a bug, I hope it's fixed. Currently I'm just leaving these tags stayed in text area anchored to Health bar and practically it's OK, but for the sake of consistency I want them to be on AltPower bars. If there is other workaround for this issue, please enlighten me. And Thank you for creating and updating this lovely addon!
Nice find and excellent report. I'm pretty sure I know what's causing the issue, I'll take a look into it tonight when I do a final pass before releasing a version for WoW 5.2.
Just as an FYI, I'm seeing a problem where if I'm using both Clique and Shadowed Unit Frames I don't get the menu (for doing things like dropping group) when I right click on my character frame.
The problem doesn't reproduce if I have Clique and the games default frames or if I run with SUF enabled but Clique disabled.
Noticed a bug of some kind. First time using Shadowed UF, and its in good shape for the most part, but when my target window appears because a mob aggroed on me then attacks me, the default blizz targetframe appears underneath it.
If i target the mob first then only the SUF target frame appears. For some reason when it appears because a mob attacks me it does not hide the default blizz target frame. this can also occur when a group of mobs pull because i attack a single one of them, the frame appears from another mob under the suf target frame.
I'm wondering, is there a way to have the range indicator not be tied to spells? I'm thinking specifically for Rogues, for example, who only have "friendly" spells that can be cast on party members (Tricks of the Trade). This makes it so that anything not in party with you, (any time you're playing solo) any friendly target, is considered out of range. This only applies to the target frame.
Or maybe there is some option I'm missing that already does this?
Here is what I'm getting since I got the correct version when i try to right click people in my raid frames. I am thinking it is an error that is my fault, but I don't know how to tell what I broke. Thanks
Hi Shadowed, thanks much for a great add-on, been using it for quite a few expansions. Just recently I wondered: Is there a way to enable displaying rare enemies - and have I missed the switch for it? Thanks for any info!
I was trying to configure SUF text/tags so that current Alternate Power can be shown as number, because checking these numbers not just visually (as bars) but also numerically has some importance in encounters these days (ex: Heroic Amber-shaper in HoF and such). First I made some tags to get and return information of AltPower as follows:
curmaxAltPower
altPowerType
For events which should trigger update of these tags, 'UNIT_POWER', 'UNIT_MAXPOWER' and 'UNIT_DISPLEYPOWER' are registered.
I went Whack-a-Gnoll at the Darkmoon Faire (which gives number of hit gnolls as Alternate Power) and put these tags in default text area anchored to Health Bar for testing. These tags worked properly and return stuff that I need. Name of the bar and numbers were shown and updated like 'Whack-a-Gnoll 1/30' as I played. If I changed game to other games with Alternate Power or reloaded UI, tags reamain working.
Then I made 2 text areas ('Left text'/'Right text') anchored to Alternate Power bars from Text Management tab in General section of configuration. And then registered tags I made to these text areas.
What then happened was, if I registered tags with Whacking started (Alternate Power bar shown), tags start working and correctly updating. However, if I reloaded UI or changed area, tags no longer shown when I started Whack thereafter (bar was shown and worked properly but texts/numbers not shown).
After reloading, if I re-registered tags (uncheck&recheck tags in Text/Tags tab in Unit Configuration) without starting Whack, and then started Whack, again tags weren't shown (bar was again OK. Regardless of tags properly shown/updated or not, Alternate Power bar itself was always working properly).
So what I concluded is, there is some flaw in initialization/loading process of Alternate Power bar or in text-showing functions of SUF bars, which causes text anchored to Alternate Power bar not to be shown after reloading.
If this is actually a bug, I hope it's fixed. Currently I'm just leaving these tags stayed in text area anchored to Health bar and practically it's OK, but for the sake of consistency I want them to be on AltPower bars. If there is other workaround for this issue, please enlighten me. And Thank you for creating and updating this lovely addon!
The problem doesn't reproduce if I have Clique and the games default frames or if I run with SUF enabled but Clique disabled.
As you can see by the count, it happens pretty much constantly while in combat.
(I would post this in the ticket tracker, but it's completely broken.)
If i target the mob first then only the SUF target frame appears. For some reason when it appears because a mob attacks me it does not hide the default blizz target frame. this can also occur when a group of mobs pull because i attack a single one of them, the frame appears from another mob under the suf target frame.
Or maybe there is some option I'm missing that already does this?
robur2: Use tags
I'm using Grid and having the same ".\FrameXML\UnitPopup.lua line 940: Usage: GetRaidRosterInfo(index" error. Anything I can fix in the grid lua?