Thread Tools Display Modes
02-12-11, 06:43 PM   #1
barbol12
A Cyclonian
 
barbol12's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2010
Posts: 42
power bar coloring...

hello, quick question.

how do i color the backdrop of the power bar to be the same color as the statusbar but just lower alpha... for instance, if i have class power bar on for target, how can i color the backdrop to be class colored as well, just lowered alpha. or if i have a custom color i want to use, and have the backdrop be that color as the statusbar, just lower alpha..
  Reply With Quote
02-12-11, 08:20 PM   #2
Akkorian
A Flamescale Wyrmkin
 
Akkorian's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2010
Posts: 111
Hi barbol12,

If you just want the background to be the same color but darker, you can just set it up like this:

Code:
frame.Power.colorClass = true
frame.Power.bg.multiplier = 0.25
That will make the power bar’s background the same color as the foreground, but only 25% as bright.

If you really want the alpha (opacity) to be different, you can just set the background’s alpha when you create it:

Code:
frame.Power.colorClass = true
frame.Power.bg.multiplier = 1 -- so it’s the same color

frame.Power.bg:SetAlpha( 0.25 )
Or you could combine the two to make the background darker and more transparent!
__________________
“Be humble, for you are made of earth. Be noble, for you are made of stars.”
  Reply With Quote
02-12-11, 09:24 PM   #3
barbol12
A Cyclonian
 
barbol12's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2010
Posts: 42
awesome, ty... works perfectly
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » power bar coloring...


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