Download
(2 Kb)
Download
Updated: 05-18-08 08:53 AM
Pictures
File Info
Updated:05-18-08 08:53 AM
Created:unknown
Downloads:1,907
Favorites:11
MD5:
ChatToggle
Version: 2.4.03
by: Everglow [More]
This mod will remove all the chat frames from your interface while in combat, to avoid problems of clicking in dead spots.

slash commands:
/ct - display help and status
/ct on - enable addon (default)
/ct off - disable addon

or /chattoggle

If there is any interest in this addon, I will add features.
v2.4.03
Was still downloading the old version for some reason.

v2.4.02
more secure hook for ChatFrame_OnUpdate.

v2.4.01
original release.
Post A Reply Comment Options
Unread 05-18-08, 09:57 AM  
Everglow
An Aku'mai Servant
 
Everglow's Avatar
AddOn Author - Click to view AddOns

Forum posts: 36
File comments: 95
Uploads: 11
Yes, you've suggested that before in the forums. However it doesn't work.
Code:
local CTg = getfenv(0)
for i = 1,7 do
   CTg["ChatFrame"..i]:SetScript("OnShow", function(self) self.Hide() end)
   CTg["ChatFrame"..i.."Tab"]:SetScript("OnShow", function(self) self.Hide() end)
   CTg["ChatFrame"..i.."TabDockRegion"]:SetScript("OnShow", function(self) self.Hide() end)
end
The code above generates an error attempting to find 'this' in a non-table object.

Theoretically, I see your point, and yes it should work, but Blizz must handle the ChatFrames in a unique way.
__________________
Everglow - Sisters of Elune/US
Everglow is offline Report comment to moderator  
Reply With Quote
Unread 05-18-08, 09:21 AM  
Slakah
A Molten Giant
 
Slakah's Avatar
AddOn Author - Click to view AddOns

Forum posts: 863
File comments: 146
Uploads: 26
Theres no really advantage of hooking and OnUpdate, just use :SetScript("OnShow", function(self) self.Hide)
Slakah is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: