View Single Post
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: 320
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