RAT (Raid Ability Tracker) is an addon that shares and displays your cooldowns with others.
https://github.com/Atreyyo/RAT-TBC
Rename the folder to RAT
Hold 'alt' to move RAT
Let me know if you find any bugs.
'); document.write(''); var yuipath = 'clientscript/yui'; var yuicombopath = ''; var remoteyui = false; } else // Load Rest of YUI remotely (where possible) { var yuipath = 'https://ajax.googleapis.com/ajax/libs/yui/2.9.0/build'; var yuicombopath = ''; var remoteyui = true; if (!yuicombopath) { document.write(''); } } var SESSIONURL = "s=8a8cf0a42c53c326e944cf0919587c76&"; var SECURITYTOKEN = "guest"; var IMGDIR_MISC = "warmane/misc"; var IMGDIR_BUTTON = "warmane/buttons"; var vb_disable_ajax = parseInt("0", 10); var SIMPLEVERSION = "422"; var BBURL = "https://forum.warmane.com"; var LOGGEDIN = 0 > 0 ? true : false; var THIS_SCRIPT = "showthread"; var RELPATH = "showthread.php?t=373558&p=2887187"; var PATHS = { forum : "", cms : "", blog : "" }; var AJAXBASEURL = "https://forum.warmane.com/"; var CoTTooltips = { rename: true, icons: false, iconsize: 15, qualitycolor: true, overridecolor: { spells: '#839309', items: '', npcs: '#fff', objects: '#fff', quests: '#ffb100', achievements: '#fff' } }; // -->
RAT (Raid Ability Tracker) is an addon that shares and displays your cooldowns with others.
https://github.com/Atreyyo/RAT-TBC
Rename the folder to RAT
Hold 'alt' to move RAT
Let me know if you find any bugs.
Looks good.
With nothing better to do with my life I made some optimizations to your code on Git.
Only thing I noticed is that challenging shout is on the druid CD page instead of warrior. Also might be nice to be able to track warrior's Last Stand.
Thanks a lot for your contribution to the project!
The only issue I found was that GetSpellCooldown() in RAT_InitializePlayerSpells() did not return true if a spell was found, but GetSpellName() did.
Also added RAT_InitializePlayerSpells() to the event LEARNED_SPELL_IN_TAB which fires whenever anew spell is learned.
I added Last Stand and moved Challenging Shout to the Warrior section
Edited: December 25, 2017
Should also note that if you want this addon to be usable by people without english client then you'll have to use spellID's instead.
Requires additional effort but seeing you gather texture's by hand it would be easier to use spellIDs.
local spell_name, rank, texture = GetSpellInfo(someID)
you can directly use as key in tables as well eg textures[ GetSpellInfo(72) ] = select(3,GetSpellInfo(72))