This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [SOLVED] Hide chat frame/tab with LUA  (Read 1202 times)

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
[SOLVED] Hide chat frame/tab with LUA
« on: August 12, 2011, 10:14:46 pm »
Do someone know how to hide the full chat tab. My goal is to hide all original gui elements and show only my addon. A get everything managed except the chat window.

Thanks to kenuvis:
Code: [Select]

-- Hide all chat windows
for i = 1, NUM_CHAT_WINDOWS do
local frame = _G[format("ChatFrame%s", i)];
if frame:IsVisible() then
ChatFrameSave[i]=1;
frame:Hide();
else
ChatFrameSave[i]=0;
end
end
-- Hide all caht Tabs
for i = 1, NUM_CHAT_WINDOWS do
local frame = _G[format("ChatFrame%sTab", i)];
if frame:IsVisible() then
ChatFrameTabSave[i]=1;
frame:Hide();
else
ChatFrameTabSave[i]=0;
end
end


-- Show chat frames again
for i = 1, NUM_CHAT_WINDOWS do
local frame = _G[format("ChatFrame%s", i)]
if ChatFrameSave[i]==1 then
frame:Show();
end
end
-- Show caht Tabs again
for i = 1, NUM_CHAT_WINDOWS do
local frame = _G[format("ChatFrame%sTab", i)]
if ChatFrameTabSave[i]==1 then
frame:Show();
end
end

- Thanks Schlumpf for the hint. You are right!
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954