Libstub

libacelibstub
Edit

Please remember to keep info in regards to HOW an addon works, what it SHOULD do in the description and all temporary things(doesn't work now etc.) in the comments.

LibStub is a simple versioning stub meant for use in Libraries. It is meant to be a cross-community library sharing system.

https://www.wowace.com/projects/libstub

Example usage:

Add the following to your .mod dependencies along with whatever other libraries that also use libstub:

<Dependencies>
     <Dependency name="LibStub" />
</Dependencies>

Registering your addon with LibStub:

local lib = LibStub:NewLibrary("LibTest-1.0", 1)
if not lib then return end -- already loaded and no upgrade necessary

function lib:doSomething()
return "something"
end

Getting a library:

local lib = LibStub("LibTest-1.0")
lib.doSomething()

Edit

Please remember to keep info in regards to HOW an addon works, what it SHOULD do in the description and all temporary things(doesn't work now etc.) in the comments.

Edit

Please remember to keep info in regards to HOW an addon works, what it SHOULD do in the description and all temporary things(doesn't work now etc.) in the comments.

VersionStatusChangesUploaderDownloads
1.4.0stableLibStub is a simple versioning stub meant for use in Libraries.Johndon967
Download Latest
You need to be logged in to comment
Johndon

Tue, 29 Sep 2020 19:30:36 +0000

Direct Link
Extracted from VinyUI's Ace addon for use outside of the Ace libraries.