View Single Post
10-06-14, 07:04 PM   #3
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
Hey, thanks Lombra. That sounds good.

Originally Posted by Lombra View Post
The more waterproof solution would be to either bind the right click to macrotext attribute /petautocasttoggle... or, not sure how that'll work if it only takes names.
It only accepts names ... no IDs. But I can't access either names nor IDs of the pet action spells in my secure code. And this would be mandatory as pets could be called/dismissed in combat.

Originally Posted by Lombra View Post
Anyway, you can also just a click attribute on the whole button to click the default button.
Wow. That's it. So simple. Thanks again. I'll do it that way.

[e]
Hm. On a second thought ... it has to be a right click to trigger the autocast on/off thing. :/

I've not tested it right now, but I'm almost sure that inheriting from the pet template will introduce a lot of new problems.

[e2]
Wouldn't a button that inherits vom PetActionButtonTemplate be blocked too if TogglePetAutocast(self:GetID()) is called on click?

[e3]
I'm just realizing that /click passes the mouse buttons to the target button.
I'll try it tomorrow. Thanks again.

Last edited by Duugu : 10-06-14 at 07:36 PM.
  Reply With Quote