Hey everyone, need a little help with a button here.
I am using a modified version of aMail, an addon that simply displays a button on your mail window, showing amount of items and gold in the box, and loots it all once you click it. Exactly what I want.
However, I want to skin that button. The code I'm using atm is;
Code:
local button = CreateFrame('Button', 'aMailButton', InboxFrame)
button:SetPoint('BOTTOM', InboxFrame, 'BOTTOM', -10, 84)
button:SetSize(148, 28)
button:SetBackdrop({
bgFile = LeUI.media.blank,
insets = {top = 0, left = 0, bottom = 0, right = 0},
})
button:SetBackdropColor(unpack(LeUI.media.backdropcolor))
Using this, the button looks like this;
What I want, is a hovering function. When i hover it, it changes bgtexture, or something. Is this possible without too much hassle? If i have to create some textures that won't be a problem, i just don't know where to begin with the code.