Thread Tools Display Modes
05-14-09, 02:41 PM   #1
AwdBawl
A Fallenroot Satyr
Join Date: Apr 2009
Posts: 20
A Pitbull Question..It'll Maul Your Face Off.

Yo, a relatively simple question.

I know it's possible to color the health bar by class, easy. My question is, is there any way I can get Pitbull the color the health bar BACKGROUND by class? It'd add loads of aesthetic value to my up-and-coming UI.

Any ideas? If it's not possible at this time, then I can always swing by the Pitbull page and drop them a hint. Thanks a ton.
  Reply With Quote
05-14-09, 03:49 PM   #2
Psychophan7
A Chromatic Dragonspawn
Join Date: Feb 2006
Posts: 153
There is. Pitbull 3 (and PB4) color the background by class if you have enabled the option to color the bar by class. The background is roughly 70% darker, though.

If you want the background to be lighter, you'll have to do it manually:

For Pitbull 3:
-> Global Settings -> Colors -> Classes
Copy the RGB values down. The RGB value I have for priests (like my main), for example, is 255/255/222

-> Player -> Bars -> Health -> Custom Background Color
Click 'enable' and fill the RGB value in. Tinker with it as needed.

This won't work nicely for the party frames, or any other non-player frame.

Last edited by Psychophan7 : 05-14-09 at 03:58 PM.
  Reply With Quote
05-14-09, 04:03 PM   #3
AwdBawl
A Fallenroot Satyr
Join Date: Apr 2009
Posts: 20
Originally Posted by Psychophan7 View Post
This won't work nicely for the party frames.
Haha..thanks for the help. Unfortunately, this was my aim: to have custom class background colors for any player I target, or any party/raid frames in my UI. I understand this is one of Grid's abilities and I just wondered if PB shared the same functionality.

I'll check the PB4 options as suggested. Thanks again.
  Reply With Quote
05-14-09, 04:35 PM   #4
Psychophan7
A Chromatic Dragonspawn
Join Date: Feb 2006
Posts: 153
Heh, I was just leaving that as a note that I as checking PB4's options. I edited my post after I did.

I did find a way to make the background be lighter, though. Or any color permutation.

Caution: Involves changing the LUA file!

Open pitbull.lua, goto line 1183:

Code:
function FakeStatusBar_methods:SetBackgroundColor(br, bg, bb)
        self.bgR, self.bgG, self.bgB = br or false, bg or false, bb or false
        if not br then
                local r, g, b = self.fg:GetVertexColor()
Line 1183 ->    self.bg:SetVertexColor((r + 0.2)/3, (g + 0.2)/3, (b + 0.2)/3)
        else
                self.bg:SetVertexColor(br, bg, bb)
        end
end
Change the underlined values to what you'd like them to be. Be careful changing the 0.2 numbers. What you should focus on are the 3s. Change it to 2 and the backgrounds will be 50% darker. Change it to 1 and there will be no change in brightness.

You also might want to add this after line 1183, so you know where to look if you break something:
Code:
-- self.bg:SetVertexColor((r + 0.2)/3, (g + 0.2)/3, (b + 0.2)/3)
-- Default values for the line 1183
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » A Pitbull Question..It'll Maul Your Face Off.


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