Quantcast
WoWInterface - View Single Post - Assign atlas texture to button in lua?
View Single Post
03-26-20, 05:26 AM   #3
LudiusMaximus
A Cobalt Mageweaver
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 225
Ah cool! Thanks! There is odly nothing about these functions online...

Can anyone tell me why the Atlas texture is apparently always somewhat larger than the Texture texture?

Code:
local myButton = CreateFrame("Button", nil, myParent)
myButton:SetNormalAtlas("QuestCollapse-Show-Up")
myButton:SetPushedTexture("Interface\\Buttons\\UI-SpellbookIcon-NextPage-Down")
myButton:SetSize(25, 25)
How could I make them the same size?
__________________
~ Be the change you want to see in the world... of warcraft interface! ~
  Reply With Quote