Shestak UI
Go Back   Shestak UI > Interface Forums > English Community > General Discussion

General Discussion The place for World of Warcraft discussions that don’t fit into any other forum.

Advertising

 
Thread Tools
Old 03.09.2012, 14:33   #1
 Elder Member User Information

Balgar's Avatar
Question Pet Power Bar color

Hey guys. I am wondering if there is a way to change the color on my warlocks pet power bars? Right now it is a boring grey color.

I am pretty sure earlier in the week it was green but I could be mistaken.
Old 03.09.2012, 14:33   #1.5 - Disable Ads

Advertise on this site

Old 03.09.2012, 16:32   #2
Shestak
 Junior Member User Information

Shestak's Avatar
If UF option "Own color" is enabled, power color = class_color
If this option is disabled, power color = power_type_color

In MoP Blizzard change power type for warlock pets, and this type not sets in pType table.

Find in ShestakUI/Modules/UnitFrames/Layout.lua(~126-130 lines):
lua Code [Select]:
if C.unitframe.own_color == true then
    self.Power.colorClass = true
else
    self.Power.colorPower = true
end
and change:
lua Code [Select]:
if unit == "pet" then
    self.Power:SetStatusBarColor(1, 0, 0) -- Your pet power bar color
else
    if C.unitframe.own_color == true then
        self.Power.colorClass = true
    else
        self.Power.colorPower = true
    end
end
Old 06.09.2012, 23:25   #3
Balgar
 Elder Member User Information

Balgar's Avatar
tyvm

Posted in 76 hours 10 minute
after testing this fix seems to only work if I do a /reload all the time?

Any other ideas?
Old 06.09.2012, 23:45   #4
Shestak
 Junior Member User Information

Shestak's Avatar
Quote:
Originally Posted by Balgar View Post
after testing this fix seems to only work if I do a /reload all the time?
Hhm, ok, needed update power color if pet is respawn(mounts, dead, etc).

Try this variant. Find in ShestakUI/Core/Functions.lua(~748-750 lines):
lua Code [Select]:
local self = power:GetParent()
local pType, pToken = UnitPowerType(unit)
local color = T.oUF_colors.power[pToken]
and add after:
lua Code [Select]:
if unit == "pet" then
    power:SetStatusBarColor(1, 0, 0) -- Your pet power bar color
    power.bg:SetVertexColor(1, 0, 0, 0.25) -- Your pet power bar bg color
end

Tags
pet power bar.

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Border Color Balgar General Discussion 4 28.08.2013 08:24
Class Color Borders eponectarine Technical Support 5 29.08.2012 22:51
[Problem] about Power.Value / 关于Power条数值的问题 Humlew Technical Support 0 11.12.2010 07:56
Color of Runes souless Technical Support 2 16.10.2010 19:09
How to change color of the Runes? souless Technical Support 2 05.07.2010 13:24


Mobile Style Русский English Deutsch Italian Chinese