Category: Plug-Ins & Patches
Addon Information
Download Latest Version.
To add favorites please register for a free account. If you already have one you need to login. How do I install this? (FAQ)

This file is a Addon for Shadowed Unit Frames by Shadowed. You must have that installed before this Addon will work.

Author:
Version:
1.0.1
Date:
09-15-2009 09:57 PM
Size:
1.31 Kb
Downloads:
6,415
Favorites:
53
MD5:
Pictures
Click to enlarge
Example of SUF class colored power bar
Click to enlarge
Config option
ShadowedUF Class Power   Popular! (More than 5000 hits)
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)
  Archived Versions - ShadowedUF Class Power
File Name
Version
Size
Author
Date
1.0
1kB
moniker
05-29-2009 10:18 PM
  Comments - ShadowedUF Class Power
Post A Reply Comment Options
Old 12-23-2009, 04:30 PM  
Shadowed
Never gonna give you up...
WoWInterface Super Moderator
Interface Author - Click to view interfaces

Forum posts: 218
File comments: 2364
Uploads: 98
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-2009 at 06:49 PM.
Shadowed is online now Report comment to moderator  
Reply With Quote
Old 11-05-2009, 03:53 PM  
shkm
A Chromatic Dragonspawn
 
shkm's Avatar
Interface Author - Click to view interfaces

Forum posts: 184
File comments: 92
Uploads: 7
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
shkm is offline Report comment to moderator  
Reply With Quote
Old 11-01-2009, 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.
JCribb is offline Report comment to moderator  
Reply With Quote
Old 09-15-2009, 09:57 PM  
moniker
A Defias Bandit
Interface Author - Click to view interfaces

Forum posts: 3
File comments: 67
Uploads: 2
Quote:
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).
moniker is offline Report comment to moderator  
Reply With Quote
Old 07-30-2009, 09:39 PM  
kimboslice
A Defias Bandit

Forum posts: 3
File comments: 69
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?
kimboslice is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:




The Network:
EQInterface | EQ2Interface | LoTROInterface | MMOInterface | War.MMOUI | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | TankSpot | Zam


©2009 MMOUI / ZAM Network
vBulletin - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.