Mercurial > wow > reaction
comparison modules/ReAction_ConfigUI/ReAction_ConfigUI.lua @ 52:c9df7866ff31
Added anchor snapping
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Thu, 24 Apr 2008 19:19:42 +0000 |
parents | c964fb84560c |
children | 7e09c02ae620 |
comparison
equal
deleted
inserted
replaced
51:c964fb84560c | 52:c9df7866ff31 |
---|---|
151 }, | 151 }, |
152 x = { | 152 x = { |
153 type = "input", | 153 type = "input", |
154 pattern = "\-?%d+", | 154 pattern = "\-?%d+", |
155 name = L["X offset"], | 155 name = L["X offset"], |
156 get = function() local p,f,r,x = bar:GetAnchor(); return x end, | 156 get = function() local p,f,r,x = bar:GetAnchor(); return ("%d"):format(x) end, |
157 set = function(info,val) bar:SetAnchor(nil,nil,nil,val) end, | 157 set = function(info,val) bar:SetAnchor(nil,nil,nil,val) end, |
158 order = 4 | 158 order = 4 |
159 }, | 159 }, |
160 y = { | 160 y = { |
161 type = "input", | 161 type = "input", |
162 pattern = "\-?%d+", | 162 pattern = "\-?%d+", |
163 name = L["Y offset"], | 163 name = L["Y offset"], |
164 get = function() local p,f,r,x,y = bar:GetAnchor(); return y end, | 164 get = function() local p,f,r,x,y = bar:GetAnchor(); return ("%d"):format(y) end, |
165 set = function(info,val) bar:SetAnchor(nil,nil,nil,nil,val) end, | 165 set = function(info,val) bar:SetAnchor(nil,nil,nil,nil,val) end, |
166 order = 5 | 166 order = 5 |
167 }, | 167 }, |
168 }, | 168 }, |
169 order = 3 | 169 order = 3 |