comparison ReAction.lua @ 201:c7be637a47bc

fix version reporting in slash command
author Flick <flickerstreak@gmail.com>
date Tue, 16 Nov 2010 15:50:31 -0800
parents 55af1ebbec65
children ebe9eb5c1791 77142dc9ceb9
comparison
equal deleted inserted replaced
200:d0b47f8d51fd 201:c7be637a47bc
20 "OnRefreshBar" (bar, name) : after a bar's state has been updated 20 "OnRefreshBar" (bar, name) : after a bar's state has been updated
21 "OnConfigModeChanged" (mode) : after the config mode is changed 21 "OnConfigModeChanged" (mode) : after the config mode is changed
22 22
23 ReAction is also an AceAddon-3.0 and contains an AceDB-3.0, which in turn publish more events. 23 ReAction is also an AceAddon-3.0 and contains an AceDB-3.0, which in turn publish more events.
24 ]]-- 24 ]]--
25 local _, addonTable = ... 25 local addonName, addonTable = ...
26 local ReAction = LibStub("AceAddon-3.0"):NewAddon( "ReAction", 26 local ReAction = LibStub("AceAddon-3.0"):NewAddon( "ReAction",
27 "AceEvent-3.0" 27 "AceEvent-3.0"
28 ) 28 )
29 ReAction.version = "1.0" 29 ReAction.version = GetAddOnMetadata(addonName,"Version")
30 addonTable.ReAction = ReAction 30 addonTable.ReAction = ReAction
31 31
32 ------ LIBRARIES ------ 32 ------ LIBRARIES ------
33 local callbacks = LibStub("CallbackHandler-1.0"):New(ReAction) 33 local callbacks = LibStub("CallbackHandler-1.0"):New(ReAction)
34 local LKB = LibStub("LibKeyBound-1.0") 34 local LKB = LibStub("LibKeyBound-1.0")