I finally got arround to rewrite CDT and here's what I got so far.
It's not complete yet just something i put together in a few hours.
What it does:
Well basically it's doing the same thing oCD or the old version of CDT does which is showing a bar for skills that are cooling down.
The reason i rewrote CDT is because it was bloated. And the reason I didn't use oCD was that I don't use any of the supported ActionBar addons.
CDT-2.0 is using SpellStatus to determine which spell just cast and then shows a bar if the spell has a CD.
A big advantage of this method is, that you don't get multiple bars if skills share a CD (e.g. Frost/Fire Ward) but only one bar for the skill you used.
I also added a function to reset bars if you use Preparation or Cold Snap so it's more usable for Rogues/Mages.
I don't know if pet cds will show up as I have no char to test this but if SpellStatus triggers on pet spell casts it should work.
Credits to Sole for HostelBar where I got most of the AceConsole and CandyBar stuff and to Haste for oCD where I got the SpellBook parser ;) (I really hope you don't mind me using parts of your code).
2.11
- Updated all Libraries (and therefore hopefully fixed the anchor bug; also included a new SpellStatusLib
which should improve spell detection)
2.10
- Added Combustion to delayed spells
- Updated SpellStatusLib (now handles "on next swing" attacks correctly)
- some bug fixes and minor code optimizations
2.08
- localisation issue fixed (should now actually work with every client BabbleLib supports)
2.07.2
- yet another attempt to fix the item cd issue
2.07
- bug with item cds fixed
2.06:
- MikSBT support
2.05:
- added several bar textures
- added option to set font size on alerts and bars
- option to send alerts to SCT Message frame
- revamped slash commands (clearer structure)
- added inventory item cooldowns
- added zhCN locale (thx to q09q09) although it now needs a few more translations
2.04:
- added Item support (needs testing)
- added the spells Kir listed to the delayed spells list
- Another attempt to fix the positioning issue
2.01
- added Alerts
- attempt to fix delayed spells such as Cold Blood, Nature's Swiftness and so on
- fixed bargrowth option
The only drawback I can see atm is, that it's not accurate for skills that don't trigger there cd on cast.(the only skill I know so far is Cold Blood which triggers the cd when it's actually used up)
Don't know if this is helpful, but from the top of my head, priests' Inner Focus works the same way
[2006/09/12 20:41:20-332]: CooldownTimers\CooldownTimers.lua:140: attempt to index field `bargrowth' (a boolean value)
CooldownTimers\CooldownTimers.lua:140: in function `set'
AceConsole-2.0\AceConsole-2.0.lua:1073: in function <...ns\Bartender2\Libs\AceConsole-2.0\AceConsole-2.0.lua:838>
AceConsole-2.0\AceConsole-2.0.lua:1600: in function `value'
FrameXML\ChatFrame.lua:2170: in function `ChatEdit_ParseText'
FrameXML\ChatFrame.lua:1941: in function `ChatEdit_SendText'
FrameXML\ChatFrame.lua:1963: in function `ChatEdit_OnEnterPressed'
<string>:"ChatFrameEditBox:OnEnterPressed":2: in main chunk
---
I'm working on the position issue and item support (can't decide as of now if only to add potions and thistle tea or every item which would require some sort of grouping :( ). Which would most of you find more usefull ?
As for spells like cold blood and natures swiftness I haven't decided on how to fix that :( (I welcome every idea on how to do this as I'm new to Ace I don't what's possible and what not).
It's not complete yet just something i put together in a few hours.
What it does:
Well basically it's doing the same thing oCD or the old version of CDT does which is showing a bar for skills that are cooling down.
The reason i rewrote CDT is because it was bloated. And the reason I didn't use oCD was that I don't use any of the supported ActionBar addons.
CDT-2.0 is using SpellStatus to determine which spell just cast and then shows a bar if the spell has a CD.
A big advantage of this method is, that you don't get multiple bars if skills share a CD (e.g. Frost/Fire Ward) but only one bar for the skill you used.
I also added a function to reset bars if you use Preparation or Cold Snap so it's more usable for Rogues/Mages.
I don't know if pet cds will show up as I have no char to test this but if SpellStatus triggers on pet spell casts it should work.
Credits to Sole for HostelBar where I got most of the AceConsole and CandyBar stuff and to Haste for oCD where I got the SpellBook parser ;) (I really hope you don't mind me using parts of your code).
2.11
- Updated all Libraries (and therefore hopefully fixed the anchor bug; also included a new SpellStatusLib
which should improve spell detection)
2.10
- Added Combustion to delayed spells
- Updated SpellStatusLib (now handles "on next swing" attacks correctly)
- some bug fixes and minor code optimizations
2.08
- localisation issue fixed (should now actually work with every client BabbleLib supports)
2.07.2
- yet another attempt to fix the item cd issue
2.07
- bug with item cds fixed
2.06:
- MikSBT support
2.05:
- added several bar textures
- added option to set font size on alerts and bars
- option to send alerts to SCT Message frame
- revamped slash commands (clearer structure)
- added inventory item cooldowns
- added zhCN locale (thx to q09q09) although it now needs a few more translations
2.04:
- added Item support (needs testing)
- added the spells Kir listed to the delayed spells list
- Another attempt to fix the positioning issue
2.01
- added Alerts
- attempt to fix delayed spells such as Cold Blood, Nature's Swiftness and so on
- fixed bargrowth option
Download: http://www.end-of-silence.net/index.php?downloads-show-1
EDIT: Appears bars dont seem to be working. font and icon is shown but can't find the texture. Probably something with candybars.
really need to make these grow upwards so I look forward to this being fixed. Thank you =)
Seems you've inherited the problem that Hostelbars is currently also having.
As for spells like cold blood and natures swiftness I haven't decided on how to fix that :( (I welcome every idea on how to do this as I'm new to Ace I don't what's possible and what not).
- fixed bargrowth (typo :( )
- added Cooldown Alert (if skill is ready)
- attempt to fix delayed spells (currently supports: Nature's Swiftness, Inner Focus, Cold Blood, Stealth, Shadowmeld, Prowl; please feel free to point out spells I missed)
The positioning issue is still present as I have absolutely no clue how to fix it :(.
Imagine that with the new CandyBar texture and you have it.
EDIT:
Ok just fixed the positioning issue (I think).
New version up
It appears your site is not responding though.
Trying to get it up again...
Elemental Mastery, Presence of Mind, Divine Favor, Amplify Curse