Quantcast Can I make custom draggable action bar button? - WoWInterface
Thread Tools Display Modes
03-24-18, 12:02 AM   #1
Ethly
A Fallenroot Satyr
Join Date: Mar 2018
Posts: 22
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.
  Reply With Quote
03-24-18, 12:15 AM   #2
Phanx
Cat.
 
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
03-24-18, 12:29 AM   #3
Ethly
A Fallenroot Satyr
Join Date: Mar 2018
Posts: 22
Originally Posted by Phanx View Post
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.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Can I make custom draggable action bar button?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off