View Single Post
07-02-21, 03:50 AM   #4
SegFault
A Defias Bandit
Join Date: Jun 2021
Posts: 3
Originally Posted by Fizzlemizz View Post
If you just want a coloured square, it might be easier to use a texture:
Lua Code:
  1. local p = CreateFrame("Frame", nil, UIParent)
  2. p:SetWidth(100)
  3. p:SetHeight(100)
  4. p:SetPoint("TOPLEFT", 100, -100)
  5. p.Texture = p:CreateTexture()
  6. p.Texture:SetAllPoints()
  7. p.Texture:SetColorTexture(1, 0, 0)
UIParent is the frame that hides when you Alt-Z. Using that as the parent of your top level frame(s) will hide all your frames also.
Thank you very much, I ended up doing this.

Although I didn't call SetAllPoints. What does it do? It seems to work fine without that call.
  Reply With Quote