diff Bar.lua @ 283:f2ed8a8e2320

Add editor sliders for button grid and size
author Flick
date Thu, 12 May 2011 17:16:43 -0700
parents 5b9c0164a491
children d931fa418e17
line wrap: on
line diff
--- a/Bar.lua	Wed May 11 17:21:04 2011 -0700
+++ b/Bar.lua	Thu May 12 17:16:43 2011 -0700
@@ -371,8 +371,11 @@
 end
 
 function Bar:SetButtonGrid(r,c,s)
+  local cfg = self.config
+  r = r or cfg.btnRows
+  c = c or cfg.btnColumns
+  s = s or cfg.spacing
   if r > 0 and c > 0 and s > 0 then
-    local cfg = self.config
     cfg.btnRows = r
     cfg.btnColumns = c
     cfg.spacing = s