Vanilla Lua Programming Resources

Vanilla Lua Programming Resources

by Ohr » Mon Sep 14, 2015 12:55 pm

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.
User avatar
Ohr
Stone Guard
Stone Guard
 

Re: Vanilla Lua Programming Resources

by Guybrush » Mon Sep 14, 2015 1:02 pm

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()
Guybrush
Sergeant Major
Sergeant Major
 

Re: Vanilla Lua Programming Resources

by Ohr » Mon Sep 14, 2015 1:29 pm

Excellent, thank you.
User avatar
Ohr
Stone Guard
Stone Guard
 

Re: Vanilla Lua Programming Resources

by LYQ » Mon Sep 14, 2015 2:41 pm

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 ;)
LYQ / Virose
Talentsaver (viewtopic.php?f=63&t=15429) - Totemtimers Enhanced (viewtopic.php?f=63&t=24422)
NostalriusAcceptTrade (viewtopic.php?f=63&t=31729)
User avatar
LYQ
Sergeant Major
Sergeant Major
 

Re: Vanilla Lua Programming Resources

by Rhena » Mon Sep 14, 2015 2:58 pm

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.
Author of LunaUnitFrames - The most advanced unit frames for classic WoW. Visit my GitHub page for them and some other tools i wrote.
Rhyna - Warrior | Nost PvP | Alliance
User avatar
Rhena
Sergeant Major
Sergeant Major
 


Return to Addons & macros