View Single Post
05-03-08, 09:39 PM   #8
Everglow
An Aku'mai Servant
 
Everglow's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 36
I actually couldn't get that to work, so I hooked the Chat_Frame_OnUpdate event handler, which is much simpler, and seems to work fine. hidden is just a boolean that indicates whether I'm hiding the frames or not. Thanks again for the input.

Code:
 
local ORIG_ChatFrame_OnUpdate = ChatFrame_OnUpdate
function ChatFrame_OnUpdate()
   if (hidden) then
      this:Hide()
   else
      ORIG_ChatFrame_OnUpdate()
   end
end
__________________
Everglow - Sisters of Elune/US

Last edited by Everglow : 05-03-08 at 09:40 PM. Reason: typo
  Reply With Quote