diff modules/ReAction_ConfigUI/ReAction_ConfigUI.lua @ 53:7e09c02ae620

Pet Action support
author Flick <flickerstreak@gmail.com>
date Fri, 25 Apr 2008 20:35:55 +0000
parents c9df7866ff31
children 20003239af0b
line wrap: on
line diff
--- a/modules/ReAction_ConfigUI/ReAction_ConfigUI.lua	Thu Apr 24 19:19:42 2008 +0000
+++ b/modules/ReAction_ConfigUI/ReAction_ConfigUI.lua	Fri Apr 25 20:35:55 2008 +0000
@@ -420,7 +420,14 @@
             type = "select",
             name = L["Button Type"],
             get  = function() return self.tmpBarType or ReAction.defaultBarConfigChoice or "" end,
-            set  = function(info, val) self.tmpBarType = val end,
+            set  = function(info, val) 
+                     local c = ReAction.defaultBarConfig[val]
+                     self.tmpBarType = val 
+                     self.tmpBarSize = c.defaultButtonSize or self.tmpBarSize
+                     self.tmpBarRows = c.defaultBarRows or self.tmpBarRows
+                     self.tmpBarCols = c.defaultBarCols or self.tmpBarCols
+                     self.tmpBarSpacing = c.defaultBarSpacing or self.tmpBarSpacing
+                   end,
             values = "GetBarTypes",
             order = 3,
           },