Download
(1Kb)
Download
Updated: 09-15-09 08:57 PM
Addon for:
Shadowed Unit Frames.
Pictures
File Info
Updated:09-15-09 08:57 PM
Created:05-29-09 09:18 PM
Downloads:10,717
Favorites:46
MD5:

ShadowedUF Class Power  Popular! (More than 5000 hits)

Version: 1.0.1
by: moniker [More]

This is an addon to Shadowed Unit Frames that adds class coloring to the power bar (SUF only has health bar class coloring by default).

See the screenshots for an example.

v 1.0.1 - remove copy of SUFDB from saved vars (dumb)

Post A Reply Comment Options
Unread 11-28-11, 08:52 AM  
Namtab
A Kobold Labourer

Forum posts: 0
File comments: 67
Uploads: 0
Originally Posted by linguini
this addon is preventing me from opening up SUF's config window (/suf)
stange enough this is caused by Shadowed Unit Frames itself since v3.4.2, theres something in SUF that with this addon on won't let options open

i actualy posted something about this in SUF page but got no reply about it

all i can tell u is everytime u wanna change something in SUF u gotta disable this addon temporarily... it's a pain in the ass i know xD
Last edited by Namtab : 11-28-11 at 09:04 AM.
Report comment to moderator  
Reply With Quote
Unread 11-06-11, 01:43 PM  
linguini
A Fallenroot Satyr

Forum posts: 20
File comments: 80
Uploads: 0
this addon is preventing me from opening up SUF's config window (/suf)
Report comment to moderator  
Reply With Quote
Unread 12-23-09, 04:30 PM  
Shadowed
...
Featured Addon Author

Forum posts: 387
File comments: 2513
Uploads: 83
When you get a chance, update and replace:

Code:
function ClassColoredPowerBar:OnDefaultsSet()
  for _, unit in pairs(ShadowUF.units) do
    ShadowUF.defaults.profile.units[unit].powerBar.colorType = "type"
  end
end
With

Code:
function ClassColoredPowerBar:OnInitialize()
  for _, unit in pairs(ShadowUF.unitList) do
    ShadowUF.db.profile.units[unit].powerBar.colorType = ShadowUF.db.profile.units[unit].powerBar.colorType or "type"
  end
end

ClassColoredPowerBar.OnProfileChange = ClassColoredPowerBar.OnInitialize
There was some API changes in v3.0.4
Last edited by Shadowed : 12-24-09 at 06:49 PM.
Report comment to moderator  
Reply With Quote
Unread 11-05-09, 03:53 PM  
shkm
A Chromatic Dragonspawn
 
shkm's Avatar
AddOn Author - Click to view AddOns

Forum posts: 186
File comments: 98
Uploads: 9
If anyone is after something to colour their power text, here is a tag function. Not sure if there's a more elegant way than this, but just change the hex to the colour you want. These are ShadowUF default colours, aside from runic.

Code:
function(unit)
    local powerType = UnitPowerType(unit)
    
    if powerType == 0 then                          -- Mana
        return "|cff4d7ed9"
    elseif powerType == 1 then                      -- Rage
        return "|cffe5324d"
    elseif powerType == 5 or powerType == 6 then    -- Runic
        return "|cff3c4d67"
    else                                            -- Etc (yellow)
        return "|cffffd600"
    end
end
__________________
Quit WoW again on 17/04/2014.
Report comment to moderator  
Reply With Quote
Unread 11-01-09, 10:10 AM  
JCribb
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
This is exactly what I'm looking for. However, after enabling the power bar for class colors I've noticed that the power bar doesn't move as the resource is being used (rage, mana, energy, etc.). In one of your screenshots you show a paladin with mana less than 100% and it looks like in that screenshot the power bar moves appropriately, but on my frames the power bar is a static class color and never fills/empties as the power is being used.
Report comment to moderator  
Reply With Quote
Unread 09-15-09, 08:57 PM  
moniker
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 63
Uploads: 2
Originally posted by kimboslice
Why does this take up 3-4 times the amount of memory compared to other SUF modules? And why does need a duplicate ShadowedUnitFrames.lua in SavedVariables?
It shouldn't and doesn't with the latest version. Stupid on my part. Thanks Shadowed (and kimbo).
Report comment to moderator  
Reply With Quote
Unread 07-30-09, 08:39 PM  
kimboslice
A Defias Bandit

Forum posts: 3
File comments: 76
Uploads: 0
Why does this take up 3-4 times the amount of memory compared to other SUF modules? And why does need a duplicate ShadowedUnitFrames.lua in SavedVariables?
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: