Mercurial > wow > reaction
comparison Editor.lua @ 264:d2e55b61e5e6 stable
Merge 1.1 beta 6 to stable
author | Flick |
---|---|
date | Fri, 06 May 2011 15:52:21 -0700 |
parents | 5694618cef7f |
children | c27596828276 |
comparison
equal
deleted
inserted
replaced
258:a7d2efb6ffc9 | 264:d2e55b61e5e6 |
---|---|
253 desc = function() return bar:GetName() end, | 253 desc = function() return bar:GetName() end, |
254 confirm = true, | 254 confirm = true, |
255 func = function() ReAction:EraseBar(bar) end, | 255 func = function() ReAction:EraseBar(bar) end, |
256 order = 2 | 256 order = 2 |
257 }, | 257 }, |
258 clickDown = { | |
259 type = "toggle", | |
260 name = L["Activate on Down"], | |
261 desc = L["Activate the button when the key or mouse button is pressed down instead of when it is released"], | |
262 order = 3, | |
263 set = function(info, value) bar:GetConfig().clickDown = value; ReAction:RebuildAll() end, | |
264 get = function() return bar:GetConfig().clickDown end, | |
265 }, | |
258 anchor = { | 266 anchor = { |
259 type = "group", | 267 type = "group", |
260 name = L["Anchor"], | 268 name = L["Anchor"], |
261 inline = true, | 269 inline = true, |
270 order = 4, | |
262 args = { | 271 args = { |
263 frame = { | 272 frame = { |
264 type = "input", | 273 type = "input", |
265 name = L["Frame"], | 274 name = L["Frame"], |
266 desc = L["The frame that the bar is anchored to"], | 275 desc = L["The frame that the bar is anchored to"], |
319 get = function() local p,f,r,x,y = bar:GetAnchor(); return ("%d"):format(y) end, | 328 get = function() local p,f,r,x,y = bar:GetAnchor(); return ("%d"):format(y) end, |
320 set = function(info,val) bar:SetAnchor(nil,nil,nil,nil,val) end, | 329 set = function(info,val) bar:SetAnchor(nil,nil,nil,nil,val) end, |
321 order = 5 | 330 order = 5 |
322 }, | 331 }, |
323 }, | 332 }, |
324 order = 3 | |
325 }, | 333 }, |
326 alpha = { | 334 alpha = { |
327 type = "range", | 335 type = "range", |
328 name = L["Transparency"], | 336 name = L["Transparency"], |
329 get = function() return bar:GetAlpha() end, | 337 get = function() return bar:GetAlpha() end, |
1013 pattern = "^%w*$", | 1021 pattern = "^%w*$", |
1014 usage = L["State names must be alphanumeric without spaces"], | 1022 usage = L["State names must be alphanumeric without spaces"], |
1015 }, | 1023 }, |
1016 ordering = { | 1024 ordering = { |
1017 name = L["Evaluation Order"], | 1025 name = L["Evaluation Order"], |
1018 desc = L["State transitions are evaluated in the order listed:\nMove a state up or down to change the order"], | 1026 desc = L["State transitions are evaluated in the order listed: Move a state up or down to change the order"], |
1019 order = 2, | 1027 order = 2, |
1020 type = "group", | 1028 type = "group", |
1021 inline = true, | 1029 inline = true, |
1022 args = { | 1030 args = { |
1023 up = { | 1031 up = { |