Originally Posted by Phanx
It's obviously not his real and/or whole code.
@TGifallen - Please post your entire, actual code. There's nothing in the fake snippet you posted that would affect the game's chat frame settings in any way. Posting fake snippets is just a waste of time, for both you -- because nobody can help you, and you just have to come back and post the real thing anyway -- and everyone else -- because we have to spend time looking at your useless fake code and telling you to post your real code.
|
I guess I wasn't clear when I said these events are using kgpanels events to make fake buttons, and this is my real and entire code.
that's the reason it has escapes, because i'm reading it from the kgpanels config lua file, the two big blobs of text you see on the right are the code for 2 buttons. The code is exactly the same except for one button uses ChatFrame3 and the other uses ChatFrame4.
I cleaned it up again.
Lua Code:
--[[ LOAD EVENT --]]
HackTabs = HackTabs or {}
local tab = GetClickFrame("ChatFrame3Tab")
tab:Hide()
local Frame = GetClickFrame("ChatFrame3")
HackTabs.ChatFrame3 = {
Frame = Frame,
Parent=Frame:GetParent(),
Tab = tab,
}
for k,v in pairs(HackTabs) do
if not (v.Frame == Frame) then
--v.Frame:SetParent(nil)
-- v.Frame:Hide()
end
end
--[[CLICK EVENT--]]
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
--[[UPDATE EVENT --]]
HackTabs.ChatFrame3.Tab:Show()
Edit:
I deeply apologize for wasting your time, it turns out it was an error with Chatter, and not my code, sorry. But if anyone does want to help more pointing me in the right direction to where I can learn to make a full blown addon would be great.
Edit2:
I would also appreciate it if anyone told me how I can set channel filters through lua, so i can have lua hide and set up filters (like guild chat, officer chat) on chat frames.