Quantcast
Documentation for correct toolbar button for spells - WoWInterface
Thread Tools Display Modes
06-21-22, 08:44 AM   #1
Firesong
A Deviate Faerie Dragon
Join Date: Jan 2022
Posts: 19
Question Documentation for correct toolbar button for spells

Hi all,

Hekili has the ability to tell you what button a spell is on but I'm baffled how they do it. I've tried breaking their addon a few times but the stack traces in BugSack make my head hurt.

Is there any documentation on this particular part of the WoW Lua API someone to which could provide a link?

Thanks in advance.
  Reply With Quote
06-22-22, 05:03 PM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,107
Can you give an example of a stack trace that you're having trouble with?

A stack trace basically lists all active functions with the currently running one at the top. With few exceptions, it generally lists what the function is named, what file the function is defined in, where it is in the file, and the line the run position is currently at in that function. This only really works in Lua-defined functions as C functions from the game itself aren't really supported at this detail and usually either supply a name or show up as "?". There are a few things even in pure Lua code that can confuse a stacktrace and you need to look at the surrounding lines to get a better idea of what's going on.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 06-22-22 at 05:11 PM.
  Reply With Quote
06-23-22, 12:00 AM   #3
Firesong
A Deviate Faerie Dragon
Join Date: Jan 2022
Posts: 19
I found where Hekili has the ReadKeybindings function and all is going well. Thanks for your reply.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Documentation for correct toolbar button for spells

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