/trunk/RDX/Designs/Lists
if desc.bkd and desc.bkd.insets and desc.bkd.insets.left then os = desc.bkd.insets.left or 0; end |
end |
local r, g, b, a = bkd.br or 1, bkd.bg or 1, bkd.bb or 1, bkd.ba or 1; |
local loadCode = "LoadBuffFromUnit"; |
-- Event hinting. |
local mux, mask = state:GetContainingWindowState():GetSlotValue("Multiplexer"), 0; |
btn.meta = _meta; |
btn.tex:SetTexture(_tex); |
if _dispelt and DebuffTypeColor[_dispelt] then |
btn._texBorder:SetVertexColor(VFL.explodeColor(DebuffTypeColor[_dispelt])); |
if ]] .. usebs .. [[ then |
btn._texBorder:SetVertexColor(VFL.explodeColor(DebuffTypeColor[_dispelt])); |
elseif ]] .. usebkd .. [[ then |
btn:SetBackdropBorderColor(VFL.explodeRGBA(DebuffTypeColor[_dispelt])); |
end |
else |
btn._texBorder:SetVertexColor(1, 1, 1, 1); |
if ]] .. usebs .. [[ then |
btn._texBorder:SetVertexColor(1, 1, 1, 1); |
elseif ]] .. usebkd .. [[ then |
btn:SetBackdropBorderColor(]] .. r .. [[, ]] .. g .. [[, ]] .. b .. [[, ]] .. a .. [[); |
end |
end |
-- Cooldown |
if _dur and _dur > 0 and btn.cd then |
if ]] .. usebs .. [[ then |
btn._texBorder:SetVertexColor(1, 1, 1, 1); |
elseif ]] .. usebkd .. [[ then |
btn:SetBackdropBorderColor(1, 1, 1, 1); |
btn:SetBackdropBorderColor(]] .. r .. [[, ]] .. g .. [[, ]] .. b .. [[, ]] .. a .. [[); |
end |
end |
elseif desc.usebkd then |
if desc.bkd and desc.bkd.insets and desc.bkd.insets.left then os = desc.bkd.insets.left or 0; end |
end |
local r, g, b, a = bkd.br or 1, bkd.bg or 1, bkd.bb or 1, bkd.ba or 1; |
local showweapons = "false"; |
if desc.showweapons then showweapons = "true"; end |
if not desc.xoffset then desc.xoffset = "0"; end |
_bn, _, _tex, _apps, _dispelt, _dur, _et = UnitAura("player",child:GetID(), "]] .. filter .. [["); |
if _bn then |
child.btn.tex:SetTexture(_tex); |
if _dispelt and DebuffTypeColor[_dispelt] then |
if ]] .. usebs .. [[ then |
child.btn._texBorder:SetVertexColor(VFL.explodeColor(DebuffTypeColor[_dispelt])); |
elseif ]] .. usebkd .. [[ then |
child.btn:SetBackdropBorderColor(VFL.explodeRGBA(DebuffTypeColor[_dispelt])); |
end |
else |
if ]] .. usebs .. [[ then |
child.btn._texBorder:SetVertexColor(1, 1, 1, 1); |
elseif ]] .. usebkd .. [[ then |
child.btn:SetBackdropBorderColor(]] .. r .. [[, ]] .. g .. [[, ]] .. b .. [[, ]] .. a .. [[); |
end |
end |
child.btn.cd:SetCooldown(_et - _dur, _dur); |
if _apps > 1 then child.btn.sttxt:SetText(_apps); else child.btn.sttxt:SetText("");end |
child.btn:Show(); |