diff modules/Action.lua @ 218:e63aefb8a555

Demodularization of buttons - register class instead of config
author Flick <flickerstreak@gmail.com>
date Fri, 19 Nov 2010 23:06:24 -0800
parents d58055179c16
children a4e7475633b3
line wrap: on
line diff
--- a/modules/Action.lua	Fri Nov 19 15:27:23 2010 -0800
+++ b/modules/Action.lua	Fri Nov 19 23:06:24 2010 -0800
@@ -38,19 +38,12 @@
 end
 
 function module:OnEnable()
-  ReAction:RegisterBarType(L["Action Bar"], 
-    { 
-      type = moduleID,
-      defaultButtonSize = 36,
-      defaultBarRows = 1,
-      defaultBarCols = 12,
-      defaultBarSpacing = 3
-    }, true)
+  ReAction:RegisterBarType(Button, true)
   ReAction:GetModule("State"):RegisterStateProperty("page", nil, PropHandler.GetOptions(), PropHandler)
 end
 
 function module:OnDisable()
-  ReAction:UnregisterBarType(L["Action Bar"])
+  ReAction:UnregisterBarType(Button)
   ReAction:GetModule("State"):UnregisterStateProperty("page")
 end