Mercurial > wow > reaction
comparison ReAction.lua @ 202:ebe9eb5c1791
delete big comment which is never up to date anyway
| author | Flick <flickerstreak@gmail.com> |
|---|---|
| date | Tue, 16 Nov 2010 15:51:04 -0800 |
| parents | c7be637a47bc |
| children | 85f7c7857617 |
comparison
equal
deleted
inserted
replaced
| 201:c7be637a47bc | 202:ebe9eb5c1791 |
|---|---|
| 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 = GetAddOnMetadata(addonName,"Version") | 5 ReAction.version = GetAddOnMetadata(addonName,"Version") |
