I have a button and the button is working but the background is colored green.
f.ArrowUpButton = CreateFrame('Button','$parentArrowUpButton',f, BackdropTemplateMixin and "BackdropTemplate")
f.ArrowUpButton:SetSize(16,12)
f.ArrowUpButton:SetBackdrop(nil)
f.ArrowUpButton:SetBackdropBorderColor(255, 255, 255)
f.ArrowUpButton:SetPoint('TOPRIGHT',-2,-2)
f.ArrowUpButton.ArrowUpTexture = f.ArrowUpButton:CreateTexture('$parentArrowUpTexture', 'BACKGROUND')
f.ArrowUpButton.ArrowUpTexture:SetSize(16,12)
f.ArrowUpButton.ArrowUpTexture:SetAllPoints()
f.ArrowUpButton.ArrowUpTexture:SetTexture('Interface\\AddOns\\MyAddonFolder\\Media\\Textures\\ArrowUp.tga',false)<br /><br />any help would be great thank you in advance.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I got it to work had to be power of 2
I have a button and the button is working but the background is colored green.