Thread Tools Display Modes
01-25-11, 11:21 AM   #1
weavil
A Deviate Faerie Dragon
Join Date: Jun 2008
Posts: 14
help creating a new tag for shadowedUF

I really do not like the alt.power bar display in shadowedUF or pretty much any screen shot i've seen using other UF's.

I would like a tag that displays the current alt power. formatted to display the current value followed by "P", 50P as opposed to 50/100.

ShadowedUF uses the same system for tags which is why I posted here. Any help greatly appreciated.
  Reply With Quote
01-25-11, 04:35 PM   #2
Freebaser
A Molten Kobold Bandit
 
Freebaser's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 135
I haven't looked at shadowedUF but this is how it would look with oUF.

Code:
oUF.Tags['freeb:altpower'] = function(u)
    local cur = UnitPower(u, ALTERNATE_POWER_INDEX)
    local max = UnitPowerMax(u, ALTERNATE_POWER_INDEX)
    
    if cur then
        return (cur.."P")
    end
end
oUF.TagEvents['freeb:altpower'] = "UNIT_POWER UNIT_MAXPOWER"
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » help creating a new tag for shadowedUF


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off