Thread Tools Display Modes
08-18-12, 04:44 AM   #1
Rammoth
A Cliff Giant
 
Rammoth's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 73
Question Best way to learn LUA?

I want to learn LUA, and any kind of coding that is used for User Interfaces. So I can learn to cleanly, code and create my own UI from scratch, and not use much addons if I can help it, so I can do something kind of like what FreeUI does, but with my own touch to it, and with my own code.

Since I'm new to LUA in general, and I only know some basic functions, where should I start and what websites, or forum posts or anything should I be reading, so I can get started on learning LUA, the easiest way possible?

I have a learning disability, so things need to be pretty clear and easy for me to understand.
  Reply With Quote
08-18-12, 06:14 AM   #2
Rilgamon
Premium Member
 
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 822
The easiest way to learn making addons in Lua is to look at simple addons that do just one thing.
Look at the code and try to understand what its doing. Change a few things to test what happens.

From my own experience the Ace3-Library-Framework is extremly good documented. So looking at the libs and how they manage stuff helped me alot to understand what works and what not so good.
__________________
The cataclysm broke the world ... and the pandas could not fix it!
  Reply With Quote
08-18-12, 10:35 AM   #3
Coote
A Scalebane Royal Guard
 
Coote's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 440
Originally Posted by Rilgamon View Post
The easiest way to learn making addons in Lua is to look at simple addons that do just one thing.
Look at the code and try to understand what its doing. Change a few things to test what happens.
I totally agree with this. Aside from a little book reading, this is how I've been learning to do stuff since I started actually mucking around with addons 2 years ago. You've gotta jump in head first, and try, and what you can't figure out on your own, ask for some help.
__________________

"This is the fifteen-thousandth four hundredth and ninety-eighth occurence".
  Reply With Quote
08-18-12, 11:17 AM   #4
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,934
My first addon was the money display tutorial addon. I then played with it a bit and looked at what the different elements did. Once you realise all addons are made up of frames, data tables, events and functions it's just the question on which ones you need to use and when the best time is. Trial and error initially, still stumped, then ask what you've not noticed.

There's been many a time when I've been foxed by a program bug and my brother kindly points out some stupid oversight I just didn't see despite reading the program through line by line several times rofl.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote
08-18-12, 12:48 PM   #5
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
This sticky thread (and the forum section it's in) is a bevy of resources: http://www.wowinterface.com/forums/s...ad.php?t=43699
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Best way to learn LUA?


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