Thread Tools Display Modes
Prev Previous Post   Next Post Next
03/12/14, 03:30 PM   #1
inDef
Join Date: Mar 2014
Posts: 16
What is LibStub?

Hey All,

I've read the little document on LibStub here, but it doesn't clarify to me at all what it is or what it does.

What exactly is a "versioning library" in terms of add-ons? What is a library in general in terms of add-ons?

I see this in add-ons all the time:

Code:
local LAM = LibStub("LibAddonMenu-1.0")
However I don't see a "LibStub" function defined in either LubStub.lua or LibAddonMenu-1.0.lua. What is that doing?

What are majors and minors?

What does LibAddonMenu-1.0.lua do? It looks like a bunch of functions for creating windows?

Lastly, what is a stub?

Sorry for all these questions. Can't seem to find any documentation anywhere other than what I linked, which only helps if you already know what it's doing (from WoW or something).
  Reply With Quote
 

ESOUI » Developer Discussions » General Authoring Discussion » What is LibStub?


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