View Single Post
05-03-08, 04:15 AM   #4
Everglow
An Aku'mai Servant
 
Everglow's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 36
Unhappy

Ok... here is what I came up with for my table

Code:
13  for i = 1,7 do
14      CTChatWindows[i] = {}
15      CTChatWindows[i]["tab"] = {}
16      CTChatWindows[i]["main"] = {}
17      CTChatWindows[i]["region"] = {}
18      setmetatable(CTChatWindows[i]["tab"], {__index = getglobal("ChatFrame"..i.."Tab")})
19      setmetatable(CTChatWindows[i]["main"], {__index = getglobal("ChatFrame"..i)})
20      setmetatable(CTChatWindows[i]["region"], {__index = getglobal("ChatFrame"..i.."TabDockRegion")})
21      CTChatWindows[i]["default"] = CTChatWindows[i]["tab"]:IsShown()
22      CTChatWindows[i]["showing"] = CTChatWindows[i]["tab"]:IsShown()
23  end
24  CTChatWindows["auto"] = true
I run into an error on line 21: Attempt to find 'this' in non-framescript object.

As I understand it, if I set a global frame as a prototype, any attempt at calling a function that doesn't exist in my table will look up and execute the function in the prototype. What am I missing here? What is the proper way to set this up?
__________________
Everglow - Sisters of Elune/US
  Reply With Quote