View Single Post
03-07-24, 09:50 AM   #7
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,333
Originally Posted by Fizzlemizz View Post
A better method would probably be to add/remove the message event(s) from the chatframe rather than doing the Click() thing especially if you wanted to do this for all chat frames.
This is what the checkbox ends up calling
Code:
/run if not ChatFrame_ContainsMessageGroup(ChatFrame1,"SYSTEM") then ChatFrame_AddMessageGroup(ChatFrame1,"SYSTEM");end
Code:
/run if ChatFrame_ContainsMessageGroup(ChatFrame1,"SYSTEM") then ChatFrame_RemoveMessageGroup(ChatFrame1,"SYSTEM");end
ChatFrame1 is the default general chatframe, ChatFrame2 is the CombatLog. This goes up to ChatFrame10, which is the maximum number of them (there are some exceptions) you can have.
__________________
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