Page 1 of 1

Dust's Macros

Posted: 23 Oct 2007 20:17
by Dust
Hide everything besides the chat frame.

Code: Select all

/script if AltZ_HF == nil then AltZ_HF = {}; local kids = { UIParent:GetChildren() }; for _, child in ipairs(kids) do if child:IsShown() and child ~= DEFAULT_CHAT_FRAME then table.insert(AltZ_HF, child); child:Hide(); end end end
Shows everything that was hidden

Code: Select all

/script if AltZ_HF ~= nil then for _, child in ipairs(AltZ_HF) do child:Show(); end AltZ_HF = nil end
Tip: Before you try the hide macro, make sure the show macro is bound to a key... :)

Toggle Window Mode macro.

Code: Select all

/script if(GetCVar("gxWindow") == "1") then SetCVar("gxWindow",0); else SetCVar("gxWindow",1); end RestartGx();

Posted: 23 Oct 2007 21:42
by Tyrud
excellent job dust.

works lika a charm, but dont enter battle with it, then reloadui is idd needed

Posted: 23 Oct 2007 22:52
by Dust
Yes, as I said in guild chat, secure template visibility is locked in combat. I could write an addon that automatically shows the stuff if you enter combat tho...