# HG changeset patch # User Flick # Date 1210696923 0 # Node ID 2ee41dcd673f51970dfe91b8ebcadb2ad58067d4 # Parent 44649a10378d7c82e56e27a2e5a94e674e491505 moved UserError from ConfigUI to ReAction diff -r 44649a10378d -r 2ee41dcd673f ReAction.lua --- a/ReAction.lua Sat May 10 00:08:01 2008 +0000 +++ b/ReAction.lua Tue May 13 16:42:03 2008 +0000 @@ -240,6 +240,11 @@ ------ API ------ +function ReAction:UserError(msg) + -- any user errors should be flashed to the UIErrorsFrame + UIErrorsFrame:AddMessage(msg) +end + function ReAction:CallMethodOnAllModules(method, ...) local m = CheckMethod(method) for _, x in self:IterateModules() do diff -r 44649a10378d -r 2ee41dcd673f modules/ReAction_ConfigUI/ReAction_ConfigUI.lua --- a/modules/ReAction_ConfigUI/ReAction_ConfigUI.lua Sat May 10 00:08:01 2008 +0000 +++ b/modules/ReAction_ConfigUI/ReAction_ConfigUI.lua Tue May 13 16:42:03 2008 +0000 @@ -48,11 +48,6 @@ end end -function module:UserError(msg) - -- any user errors should be flashed to the UIErrorsFrame - UIErrorsFrame:AddMessage(msg) -end - function module:OpenConfig() InterfaceOptionsFrame_OpenToFrame(configName) end @@ -140,7 +135,7 @@ function() ReAction:SetConfigMode(false) end ) - AceConfigDialog:SetDefaultSize(editorName, 700, 420) + AceConfigDialog:SetDefaultSize(editorName, 700, 540) local options = { @@ -471,7 +466,7 @@ function module:LaunchBarEditor(bar) if InCombatLockdown() then - self:UserError(L["ReAction config mode disabled during combat."]) + ReAction:UserError(L["ReAction config mode disabled during combat."]) else if not self.editor then self.editor = NewEditor()