Mercurial > wow > reaction
comparison 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 |
comparison
equal
deleted
inserted
replaced
217:9c0691e91488 | 218:e63aefb8a555 |
---|---|
88 type = { | 88 type = { |
89 type = "select", | 89 type = "select", |
90 name = L["Button Type"], | 90 name = L["Button Type"], |
91 get = function() return self.tmp.barType or ReAction:GetDefaultBarType() or "" end, | 91 get = function() return self.tmp.barType or ReAction:GetDefaultBarType() or "" end, |
92 set = function(info, val) | 92 set = function(info, val) |
93 local c = ReAction:GetBarTypeConfig(val) | 93 local c = ReAction:GetDefaultBarConfig(val) |
94 self.tmp.barType = val | 94 self.tmp.barType = val |
95 self.tmp.barSize = c.defaultButtonSize or self.tmp.barSize | 95 self.tmp.barSize = c.btnWidth or self.tmp.barSize |
96 self.tmp.barRows = c.defaultBarRows or self.tmp.barRows | 96 self.tmp.barRows = c.btnRows or self.tmp.barRows |
97 self.tmp.barCols = c.defaultBarCols or self.tmp.barCols | 97 self.tmp.barCols = c.btnColumns or self.tmp.barCols |
98 self.tmp.barSpacing = c.defaultBarSpacing or self.tmp.barSpacing | 98 self.tmp.barSpacing = c.spacing or self.tmp.barSpacing |
99 end, | 99 end, |
100 values = "GetBarTypes", | 100 values = "GetBarTypes", |
101 order = 3, | 101 order = 3, |
102 }, | 102 }, |
103 go = { | 103 go = { |