Mercurial > wow > reaction
diff ReAction.lua @ 90:7cabc8ac6c16
Updates for wow 3.0
- TOC update
- updated changed APIs/frame names
- rewrote state code per new SecureHandlers API
- cleaned up Bar, ActionButton code
- removed AceLibrary/Dewdrop, menu from bar right-click
- fixed various small bugs
Updated WowAce external locations
Updated README.html
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Wed, 15 Oct 2008 16:29:41 +0000 |
parents | fc83b3f5b322 |
children | c2504a8b996c |
line wrap: on
line diff
--- a/ReAction.lua Mon Oct 13 23:32:33 2008 +0000 +++ b/ReAction.lua Wed Oct 15 16:29:41 2008 +0000 @@ -7,10 +7,10 @@ - options - bar-type constructors - and publishes events when those collections change. It also implements a single property, 'config mode', + and publishes events when those collections change. It also implements a couple properties and has a couple convenience methods which drill down to particular modules. - Most of the "real work" of the addon happens in Bar.lua and the various modules. + Most of the "real work" of the addon happens in Bar.lua, Overlay.lua, State.lua, and the various modules. Events (with handler arguments): -------------------------------- @@ -226,7 +226,7 @@ defaultBar = { } } } - -- default profile is character-specific + -- initial profile is character-specific ) self.db.RegisterCallback(self,"OnProfileChanged") self.db.RegisterCallback(self,"OnProfileReset","OnProfileChanged") @@ -347,6 +347,7 @@ return bars[name] end +-- returns pairs of name, bar function ReAction:IterateBars() return pairs(bars) end @@ -459,7 +460,9 @@ success, r = pcall(func, bar) end if success then - opts[module:GetName()] = { [module:GetName()] = r } + if r then + opts[module:GetName()] = { [module:GetName()] = r } + end else geterrorhandler()(r) end