Thread Tools Display Modes
Prev Previous Post   Next Post Next
03-26-20, 06:40 AM   #5
LudiusMaximus
A Rage Talon Dragon Guard
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 324
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
 

WoWInterface » Developer Discussions » Lua/XML Help » Assign atlas texture to button in lua?

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