Mercurial > wow > reaction
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 256:5ab04f393b0b | 259:c918ff9ac787 |
|---|---|
| 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 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, |
