Collectinator

124 - Improved AddonLoader Support

In my quest to make my UI as efficient as possible, I was reviewing the AddonLoader support of all my addons. I modified Collectinator a little bit to cause it to load under as few circumstances as possible.

I removed the "X-LoadOn-Always: Delayed" tag, and replace it with this:

## X-LoadOn-Slash: /collectinator
## X-LoadOn-InterfaceOptions: Collectinator
## X-LoadOn-Execute: SpellBookFrame:HookScript("OnShow", function() if not IsAddOnLoaded("Collectinator") then AddonLoader:LoadAddOn("Collectinator") end end)

I also added the following to the beginning of addon:SetupOptions in Config.lua:

if AddonLoader and AddonLoader.RemoveInterfaceOptions then
	AddonLoader:RemoveInterfaceOptions("Collectinator")
end

Everything seems to load without issue using this code.

User When Change
Cybeloras Aug 28, 2011 at 00:46 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

Facts

Reported
Aug 28, 2011
Status
New - Issue has not had initial review yet.
Type
Patch - Source code patch for review
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees