View Single Post
07-16-20, 01:36 PM   #9
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,313
I would usually hook the frame's OnShow/OnHide handlers. (As Seerah mentioned before)
Lua Code:
  1. frame:HookScript("OnShow",function(self)
  2. -- Do something
  3. end);
  4.  
  5. frame:HookScript("OnHide",function(self)
  6. -- Do something
  7. 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)

Last edited by SDPhantom : 07-16-20 at 01:39 PM.
  Reply With Quote