/trunk/CoolLine
## Title: CoolLine |
## Notes: Shows cooldowns on a single bar. |
## Author: TotalPackage |
## Version: 5.0.002 |
## Version: 5.0.003 |
## SavedVariables: CoolLineDB |
## SavedVariablesPerCharacter: CoolLineCharDB |
local cooldown2 = gsub(SPELL_RECAST_TIME_SEC, "%%%.%d[fg]", "(.+)") |
local function CheckRight(rtext) |
local text = rtext and rtext:GetText() |
if text and (strmatch(text, cooldown1) or strmatch(text, cooldown2)) then |
if text and text ~= '' and (strmatch(text, cooldown1) or strmatch(text, cooldown2)) then |
return true |
end |
end |
if sb[spellName] then |
sb[spellName] = specialspells[spellName] or spellID |
else |
CLTip:SetSpellByID(spellID) |
if CheckRight(CLTipTextRight2) or CheckRight(CLTipTextRight3) or CheckRight(CLTipTextRight4) then |
--CLTip:SetSpellByID(spellID) |
--if CheckRight(CLTipTextRight2) or CheckRight(CLTipTextRight3) or CheckRight(CLTipTextRight4) then |
sb[spellName] = specialspells[spellName] or spellID |
end |
--end |
end |
end |
elseif name ~= last then |
if sb[name] then |
sb[name] = specialspells[name] or id |
else |
CLTip:SetSpellBookItem(i, btype) |
if CheckRight(CLTipTextRight2) or CheckRight(CLTipTextRight3) or CheckRight(CLTipTextRight4) then |
--CLTip:SetSpellByID(id) |
--if CheckRight(CLTipTextRight2) or CheckRight(CLTipTextRight3) or CheckRight(CLTipTextRight4) then |
sb[name] = specialspells[name] or id |
end |
--end |
end |
end |
end |