comparison ReAction.lua @ 204:85f7c7857617

Merged to tip
author Flick <flickerstreak@gmail.com>
date Tue, 16 Nov 2010 17:01:43 -0800
parents 77142dc9ceb9 ebe9eb5c1791
children 42fd93f19291
comparison
equal deleted inserted replaced
203:77142dc9ceb9 204:85f7c7857617
1 --[[
2 ReAction.lua
3
4 The ReAction core manages several collections:
5 - modules (via AceAddon)
6 - bars
7 - bar-type constructors
8
9 and publishes events when those collections change. It also implements a couple properties
10 and has a couple convenience methods which drill down to particular modules.
11
12 Most of the "real work" of the addon happens in Bar.lua, Overlay.lua, State.lua, and the various modules.
13
14 Events (with handler arguments):
15 --------------------------------
16 "OnCreateBar" (bar, name) : after a bar object is created
17 "OnDestroyBar" (bar, name) : before a bar object is destroyed
18 "OnEraseBar" (bar, name) : before a bar config is removed from the profile db
19 "OnRenameBar" (bar, oldname, newname) : after a bar is renamed
20 "OnRefreshBar" (bar, name) : after a bar's state has been updated
21 "OnConfigModeChanged" (mode) : after the config mode is changed
22
23 ReAction is also an AceAddon-3.0 and contains an AceDB-3.0, which in turn publish more events.
24 ]]--
25 local addonName, addonTable = ... 1 local addonName, addonTable = ...
26 local ReAction = LibStub("AceAddon-3.0"):NewAddon( "ReAction", 2 local ReAction = LibStub("AceAddon-3.0"):NewAddon( "ReAction",
27 "AceEvent-3.0" 3 "AceEvent-3.0"
28 ) 4 )
29 ReAction.version = "1.1" 5 ReAction.version = "1.1"