Quantcast
WoWInterface - View Single Post - Help simple addon
View Single Post
10-19-17, 11:29 AM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,418
Lua Code:
  1. local frame = CreateFrame("Frame", nil, UIParent)
  2. frame:SetSize(20, 20)
  3. frame.Texture = frame:CreateTexture()
  4. frame.Texture:SetAllPoints()
  5. frame.Texture:SetTexture("Interface/Addons/YourAddon/YourImageFile")
  6. frame:SetPoint("CENTER")

frame:Show() or frame:Hide() to show/hide as required
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote