View Single Post
08-28-20, 08:28 PM   #15
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,871
Or create single frames with their component parts as keys on the frame.

Lua Code:
  1. local frameA = CreateFrame("Frame", nil, UIParent)
  2. frameA.Button1 = CreateFrame("Button", nil, frameA)
  3. frameA.Texture1 = frameA:CreateTexture()
  4. frameA.SubFrame1 = CreateFrame("Frame", nil, frameA))
  5. frameA.SubFrame1.Button1 = CreateFrame("Button", nil, frameA.SubFrame1)
1 local used.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote