Thread Tools Display Modes
Prev Previous Post   Next Post Next
11-10-15, 04:07 PM   #1
Benalish
A Flamescale Wyrmkin
 
Benalish's Avatar
Join Date: Dec 2012
Posts: 123
Masque ButtonData

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:
  1. local MSQ = LibStub("Masque", true)
  2.  
  3. local f = CreateFrame("Button", "myButton",)
  4. f.cooldown = CreateFrame("Cooldown", f:GetName().."Cooldown", f, "CooldownFrameTemplate")
  5.  
  6. if (MSQ) then
  7.     MSQ:Group("MyAddon", "MyAddon group"):AddButton(f:GetName())
  8. end

How should do to get the right skin?
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Masque ButtonData


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off