View Single Post
11-26-12, 06:03 AM   #4
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,360
Actually after staring at it some more the whole thing should be able to be reduced to this
(if all you care about is hiding all chattabs)

Lua Code:
  1. local eventframe = CreateFrame("frame")
  2. eventframe:RegisterEvent("PLAYER_LOGIN")
  3. eventframe:SetScript("OnEvent",function()
  4.   local tab
  5.   for i=1,NUM_CHAT_WINDOWS do
  6.     tab = _G["ChatFrame"..i.."Tab"]
  7.     if (tab) then
  8.       tab:Hide()
  9.       tab.Show = tab.Hide
  10.     end
  11.   end
  12. end)
drycoded.

Last edited by Dridzt : 11-26-12 at 06:48 AM.
  Reply With Quote