/
} |
-- NEEDTOKNOW = {} is defined in the localization file, which must be loaded before this file |
NEEDTOKNOW.VERSION = "4.0.14" |
NEEDTOKNOW.VERSION = "4.0.16" |
local c_UPDATE_INTERVAL = 0.05 |
local c_MAXBARS = 20 |
--Chars = "Chr", |
--Specs = "Spc", |
--Locked = "Lck", |
--name = "nam", |
--name can't be compressed since it's used even when not the active profile |
--nGroups = "nGr", |
--Groups = "Grp", |
--BarTexture = "Tex", |
-- Some obsolete setting, or perhaps bUncompressed |
return true |
end |
-- Never want to compress name since it's read from inactive profiles |
-- Note: k was just for debugging, so it's got a leading space as part |
-- of how the debugging string was built. This mechanism should probably |
-- be revisited. |
if type(t) ~= "table" then |
return t == def |
return ((k~=" name") and (t == def)) |
end |
if #t > 0 then |
if vS.bUncompressed then |
NeedToKnow.CompressProfile(vS) |
end |
-- Although name should never be compressed, it could have been prior to 4.0.16 |
if not vS.name then vS.name = "Default" end |
local cur = tonumber(iS:sub(2)) |
if ( cur > maxKey ) then maxKey = cur end |
NeedToKnow_Profiles[iS] = vS |
print("NeedToKnow error encountered, both", vS.name, "and", NeedToKnow_Profiles[iS].name, "collided. Some specs may be mapped to one that should have been mapped to the other."); |
iS = NeedToKnow.AllocateProfileKey(); |
end |
-- Although name should never be compressed, it could have been prior to 4.0.16 |
if not vS.name then vS.name = "Default" end |
local cur = tonumber(iS:sub(2)) |
if ( cur > maxKey ) then maxKey = cur end |
NeedToKnow_Profiles[iS] = vS |
local barSpell = entry.id or entry.name |
local cur, max, charge_start, recharge = GetSpellCharges(barSpell) |
if ( cur ~= max ) then |
trace(barSpell, cur, max, charge_start, recharge, g_GetTime()-charge_start) |
local start, cd_len, enable, spellName, spellIconPath |
if ( cur == 0 ) then |
start, cd_len, enable, spellName, spellIconPath = mfn_GetSpellCooldown(bar, entry) |
## Interface: 050300 |
## Title: NeedToKnow |
## Author: Kitjan, lieandswell |
## Version: 4.0.14 |
## Version: 4.0.16 |
## Notes: Timer bars for buffs, debuffs, cooldowns, etc. |
## X-Credits: Bilt, Fxfighter EU-Echsenkessel, metalchoir, sp00n, Vlakarados, wowui.cn |
## X-Category: Buffs, Combat |