Quantcast
WoWInterface - View Single Post - Resize frames with texture
View Single Post
05-26-21, 08:20 PM   #1
fullmoon_sulfuras
A Deviate Faerie Dragon
Join Date: Dec 2019
Posts: 10
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