Thread Tools Display Modes
Prev Previous Post   Next Post Next
05-26-21, 08:20 PM   #1
fullmoon_sulfuras
A Fallenroot Satyr
Join Date: Dec 2019
Posts: 21
Resize frames with texture

Hi there! I'm trying to understand why the following code won't create frames of different sizes:

Lua Code:
  1. local x
  2.  
  3. x = CreateFrame("Button", "LSSettings" .. "StanceIcon0x", UIParent, "ActionButtonTemplate")
  4. x:SetPoint("Topleft", 350, -200);
  5. x:EnableMouse(false);
  6. x:SetWidth(50);
  7. x:SetHeight(50);
  8. x:SetNormalTexture("Interface\\AddOns\\LunarSphere\\art\\mouse1")
  9.  
  10. x = CreateFrame("Button", "LSSettings" .. "StanceIcon0y", UIParent, "ActionButtonTemplate")
  11. x:SetPoint("Topleft", 350, -300);
  12. x:SetWidth(24);
  13. x:SetHeight(24);
  14. x:EnableMouse(false);
  15. x:SetNormalTexture("Interface\\AddOns\\LunarSphere\\art\\mouse1")
  16.  
  17. x = CreateFrame("Button", "LSSettings" .. "StanceIcon0z", UIParent, "ActionButtonTemplate")
  18. x:SetPoint("Topleft", 350, -400);
  19. x:SetWidth(10);
  20. x:SetHeight(10);
  21. x:EnableMouse(false);
  22. x:SetNormalTexture("Interface\\AddOns\\LunarSphere\\art\\mouse1")

Thanks!!!

Last edited by fullmoon_sulfuras : 05-26-21 at 08:32 PM.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Resize frames with texture

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off