Mercurial > wow > reaction
comparison ReAction.lua @ 61:2ee41dcd673f
moved UserError from ConfigUI to ReAction
| author | Flick <flickerstreak@gmail.com> |
|---|---|
| date | Tue, 13 May 2008 16:42:03 +0000 |
| parents | 44649a10378d |
| children | 768be7eb22a0 |
comparison
equal
deleted
inserted
replaced
| 60:44649a10378d | 61:2ee41dcd673f |
|---|---|
| 238 end | 238 end |
| 239 | 239 |
| 240 | 240 |
| 241 | 241 |
| 242 ------ API ------ | 242 ------ API ------ |
| 243 function ReAction:UserError(msg) | |
| 244 -- any user errors should be flashed to the UIErrorsFrame | |
| 245 UIErrorsFrame:AddMessage(msg) | |
| 246 end | |
| 247 | |
| 243 function ReAction:CallMethodOnAllModules(method, ...) | 248 function ReAction:CallMethodOnAllModules(method, ...) |
| 244 local m = CheckMethod(method) | 249 local m = CheckMethod(method) |
| 245 for _, x in self:IterateModules() do | 250 for _, x in self:IterateModules() do |
| 246 if x then | 251 if x then |
| 247 SafeCall(m or x[method], x, ...) | 252 SafeCall(m or x[method], x, ...) |
