Hi all
I have an issue with the textures on a button.
Both the highlight and pushed textures fit the button frame without issue, but the normal texture always displays much bigger than the other two thus exceeding the button size.
This is an image of what I am seeing.
http://i.imgur.com/xLcC1uS.png?1
Here is my code.
Code:
local myTestingFrame = CreateFrame("Button","myTestingFrame",UIParent, "SecureActionButtonTemplate,ActionButtonTemplate")
myTestingFrame:SetScale(2)
myTestingFrame:SetPoint("CENTER")
myTestingFrame:SetPushedTexture("Interface\\Icons\\Inv_misc_archaeology_amburfly")
myTestingFrame:SetHighlightTexture("Interface\\Icons\\Spell_shadow_carrionswarm")
myTestingFrame:SetNormalTexture("Interface\\Icons\\Spell_druid_swarm")
myTestingFrame:SetMovable(true)
myTestingFrame:SetClampedToScreen(true)
myTestingFrame:RegisterForDrag("RightButton")
myTestingFrame:SetScript("OnDragStart",myTestingFrame.StartMoving)
myTestingFrame:SetScript("OnDragStop",myTestingFrame.StopMovingOrSizing)
myTestingFrame:SetToplevel(true)
myTestingFrame:SetScript("OnClick",function(self)
print("Button Clicked")
end)
Any help would be great.