Thread Tools Display Modes
Prev Previous Post   Next Post Next
04-01-20, 05:29 AM   #1
LudiusMaximus
A Rage Talon Dragon Guard
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 322
CheckButton: PushedTexture not overlaying but replacing NormalTexture?

I want to emulate an action bar button:

Code:
local myButton = CreateFrame("CheckButton", nil, UIparent)
myButton:SetPoint("CENTER")
myButton:SetSize(50, 50)
myButton:SetNormalTexture(132224)
myButton:SetHighlightTexture("Interface\\Buttons\\ButtonHilight-Square")
myButton:SetPushedTexture("Interface\\Buttons\\UI-Quickslot-Depress")
myButton:SetCheckedTexture("Interface\\Buttons\\CheckButtonHilight")
It works fine, except that while the button is pushed down, the UI-Quickslot-Depress texture is shown exclusively instead of overlaying the normal texture, like it is the case for the highlight and checked textures.

What am I missing?
__________________
~ Be the change you want to see in the world... of warcraft interface! ~
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » CheckButton: PushedTexture not overlaying but replacing NormalTexture?


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