WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Can I make custom draggable action bar button? (https://www.wowinterface.com/forums/showthread.php?t=56121)

Ethly 03-24-18 12:02 AM

Can I make custom draggable action bar button?
 
Currently I'm using macro with something like /run MyFunction() and putting it into my action bar. Is it possible to create a button which I can put into standard action bar without using macro slot (which will call my function). For example garrison (and some Draenor zones) have zone action button which appears in the center of the screen but could be dragged to action bar. I want something similar.

Phanx 03-24-18 12:15 AM

Quote:

Originally Posted by Ethly (Post 327342)
Currently I'm using macro with something like /run MyFunction() and putting it into my action bar. Is it possible to create a button which I can put into standard action bar without using macro slot (which will call my function). For example garrison (and some Draenor zones) have zone action button which appears in the center of the screen but could be dragged to action bar. I want something similar.

No; zone actions are just spells that your character knows, but that are hidden from the spellbook. You can verify this by examining the return values from GetActionInfo(slotID).

Why do you want to avoid using a macro?

Ethly 03-24-18 12:29 AM

Quote:

Originally Posted by Phanx (Post 327343)
Why do you want to avoid using a macro?

It's not very convenient for addon user, it takes away one macro slot, it won't work if all macro slots are used.


All times are GMT -6. The time now is 12:21 PM.

vBulletin © 2020, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI