Thread Tools Display Modes
10-19-10, 08:46 PM   #1
Woxx1
A Kobold Labourer
Join Date: Oct 2010
Posts: 1
opacity with deficit health for GRID?

As it currently stands--unless im doing it all wrong--when health is knocked off in grid, a solid bar of black or class color is shown.

Its the deficit health. I would like a way to make that totally transparent. Nothing seems to work. Anyway around it?
  Reply With Quote
10-19-10, 10:45 PM   #2
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 331
Originally Posted by Woxx1 View Post
As it currently stands--unless im doing it all wrong--when health is knocked off in grid, a solid bar of black or class color is shown.

Its the deficit health. I would like a way to make that totally transparent. Nothing seems to work. Anyway around it?
I've been using a personal change to grid for a while...

I've been actually attempting to change it via external addon here:
http://www.wowinterface.com/forums/s...ad.php?t=35824

If you'd like to change it to something else change this code here:

Lines 462-472 of GridFrame.lua:
Code:
function GridFrame.prototype:SetBarColor(r, g, b, a)
	if GridFrame.db.profile.invertBarColor then
		self.Bar:SetStatusBarColor(r, g, b, a)
		self.BarBG:SetVertexColor(r * 0.2, g * 0.2, b * 0.2, 1)
	else
		self.Bar:SetStatusBarColor(0, 0, 0, 0.8)
		self.BarBG:SetVertexColor(r, g, b, a)
	end

	self:UpdateHealingBarColor()
end
Change to:
Code:
function GridFrame.prototype:SetBarColor(r, g, b, a)
	if GridFrame.db.profile.invertBarColor then
		self.Bar:SetStatusBarColor(r, g, b, a)
		self.BarBG:SetVertexColor(1,1,1,1) --(red,green,blue,alpha)
	else
		self.Bar:SetStatusBarColor(0, 0, 0, 0.8)
		self.BarBG:SetVertexColor(r, g, b, a)
	end

	self:UpdateHealingBarColor()
end
self.BarBG:SetVertexColor(1,1,1,1) --(red,green,blue,alpha) would be whatever color you'd want, and setting the last digit to 0 would make the bar clear.

This only changes the bar that shows the deficit hp, however you'll still have to remove the color for the background color.

Last edited by suicidalkatt : 10-19-10 at 11:00 PM.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » opacity with deficit health for GRID?


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