Page 1 of 1

Vanilla Lua Programming Resources

PostPosted: Mon Sep 14, 2015 12:55 pm
by Ohr
So after playing around with other addons I got tired of the limited capabilities and I want to code my own ones. I'm familiar with reading and editing code, however I want to write my own actionbar addon and I need resources to learn lua and wow 1.12.1 api. I learned vba from scratch within a week, so don't think learning lua basics will be a big challenge.

So if anyone has any resources for lua and wow 1.12.1 api, I'd appreciate if you shared them.

Re: Vanilla Lua Programming Resources

PostPosted: Mon Sep 14, 2015 1:02 pm
by Guybrush
The best resource is reading the existing addons code.

Function list: http://wowwiki.wikia.com/index.php?titl ... did=281620
Also this useful macro to find out the name of UI Frames: /print GetMouseFocus():GetName()

Re: Vanilla Lua Programming Resources

PostPosted: Mon Sep 14, 2015 1:29 pm
by Ohr
Excellent, thank you.

Re: Vanilla Lua Programming Resources

PostPosted: Mon Sep 14, 2015 2:41 pm
by LYQ
but don't forget that only the API Listing is for 1.12.1, if you click on a function on there it will redirect to the function how it's on retail now.
That is not always the way it was on 1.12.1, some functions do have other return arguments or parameters as listed on the retail version of it
Therefore you should test each function and it's parameters and return variables before using them in a greater code, to prevent hours of bugtracking ;)

Re: Vanilla Lua Programming Resources

PostPosted: Mon Sep 14, 2015 2:58 pm
by Rhena
https://github.com/tekkub/wow-ui-source/tree/1.12.1

This is the default interface extracted from the client. You can use it to get an idea how blizz did it.