Lemme see.
Code:
for n=1,10 do _G["ChatFrame"..n]:SetParent(nil) _G["ChatFrame"..n.."EditBox"]:SetParent(nil) end
GeneralDockManager:SetParent(nil)
local a=CreateFrame("Frame")
a:SetScript("OnEvent", function(self, event)
if event == "PLAYER_REGEN_DISABLED" then
UIParent:Show()
end
if event == "PLAYER_REGEN_ENABLED" then
UIParent:Hide()
end
end)
a:RegisterEvent("PLAYER_REGEN_ENABLED")
a:RegisterEvent("PLAYER_REGEN_DISABLED")
Completely untested. Drycoded. How to use. I am not liable for any wierdness that might occur. (If any wierdness DOES occur, report back with details about the wierdness and I'll see what I can do).