Quantcast
Download
(93 Kb)
Download
Updated: 06-14-11 07:08 PM
Pictures
File Info
Updated:06-14-11 07:08 PM
Created:06-11-11 04:29 PM
Downloads:568
Favorites:2
MD5:
Libra
Version: alpha-0.3
by: Priche [More]
A Rift addon library.

Very experimental

Docs:
https://github.com/RiftTools/Libra/wiki

Report Bugs:
https://github.com/RiftTools/Libra/issues

Project Contributors Welcome!

Change Log

alpha-0.3:
-Added multi-timetime support to Libra.UI.Timeline
-Added frame usage tracking
-Registry & Timer adjustments

alpha-0.2:
-Changed root folder name to .Libra to force load order
-Added Libra.UI.SmartGrid - A flexible grid layout helper
-Added Libra.UI.Timeline - Plots positions on a timeline
-Added Libra.Utils.Callbacks - Callback service
-Added Libra.Utils.Registry - Registry system for temporary shared data storage
Post A Reply Comment Options
Unread 06-14-11, 08:16 PM  
Myrroddin
Endless Captain
AddOn Author - Click to view AddOns

Forum posts: 50
File comments: 8
Uploads: 4
Quote:
Originally posted by Priche
Do you hang out in the IRC room? If so what's your user name?
I do sometimes. I work the night shift, GMT -7, so sometimes it is hard to catch me. My user name is Myrroddin.

I will try to get into IRC after work for a bit.
Myrroddin is offline Report comment to moderator  
Reply With Quote
Unread 06-14-11, 10:38 AM  
Priche
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 3
Uploads: 3
Do you hang out in the IRC room? If so what's your user name?
Priche is offline Report comment to moderator  
Reply With Quote
Unread 06-14-11, 09:06 AM  
Priche
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 3
Uploads: 3
Hi Myrroddin, I only use GetLibrary in the sub components. Libra itself uses NewLibrary.

Also, the .Libra thing seems required right now, since Addons are not loaded the same way they were in WoW and Libra is unavailable to things above it in the folder structure even when LibStub is loaded.
Priche is offline Report comment to moderator  
Reply With Quote
Unread 06-13-11, 05:41 PM  
Myrroddin
Endless Captain
AddOn Author - Click to view AddOns

Forum posts: 50
File comments: 8
Uploads: 4
LibStub usage

I was noticing your changelog, and decided to have a look at how you were doing things. I noticed you have
Code:
... LibStub:GetLibrary()
calls in Libra, and its included libraries.

That might explain why you renamed the folder with a "." at the front. You are telling it to load itself before it has been registered with LibStub, and if not found (which it hasn't been registered, so it LibStub hasn't found it yet) exit out.

You will want to remove :GetLibrary() from Libra, and use that call in SlickTimers, as you are doing.

You could easily remove the "." from Libra's name, name it "ZZLibra", and so long as you have :NewLibrary() it would not matter, because you have LibStub.lua loading before SlickTimers.lua (as you should) anyway.

This is not necessary, as :GetLibrary() is used in main addon files to actually load your lib. As a shortcut, in your main addon SlickTimers, you could change line 3 to the following, but it is optional:
Code:
local Libra = LibStub('Libra-alpha', true)
I hope some of this helps, and thank you for the support!!
Last edited by Myrroddin : 06-13-11 at 05:43 PM.
Myrroddin is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: