WoWInterface - View Single Post - Can I make custom draggable action bar button?
View Single Post
03-24-18, 12:15 AM   #2
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Ethly View Post
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?
Author/maintainer of Grid, PhanxChat, oUF_Phanx, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
  Reply With Quote