View Single Post
12-13-12, 03:31 PM   #1
TGifallen
A Murloc Raider
Join Date: Dec 2012
Posts: 7
Chat Frames not retaining filter settings

So I am messing with kgpanels to try to set up some sort of hacky chat tabs so i can have my Log, guild and loot windows on the right side and my general and whisper windows on the left. My code shows and hides the windows properly but the windows never save their filter settings.

Code:
-- on load
HackTabs = HackTabs or {}
local tab = GetClickFrame(\"ChatFrame3Tab\")
tab:Hide()

local Frame = GetClickFrame(\"ChatFrame3\")
HackTabs.ChatFrame3 = {
    Frame = Frame,
    Parent=Frame:GetParent(),
    Tab = tab,
}

-- on click
local Frame =HackTabs.ChatFrame3
Frame.Frame:SetParent(Frame.Parent)
Frame.Frame:Show()
for k,v in pairs(HackTabs) do
    if not (v == Frame) then
        v.Frame:SetParent(nil)
        v.Frame:Hide()
    end
end
  Reply With Quote