I am trying to assign a skin to my addon buttons with Masque, but there are some trouble with the cooldown layer. In fact, it often happens that the size of the cooldown are greater than those of the button. I think this is due to the fact that Masque not skins the cooldown layer. Reading the documentation, I came across this page. Honestly is not very clear explanation, and from what little I understood I should "feed" Masque with this table, but there no mention of how it should be done. The buttons are created and skinned in this way:
Lua Code:
local MSQ = LibStub("Masque", true)
local f = CreateFrame("Button", "myButton",)
f.cooldown = CreateFrame("Cooldown", f:GetName().."Cooldown", f, "CooldownFrameTemplate")
if (MSQ) then
MSQ:Group("MyAddon", "MyAddon group"):AddButton(f:GetName())
end
How should do to get the right skin?