Thread Tools Display Modes
12-14-13, 04:45 PM   #1
midwayyy
A Kobold Labourer
Join Date: Dec 2013
Posts: 1
Help with adding support for masque to an addon

Hey there, I'm using ExtraCD and I would like it to support Masque (so that it gets the same actionbar layout). Can anyone tell me how I can do that?

Thanks in advance
  Reply With Quote
12-14-13, 09:40 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
I'm not familiar with that addon, it doesn't appear to be on WoWI if I search for "ExtraCD", and don't feel like hunting for it, so pretty much all I can tell you is to read the Masque API documentation. It's pretty straightforward, assuming the buttons the addon creates are using the ActionButtonTemplate:

Code:
local Masque = LibStub("Masque", true)
if Masque then
	local group = Masque:Group("MyAddon")
	group:AddButton(MyAddonButton1)
	group:AddButton(MyAddonButton2)
	group:AddButton(MyAddonButton3)
end
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
12-14-13, 09:58 PM   #3
10leej
A Molten Giant
 
10leej's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2011
Posts: 583
It's actually on curse

have you tried contacting the author to request masque support.
__________________
Tweets YouTube Website
  Reply With Quote
12-16-13, 06:58 AM   #4
mitch0
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Jun 2007
Posts: 21
Hello,

I've done the same with my CooldownToGo addon a while back. You can check the changes that I had to make in the commit for r170 (svn diff -c170 svn://svn.wowace.com/wow/cooldown-to-go/mainline/trunk).

The biggest change was to use a Button template instead of a simple texture if Masque is present, the other changes were pretty straightforward.

good luck,
mtich
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Help with adding support for masque to an addon


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