Quantcast WoWInterface - View Single Post - kgPanels - Script Mouseover Combat
View Single Post
12-08-19, 11:00 PM   #3
Wolly_44
A Defias Bandit
Join Date: Dec 2019
Posts: 3
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!

Last edited by Wolly_44 : 12-09-19 at 12:27 AM.
  Reply With Quote