Thread Tools Display Modes
10-13-22, 01:46 PM   #1
Oldhroft
A Kobold Labourer
Join Date: Oct 2022
Posts: 1
Question MailBox Frame

Hello to everyone.

I'm trying to get involved with wow API and LUA. And I'm struggling to get documentation.

For example I know that for every frame you can run script to click any action on that frame.
Example: /run AuctionHouseFrame.ItemSellFrame.PostButton:Click()

I've search everywhere and I can't find where this docs lives.

Atm I looking for the same /run script to click Inbox/Send Mail buttons for MailFrame.

But I would really appropriate if some one can give me a link or method how to find all the function for all the frames. Also if you have a good beginner friendly channel/reading for wow addons developers will appreciate as well.

Update:

I've found a tool - /fstack
https://wowpedia.fandom.com/wiki/MACRO_framestack

/run MailFrameTab2:Click() working perfect

Last edited by Oldhroft : 10-13-22 at 02:11 PM.
  Reply With Quote
10-15-22, 05:52 AM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,327
A lot of us use WoWPedia as a resource.
The following is a link to their "Interface Customization" portal.

https://wowpedia.fandom.com/wiki/Wow..._customization
__________________
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)
  Reply With Quote
10-17-22, 03:09 AM   #3
LudiusMaximus
A Rage Talon Dragon Guard
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 323
I can confirm that the beginning of WoW coding was pretty hard for me, too.

A really good tutorial-style way to learn is this book by Whitehead and Roe .

As mentioned by SDPhantom, WoWPedia is a good resource to look up the API. I think there are also some hello-world-like tutorials.

You have already discovered the /framestack command in game which allows you to hover over every UI element and see details about it. Pressing CTRL while hovering brings up another handy window to explore the UI frames and how they are related.

When you want to see the code behind the Blizzard UI, you have to extract the code as described here. But personally I find it more comfortable to keep a clone of this GitHub repository up to date, which always contains the most recent code. In this code you then search for whatever frame names you encounter to find out what is going on.

Another important tool is the in-game /eventtrace command, to see what events are happening that you can listen to in your addon.

Happy coding!
__________________
~ Be the change you want to see in the world... of warcraft interface! ~
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » MailBox Frame


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