View Single Post
10-09-08, 11:39 AM   #3
Maul
Ion Engines, Engage!
 
Maul's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 401
Well, you can actually. I have done it very easily. However, I do agree that the Secure Template could be fleshed out to be more all inclusive.

But almost all of the about functions, if not all, can be done via a button with adding type macro and macrotext.

Here is a little snippet of my code in Macaroon for pet buttons, slightly modified to be clearer -

button:SetAttribute("type1", "pet")
button:SetAttribute("type2", "macro")
button:SetAttribute("*action1", "[#]") - pet action number
button:SetAttribute("*macrotext2", "/petautocasttoggle "..petspell)

Through extensive testing these buttons work and behave like the default UI pet buttons. They are not the default UI pet buttons re-parented to Macaroon frames.
__________________

Twitter: @IonMaul | Windows Live: [email protected] | Google Talk: [email protected]
  Reply With Quote