changeset 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 f9cdb920470a
files ReAction.lua modules/ReAction_ConfigUI/ReAction_ConfigUI.lua
diffstat 2 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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()