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