Thread Tools Display Modes
07-01-09, 08:32 PM   #1
ayra
A Murloc Raider
Join Date: May 2006
Posts: 5
kg panels colors on event

hey, I'm looking for a script that would make a panel more and more red depending on my hp if that is possible. if it isn't i would just like to find a script that would make a panel red when i enter combat

thanks!
  Reply With Quote
07-01-09, 08:38 PM   #2
Katae
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Jun 2007
Posts: 208
I'm sure hp% is possible, though I only have a combat/noncombat script on hand:

Code:
OnEvent=function(self,event)
	if event == "PLAYER_REGEN_DISABLED" then self.bg:SetTexture(1,0,0,.5) end
	if event == "PLAYER_REGEN_ENABLED" then self.bg:SetTexture(1,1,1,.5) end
end,
OnLoad=function(self)
	self:RegisterEvent("PLAYER_REGEN_DISABLED")
	self:RegisterEvent("PLAYER_REGEN_ENABLED")
end
(This was for my panels mod, you'll need to edit it a bit for kgpanels)
  Reply With Quote
07-01-09, 08:48 PM   #3
ayra
A Murloc Raider
Join Date: May 2006
Posts: 5
thanks a lot!
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » kg panels colors on event


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