Quantcast
WoWInterface - View Single Post - Assign atlas texture to button in lua?
View Single Post
03-26-20, 06:40 AM   #5
LudiusMaximus
A Cobalt Mageweaver
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 225
OK, that's an idea.

But let me ask differently.

How can I achieve that the highlight Texture texture is shown as big as the normal Atlas texture?

XML:
Code:
<NormalTexture atlas="QuestCollapse-Show-Up"/>
<PushedTexture atlas="QuestCollapse-Show-Down"/>
<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD" setAllPoints="true">
  <Size x="48" y="48"/>
  <Anchors>
    <Anchor point="CENTER"/>
  </Anchors>
</HighlightTexture>

Lua:
Code:
myButton:SetNormalAtlas("QuestCollapse-Show-Up")
myButton:SetPushedAtlas("QuestCollapse-Show-Down")
myButton:SetHighlightTexture("Interface\\Buttons\\UI-Common-MouseHilight", "ADD")
--???
__________________
~ Be the change you want to see in the world... of warcraft interface! ~
  Reply With Quote