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!