View Single Post
04-01-20, 07:52 AM   #2
LudiusMaximus
A Rage Talon Dragon Guard
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 320
Hm, maybe the NormalTexture is not meant to be used like this for action bar buttons.
I found this work around:

Code:
local myButton = CreateFrame("CheckButton", nil, UIparent)
myButton:SetPoint("CENTER")
myButton:SetSize(50, 50)
myButton.normalTexture = myButton:CreateTexture()
myButton.normalTexture:SetAllPoints()
myButton.normalTexture:SetDrawLayer("BACKGROUND", 0)
myButton.normalTexture:SetTexture(132224)
myButton:SetHighlightTexture("Interface\\Buttons\\ButtonHilight-Square")
myButton:SetPushedTexture("Interface\\Buttons\\UI-Quickslot-Depress")
myButton:SetCheckedTexture("Interface\\Buttons\\CheckButtonHilight")
__________________
~ Be the change you want to see in the world... of warcraft interface! ~

Last edited by LudiusMaximus : 04-02-20 at 03:10 AM.
  Reply With Quote