Thank you for your help!
I have now adjusted the OnEvent to the following:
Code:
if event == "PLAYER_REGEN_DISABLED" then
self:SetAlpha(0)
ChatFrame1:SetAlpha(0)
elseif event == "PLAYER_REGEN_ENABLED" then
self:SetAlpha(1)
ChatFrame1:SetAlpha(1)
end
And I've also changed the OnEnter/OnLeave scripts to the following:
Code:
if event == "PLAYER_REGEN_DISABLED" then
self:SetAlpha(1)
ChatFrame1:SetAlpha(1)
end
Once I enter combat, all works well, the panel & chatframes are not visible until I leave combat, but when I mouseover the panel nothing is reappearing until I leave combat again.
Are my OnEnter/OnLeave statements incorrect?
EDIT: I can get the mouseover to work regardless of combat status, I just want to know how to script it so that when I am out of combat the mousover is disabled
Thanks again!