Mercurial > wow > reaction
diff Editor.lua @ 259:c918ff9ac787
Add option to make buttons activate on mouse/key down
author | Flick |
---|---|
date | Mon, 25 Apr 2011 11:43:42 -0700 |
parents | 5ab04f393b0b |
children | 5694618cef7f |
line wrap: on
line diff
--- a/Editor.lua Mon Apr 04 13:04:11 2011 -0700 +++ b/Editor.lua Mon Apr 25 11:43:42 2011 -0700 @@ -255,10 +255,19 @@ func = function() ReAction:EraseBar(bar) end, order = 2 }, + clickDown = { + type = "toggle", + name = L["Activate on Down"], + desc = L["Activate the button when the key or mouse button is pressed down instead of when it is released"], + order = 3, + set = function(info, value) bar:GetConfig().clickDown = value end, + get = function() return bar:GetConfig().clickDown end, + }, anchor = { type = "group", name = L["Anchor"], inline = true, + order = 4, args = { frame = { type = "input", @@ -321,7 +330,6 @@ order = 5 }, }, - order = 3 }, alpha = { type = "range",