Does anyone know what attributes to set on a SecureActionButton to summon a battle pet? I was sure I'd figured this out at one point, but when I went back to my notes and tested the code, it didn't work.
I can't seem to find any documentation anywhere on what to set the "type" attribute to. GetActionInfo() helpfully tells me "summonpet" is a thing, but is that the type? It's own attribute? Both?
I know summoning pets can be done without going the Secure route, but everything else in AutoBar is secure.
GetActioninfo() refers to the action buttons, which are the buttons on the bars where spells and so forth go. The return value is to tell you what the button would do. In that case, type would be "action" to invoke such a button, but I'm pretty certain this isn't what you want. There are only so many action buttons.
I don't think you'll be satisfied with the answers you'll find. Your options are probably "macro" (which I know you already knew about), or maybe delegating to yet another button via "click", but that just seems like a silly way to go about it.
Does anyone know what attributes to set on a SecureActionButton to summon a battle pet? I was sure I'd figured this out at one point, but when I went back to my notes and tested the code, it didn't work.
I can't seem to find any documentation anywhere on what to set the "type" attribute to. GetActionInfo() helpfully tells me "summonpet" is a thing, but is that the type? It's own attribute? Both?
I know summoning pets can be done without going the Secure route, but everything else in AutoBar is secure.
Wowpedia has a page about the SecureActionButtonTemplate. The possible values of the "type" attribute along with whatever attributes are connected to them are listed about halfway down the page or so.
Does anyone know what attributes to set on a SecureActionButton to summon a battle pet? I was sure I'd figured this out at one point, but when I went back to my notes and tested the code, it didn't work.
I can't seem to find any documentation anywhere on what to set the "type" attribute to. GetActionInfo() helpfully tells me "summonpet" is a thing, but is that the type? It's own attribute? Both?
I know summoning pets can be done without going the Secure route, but everything else in AutoBar is secure.
GetActioninfo() refers to the action buttons, which are the buttons on the bars where spells and so forth go. The return value is to tell you what the button would do. In that case, type would be "action" to invoke such a button, but I'm pretty certain this isn't what you want. There are only so many action buttons.
For a full list of what type can be, see what the SECURE_ACTIONS table contains: https://www.townlong-yak.com/framexml/ptr/SecureTemplates.lua#286
I don't think you'll be satisfied with the answers you'll find. Your options are probably "macro" (which I know you already knew about), or maybe delegating to yet another button via "click", but that just seems like a silly way to go about it.
That's not the answer I wanted, but it is the information I needed. Thanks!
Wowpedia has a page about the SecureActionButtonTemplate. The possible values of the "type" attribute along with whatever attributes are connected to them are listed about halfway down the page or so.
http://wow.gamepedia.com/SecureActionButtonTemplate
Online games are very popular now and here you can check Electric man games download to play the games.