Quantcast
WoWInterface - View Single Post - Extra Set of Eyes
View Single Post
08-12-18, 02:53 PM   #1
candrid
Premium Member
 
candrid's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 61
Extra Set of Eyes

Hey Friends.

I have the following lua, which is supposed to make a frame appear. It throws no error and nothing appears but I can confirm the .blp is working as I use it elsewhere. Did I miss something?

Lua Code:
  1. local addonName, addonData = ...
  2.  
  3. local Installer = CreateFrame("Frame", addonName.."_Installer", UIParent);
  4.  
  5. Installer.texture = Installer:CreateTexture(nil, "LOW");
  6. Installer.texture:SetTexture("Interface\\Addons\\PawsUI\\Art\\bg.blp");
  7. Installer.texture:SetVertexColor(0, 0, 0, 0.9);
  8.  
  9. Installer:RegisterEvent("PLAYER_ENTERING_WORLD");
  10. Installer:SetScript("OnEvent", function(self,event,...)
  11.     self:SetSize(600, 600);
  12.     self:SetPoint("CENTER");
  13. end)
Thank you for taking your time to assist me.
  Reply With Quote