WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Extra Set of Eyes (https://www.wowinterface.com/forums/showthread.php?t=56530)

candrid 08-12-18 02:53 PM

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.

Fizzlemizz 08-12-18 02:58 PM

Code:

Installer.texture:SetAllPoints()

candrid 08-12-18 04:27 PM

Quote:

Originally Posted by Fizzlemizz (Post 329510)
Code:

Installer.texture:SetAllPoints()

Yay! Thank you! Now I can tinker some more.


All times are GMT -6. The time now is 01:29 AM.

vBulletin © 2020, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI