PDA

View Full Version : Simple Dialog


Knightshift
11-03-2007, 05:49 PM
I want to make a simple dialog window with a list of players in it from a chat channel.

I'm an experienced programmer in Visual Basic...but i dont think thats going to help me much here :P I know nothing of XML. But i do know HTML well enough.

Any suggestions?

Furthermore I've been thru Klishu's XML Tutorial and well...I think that got me through the base groundwork.

JaedxRapture
11-03-2007, 06:26 PM
Well, I'm no LUA expert, so I can't help you there. But I'll say that if you know HTML fairly well, XML (and especially how WoW UIs use it) will be a breaze!

You should go over to Lua's website and check out the manuals. [Link here] (http://www.lua.org/manual/5.1/).

Just remember that XML is closer to the more recent standard XHTML. All tags need to be properly closed and such. As far as I know, open tags will prevent the XML document from being parsed at all.

Knightshift
11-03-2007, 07:11 PM
well, that'd just be sloppy coding to not close all tags, i generally do that anyway :P

About the LUA manual thou...The entire scope of LUA isnt available in WoW thou is it?

Like i wouldnt be able to use os.execute() i wouldnt think

Wintrow
12-03-2007, 09:05 AM
not os.execute :p

but pretty much every thing else that stays in the LUA-scope is. It's quite potent and I love how you can take a table var (is actually more like a dictionary if you compare it to RealWorld-programming languages), fill a member with a function handle and then call that member as if it was a method of that table.

Example:

MyAddon = {};

function MyAddon:SetMsg(msg)
self.msg = msg;
end


or

MyAddon = {};

function SetMsg(self,msg)
self.msg = msg;
end

MyAddon.SetMsg = SetMsg;


and those two pieces of code are the same !

Also the 'typed data, not typed variables' thing rocks.

Rowaa
12-03-2007, 12:56 PM
Actually ENTIRE Lua is available in WoW. Functions in os table are from optional library and so they may or may not be present in different Lua environments, but all the Lua's own syntax and operators are in WoW environment.

(BTW, people, it is "Lua", proper noun, meaning "Moon" in Portuguese, not some abbreviation with each letter capitalized.)

Knightshift
12-03-2007, 03:42 PM
hmm, welll where would be a good place to learn Lua then ? Also what about development libraries like Ace, Earth and Sea. Would any of those be helpfull here?

Rowaa
12-03-2007, 07:45 PM
www.lua.org, language's own site. Ace libs have their documentation in their own wiki at Ace's page. WoW-specific API have very good documentation at www.wowwiki.com.