Mercurial > wow > reaction
comparison modules/ReAction_ConfigUI/ReAction_ConfigUI.lua @ 103:890e4c4ab143
- added alpha settings (base and stateful)
- added scale settings (stateful only)
- updated overlay to work with stateful anchor/scale (though when in a state with scale, the button size/spacing can't be manipulated)
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Thu, 06 Nov 2008 01:28:07 +0000 |
parents | 5f1d7a81317c |
children |
comparison
equal
deleted
inserted
replaced
102:ad49739d110d | 103:890e4c4ab143 |
---|---|
362 if f then | 362 if f then |
363 return true | 363 return true |
364 else | 364 else |
365 f = _G[name] | 365 f = _G[name] |
366 if f and type(f) == "table" and f.IsObjectType and f:IsObjectType("Frame") then | 366 if f and type(f) == "table" and f.IsObjectType and f:IsObjectType("Frame") then |
367 return true | 367 local _, explicit = f:IsProtected() |
368 return explicit | |
368 end | 369 end |
369 end | 370 end |
370 end | 371 end |
371 return false | 372 return false |
372 end, | 373 end, |
410 order = 5 | 411 order = 5 |
411 }, | 412 }, |
412 }, | 413 }, |
413 order = 3 | 414 order = 3 |
414 }, | 415 }, |
416 alpha = { | |
417 type = "range", | |
418 name = L["Transparency"], | |
419 get = function() return bar:GetAlpha() end, | |
420 set = function(info, val) bar:SetAlpha(val) end, | |
421 min = 0, | |
422 max = 1, | |
423 isPercent = true, | |
424 step = 0.01, | |
425 bigStep = 0.05, | |
426 order = 4, | |
427 }, | |
415 }, | 428 }, |
416 }, | 429 }, |
417 } | 430 } |
418 } | 431 } |
419 self:RefreshBarTree(bar) | 432 self:RefreshBarTree(bar) |