Quantcast
WoWInterface - View Single Post - Drawing a square (basic noob question)
View Single Post
06-21-21, 01:24 PM   #3
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,429
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.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 06-21-21 at 03:22 PM.
  Reply With Quote