WoWInterface SVN FuryCommander

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 10 to Rev 11
    Reverse comparison

Rev 10 → Rev 11

trunk/FuryCommander.lua
917,7 → 917,7
if start ~= nil and duration >= 3 then
cd = start + duration - FC.tNow
if cd <= 0 then
ICON['obj'].iconTxt:SetText('')
--ICON['obj'].iconTxt:SetText('')
if ICON['obj'].overlay:IsVisible() then
ICON['obj'].overlay:Hide()
end
926,16 → 926,16
ICON['obj'].overlay:Show()
end
if cd >= 10 then
ICON['obj'].iconTxt:SetText(string.format("%i", cd))
--ICON['obj'].iconTxt:SetText(string.format("%i", cd))
else
ICON['obj'].iconTxt:SetText(string.format("%0.1f", cd))
--ICON['obj'].iconTxt:SetText(string.format("%0.1f", cd))
end
end
if not ICON['obj']:IsVisible() then
ICON['obj']:Show()
end
else
ICON['obj'].iconTxt:SetText('')
--ICON['obj'].iconTxt:SetText('')
if ICON['obj'].overlay:IsVisible() then
r, g, b, a = ICON['obj'].overlay:GetBackdropColor()
if r == 0 and g == 0 and b == 0 and string.format("%0.1f", a) == "0.7" then
944,11 → 944,32
end
end
end
 
function FuryCommander:notnil(expirationTimeEnr)
 
end
 
function FuryCommander:GetMaxEnrage()
local expirationTimeEnr, expirationTimeRbe, expirationTimeDwn, expirationTimeMAX
_, _, _, _, _, _, expirationTimeEnr = UnitAura("player", FC_SPELL_ENR, nil, "PLAYER")
_, _, _, _, _, _, expirationTimeRbe = UnitAura("player", FC_SPELL_RBE, nil, "PLAYER")
_, _, _, _, _, _, expirationTimeDw = UnitAura("player", FC_SPELL_DW, nil, "PLAYER")
expirationTimeMAX = math.max(FuryCommander:notnil(expirationTimeEnr), FuryCommander:notnil(expirationTimeRbe), FuryCommander:notnil(expirationTimeDw))
if expirationTimeMAX then
expirationTimeMAX = expirationTimeMAX-FC.tNow
else
expirationTimeMAX = ""
end
return expirationTimeMAX
end
 
function FuryCommander:ColorEnrageBorder(b)
if UnitAura("player", FC_SPELL_ENR, nil, "PLAYER") or UnitAura("player", FC_SPELL_RBE, nil, "PLAYER") or UnitAura("player", FC_SPELL_DW, nil, "PLAYER") then
local enrageTime = FuryCommander:GetMaxEnrage()
if enrageTime then
b.border[1]:SetBackdropColor(unpack(FC.V.brColor))
b.border[2]:SetBackdropColor(unpack(FC.V.yeColor))
b.border[3]:SetBackdropColor(unpack(FC.V.brColor))
b.iconIndice:SetText()
b:Show()
else
b.border[1]:SetBackdropColor(unpack(FC.V.bColor))
970,6 → 991,7
FuryCommander:IconWithCD(FC.ICON['RGB'])
 
FuryCommander:ColorEnrageBorder(FC.ICON['RGB']['obj'])
FC.ICON['BLT'].iconTxt:SetText(FuryCommander:GetMaxEnrage())
end
 
do