View Single Post
07-01-12, 02:05 AM   #3
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,323
Originally Posted by Phanx View Post
(2) Modify your event handler code to explicitly check whether the fired event is PLAYER_REGEN_ENABLED before hiding the frame:

Code:
if event == "PLAYER_REGEN_DISABLED" then
	self:Show()
else
	self:Hide() 
end
Should be:
Code:
if event == "PLAYER_REGEN_DISABLED" then
	self:Show()
elseif event == "PLAYER_REGEN_ENABLED" then
	self:Hide() 
end
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote