I've made a button template based on ActionButtonTemplate and SecureActionButtonTemplate. It is as follows:
Code:
<Button name="HMB_btn_base" inherits="ActionButtonTemplate,SecureActionButtonTemplate" virtual="true">
<Size>
<AbsDimension x="28" y="28" />
</Size>
<Scripts>
<OnLoad>
local icon = getglobal(this:GetName() .. "Icon")
icon:SetTexture("Interface\\TargetingFrame\\UI-RaidTargetingIcon_" .. this:GetID())
</OnLoad>
<OnClick>
hmb_mark(this:GetID());
</OnClick>
</Scripts>
</Button>
The only thing wrong with it is the NormalTexture size. The NormalTexture size stays at the default and does not change. I've tried playing around with it and adding a NormalTexture tag and editing size but it doesn't work. Can anyone help me with this?
Thanks.