Mercurial > wow > reaction
diff Editor.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 | 376c424900f0 |
children | a5d91d7fd485 |
line wrap: on
line diff
--- a/Editor.lua Fri Nov 19 15:27:23 2010 -0800 +++ b/Editor.lua Fri Nov 19 23:06:24 2010 -0800 @@ -90,12 +90,12 @@ name = L["Button Type"], get = function() return self.tmp.barType or ReAction:GetDefaultBarType() or "" end, set = function(info, val) - local c = ReAction:GetBarTypeConfig(val) + local c = ReAction:GetDefaultBarConfig(val) self.tmp.barType = val - self.tmp.barSize = c.defaultButtonSize or self.tmp.barSize - self.tmp.barRows = c.defaultBarRows or self.tmp.barRows - self.tmp.barCols = c.defaultBarCols or self.tmp.barCols - self.tmp.barSpacing = c.defaultBarSpacing or self.tmp.barSpacing + self.tmp.barSize = c.btnWidth or self.tmp.barSize + self.tmp.barRows = c.btnRows or self.tmp.barRows + self.tmp.barCols = c.btnColumns or self.tmp.barCols + self.tmp.barSpacing = c.spacing or self.tmp.barSpacing end, values = "GetBarTypes", order = 3,