| Updated: | 09-15-09 08:57 PM |
| Created: | 05-29-09 09:18 PM |
| Downloads: | 8,850 |
| Favorites: | 49 |
| MD5: |

File Name |
Version |
Size |
Author |
Date |
1.0 |
1kB |
moniker |
05-29-09 09:18 PM |
![]() |
Comment Options |
|
|
|
|
A Deviate Faerie Dragon
Forum posts: 18
File comments: 61
Uploads: 0
|
this addon is preventing me from opening up SUF's config window (/suf)
|
|
|
|
|
|
|
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
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
Last edited by Shadowed : 12-24-09 at 05:49 PM.
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
||
|
||
|
|
|
|
|
|
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?
|
|
|
![]() |