1
0
Fork 0

Add CallbackHandler to toc and pkgmeta.

This commit is contained in:
Andrew Tomaka 2011-09-18 09:31:48 -04:00
parent baee266525
commit a6c31226e8
3 changed files with 12 additions and 10 deletions

View file

@ -3,6 +3,7 @@ package-as: ChoreTracker
externals:
Libs/LibStub: svn://svn.wowace.com/wow/libstub/mainline/trunk
Libs/AceAddon-3.0: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceAddon-3.0
Libs/CallbackHandler-1.0: svn://svn.wowace.com/wow/callbackhandler/mainline/trunk/CallbackHandler-1.0
Libs/AceConsole-3.0: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceConsole-3.0
Libs/AceDB-3.0: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceDB-3.0
Libs/AceEvent-3.0: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceEvent-3.0

View file

@ -66,7 +66,7 @@ end
function core:OnEnable()
LibQTip = LibStub('LibQTip-1.0')
LoadAddOn("Blizzard_Calendar")
LoadAddOn('Blizzard_Calendar')
for class,color in pairs(RAID_CLASS_COLORS) do
class = class:lower()
@ -92,11 +92,11 @@ function core:OnEnable()
core:ResetValorPoints()
-- Setup LDB
self.LDB = LibStub("LibDataBroker-1.1"):NewDataObject("ChoreTracker", {
type = "data source",
text = "ChoreTracker",
icon = "Interface\\AddOns\\ChoreTracker\\icon",
OnClick = function() print("ChoreTracker test") end,
self.LDB = LibStub('LibDataBroker-1.1'):NewDataObject('ChoreTracker', {
type = 'data source',
text = 'ChoreTracker',
icon = 'Interface\\AddOns\\ChoreTracker\\icon',
OnClick = function() print('ChoreTracker test') end,
OnEnter = function(self)
local columnCount = 2
for instance,abbreviation in pairs(trackedInstances) do
@ -116,13 +116,13 @@ function core:OnEnable()
})
-- Deal with minimap
self.LDBIcon = LibStub("LibDBIcon-1.0")
self.LDBIcon:Register("ChoreTracker", self.LDB, self.db.profile.minimap)
self.LDBIcon = LibStub('LibDBIcon-1.0')
self.LDBIcon:Register('ChoreTracker', self.LDB, self.db.profile.minimap)
if self.db.profile.minimap.hide then
self.LDBIcon:Hide("ChoreTracker")
self.LDBIcon:Hide('ChoreTracker')
else
self.LDBIcon:Show("ChoreTracker")
self.LDBIcon:Show('ChoreTracker')
end
end

View file

@ -8,6 +8,7 @@
## OptionalDeps: LibQTip-1.0, LibDBIcon-1.0
Libs\LibStub\LibStub.lua
Libs\CallbackHandler-1.0\CallbackHandler-1.0.xml
Libs\AceAddon-3.0\AceAddon-3.0.xml
Libs\AceConsole-3.0\AceConsole-3.0.xml
Libs\AceDB-3.0\AceDB-3.0.xml