Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(19 Kb)
Download
Updated: 10-20-14 09:39 PM
Pictures
File Info
Compatibility:
Warlords of Draenor Pre-Patch (6.0.2)
Siege of Orgrimmar (5.4)
Escalation (5.3)
Thunder Isle (5.2)
Landfall (5.1)
Mists of Pandaria (5.0.4)
Updated:10-20-14 09:39 PM
Created:02-09-09 05:18 PM
Downloads:97,753
Favorites:539
MD5:
6.0.2
CoolLine  Updated less than 3 days ago!  Popular! (More than 5000 hits)
Version: 6.0.001
by: totalpackage [More]
Install CoolLine Fix for fixes to spells with charges and pet battles.

CoolLine is a spell/item cooldown mod that displays icons on a single bar/line to give you an idea of when it will be ready. No statusbar timer and no text timer.

CoolLine is inspired by Forte_Cooldown (a module in the ForteXorcist package). CoolLine is basically a stripped down and standalone version written from scratch. The name comes from putting "cooldown" and "timeline" together (yes, lame).

YouTube Intro

How to Use:
  • Change settings - "/coolline" or check Interface Options -> AddOns
  • Change position and size - unlock to make it draggable and resizable
  • Filter/unfilter a spell or item cooldown - "/coolline Spell Item Name Link"
  • Add more fonts/texture - CoolLine uses LibSharedMedia

External Support:
  • CoolLine.NewCooldown(name, icon, endtime, isplayer)
    • name - unique string id of the cooldown, used as a look-up id
    • icon - string icon path used to display image on the bar
    • endtime - numerical time when the icon should expire, based on GetTime()
    • isplayer - boolean value used to determine if the icon is colored by spell
  • CoolLine.ClearCooldown(unused, name)

Notes:
  • Only one spell/item will be shown in an event that multiple spells/items share the same cooldown (whichever appeared first).
  • By design, icons will often overlap; if you do not like it, this type of cooldown mod is not for you.
  • What you see is what you get. If you like the idea of this mod but want more, I highly suggest checking out ForteXorcist or Ellipsis. I'll most likely ignore requests to make CoolLine more similar to them.
  • CoolLine only does spell/item cooldowns and NOT buff/debuff cooldowns, flight timers, time til enrage, etc; this will NOT change so don't ask.

Recently, I had some requests for donation info, so here it is. Do not feel obligated; donations (or lack of) will not determine what features I do or do not implement.
6.0.001 10/20/2014:
- updated for 6.0
- install CoolLine Fix for support for pet battle and spells with charges

5.4.001 09/21/2013 - updated for 5.4
5.3.002 06/06/2013 - added options for bar border inset
5.3.001 06/05/2013 - updated for 5.3
5.2.001 04/28/2013 - fix Frost Bomb
5.2.001 03/10/2013 - updated for 5.2
5.1.001 12/08/2012 - updated for 5.1

5.0.004 09/18/2012:
- fix for cooldowns that share the same spell name
- performance fixes

5.0.003 09/11/2012 - workaround for several spells not showing
5.0.002 09/05/2012 - fixed cooldowns for grouped spells (ie. totems)
5.0.001 09/04/2012 - updated for 5.0.4

4.3.002 07/24/2012:
- fix support for priests' Chakra/Holy Word spells
- changed the "1m" tick to "30" seconds
- tweaked refresh rate to be a bit smoother

4.3.001 11/29/2011 - update for 4.3
4.2.001 06/29/2011 - update for 4.2
4.1.001 04/26/2011 - update for 4.1

4.0.003 10/30/2010:
- added workarounds for priests' Archangel and Holy Word spells
- cleaned up options menu

4.0.002 10/18/2010 - fix for long wait times at loading screen
4.0.001 10/12/2010 - 4.0 compat
3.3.003 01/16/2010 - removed "30" tick and added "3" tick
3.3.002 01/11/2010 - added LibSharedMedia-3.0 callback support

3.3.001 12/08/2009:
- updated toc for 3.3
- added option to increase icon size
- added option to reset settings

3.2.005 10/30/2009 - fix an issue where cooldowns refreshed to global cooldown did not update properly (ie. Shield Slam with Sword and Board)

3.2.004 10/07/2009:
- added option to save settings per character
- make death knight rune detection more robust to cooldown changes

3.2.003 09/04/2009:
- allow external access to useful CoolLine functions
- added ConfigMode support

3.2.002 08/04/2009 - fix spell cooldowns triggering when runes are on cooldown

3.2.001 08/04/2009:
- toc to 3.2
- fade icons out a bit faster
- text now have a shadow

3.1.006 07/24/2009:
- switched to a 6-minute time scale instead of 10
- performance tweaks
- added more font size values

3.1.004 05/30/2009:
- icons' alpha now constant
- slightly reduced icon fade time

3.1.003 05/22/2009 - slightly tweaked layout

3.1.002 04/24/2009:
- added an optional visual that lets you know if and where a spell is on cooldown when you attempt to cast it

3.1.001 04/14/2009:
- updated for 3.1
- slightly improved performance

3.0.005 03/25/2009:
- prevent error caused by default variables
- replaced "10m" with "9m" because of the offset and size, bar is still 10m long
- added AddonLoader support, set to "delay" by default

3.0.004 02/22/2009 - several minor performance tweaks

3.0.003 02/14/2009:
- slash command to add/remove filter now accepts spell or item links
- added coloring to distinguish player spell from pet/item cooldowns

3.0.002 02/09/2009 - attempt to make it work with other locales

3.0.001 02/09/2009 - Initial upload
Archived Files (12)
File Name
Version
Size
Author
Date
5.4.001
19kB
totalpackage
09-20-13 10:28 PM
5.3.002
19kB
totalpackage
06-06-13 05:20 PM
5.2.002
18kB
totalpackage
04-28-13 05:07 PM
5.1.001
18kB
totalpackage
12-08-12 08:33 AM
5.0.004
18kB
totalpackage
09-18-12 09:10 PM
4.3.002
18kB
totalpackage
07-24-12 08:00 PM
4.2.001
16kB
totalpackage
06-29-11 08:08 PM
4.1.001
16kB
totalpackage
04-26-11 06:23 PM
4.0.003
16kB
totalpackage
10-30-10 07:54 PM
3.3.003
16kB
totalpackage
01-16-10 05:51 PM
3.2.005
16kB
totalpackage
10-30-09 03:27 AM
3.1.006
15kB
totalpackage
07-24-09 02:16 PM


Post A Reply Comment Options
Unread 03-03-13, 09:42 AM  
totalpackage
A Fallenroot Satyr
 
totalpackage's Avatar
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 879
Uploads: 2
Originally Posted by Phanx
Could we get an option (or just a feature; it doesn't really need an option) to hide CoolLine during pet battles?
Mind providing the solution? I did this for another mod, but no one told me if it works...since I cannot test such a feature.
totalpackage is offline Report comment to moderator  
Reply With Quote
Unread 03-02-13, 10:08 PM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4399
File comments: 2035
Uploads: 40
Could we get an option (or just a feature; it doesn't really need an option) to hide CoolLine during pet battles?
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 12-22-12, 08:53 AM  
Greensleeper
A Defias Bandit

Forum posts: 2
File comments: 30
Uploads: 0
outline

Hello,

Prolly a silly question but how do I get an outline on the font?

really cool addon (as the name suggests), it allowes me to free up a lot of real-estate on my screen !

EDIT: problem solved. thanks to a post on mmo champ.

for anyone else looking for this:

find the line
Code:
fs:SetFont(smed:Fetch("font", db.font), db.fontsize)
change it to
Code:
fs:SetFont(smed:Fetch("font", db.font), db.fontsize, "OUTLINE")
Last edited by Greensleeper : 12-23-12 at 05:40 AM.
Greensleeper is offline Report comment to moderator  
Reply With Quote
Unread 12-11-12, 07:22 PM  
Abaregi
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Re: Re: Re: question

Originally Posted by bizadin

Navigate to your Cool Line folder and make the following changes to the core.lua file:
snip
Thanks a lot! It is working great now.
Abaregi is offline Report comment to moderator  
Reply With Quote
Unread 12-09-12, 11:19 PM  
steste78
A Murloc Raider
AddOn Compiler - Click to view compilations

Forum posts: 7
File comments: 12
Uploads: 2
Icon Expire

When the icon expires on the cool down bar it gets really big is there a way not to make it as big
steste78 is offline Report comment to moderator  
Reply With Quote
Unread 12-08-12, 05:39 PM  
totalpackage
A Fallenroot Satyr
 
totalpackage's Avatar
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 879
Uploads: 2
I thought monochrome was recently disabled in the game.

As always, the time scale will be static as is for performance reasons.
totalpackage is offline Report comment to moderator  
Reply With Quote
Unread 12-04-12, 07:54 AM  
Vocal
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Is it possible to enable Monochrome on fonts? I've had a dig through the lua and didn't find any font flags or anything, maybe I'm not looking hard enough.
Vocal is offline Report comment to moderator  
Reply With Quote
Unread 12-01-12, 06:13 PM  
bizadin
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Re: Re: question

Originally Posted by Abaregi
First, I love this addon, it is simple small and just great. Thanks for the work.

I just want to bump this post as it would be a great feature:

Originally Posted by twopro
hey, can you tell me if i'm overlooking an option


i would like to show cool down timers in this order


0 -------1------3--------10--------30--------60


normaly i do pvp when i do pvp i normaly don't wait on any cd past 60seconds given the nature of content


is there a way to switch it up on /coolline?

if not i can deal with it i guess
Navigate to your Cool Line folder and make the following changes to the core.lua file, i would make a backup of it so that you can switch back to the normal version. You'll need to modify the file and do a /reload in order to see the changes.

Code:
		tick0 = createfs(tick0, "0", 0, "LEFT")
		tick1 = createfs(tick1, "1", section)
		tick3 = createfs(tick3, "3", section * 2)
		tick10 = createfs(tick10, "10", section * 3)
		tick30 = createfs(tick30, "15", section * 4)
		tick120 = createfs(tick120, "30", section * 5)
		tick300 = createfs(tick300, "1m", section * 6, "RIGHT")
Code:
		elseif remain < 10 then
			SetupIcon(frame, section * (remain + 11) * 0.14286, remain > 4 and 0.05 or 0.02, true, dofl)
		--[[(n-1) * TimeToDisplay) - NextTime = x1, where x1 is (remain - x1), n is the interval		
		x2 = n / (TimeInterval + x1), where x2 is (remain - x1) * x2, n is the interval, x1 is the above formula
		Example: Interval 6, TimeToDisplay 240, NextTime 120, TimeInterval 360
		(5 * 240) - 120 = 1080
		6 / (360 + 1080) ~= 0.00416667]]--
		elseif remain < 15 then
			--(3 * 5) - 10 = 5
			--4 / (15 + 5) ~= 0.2
			SetupIcon(frame, section * (remain + 5) * 0.2, 0.055, true, dofl)
		elseif remain < 30 then
			--(4 * 15) - 15 = 45
			--5 / (30 + 45) ~= 0.06666667
			SetupIcon(frame, section * (remain + 45) * 0.06666667, 0.06, true, dofl)
		elseif remain < 60 then
			--(5 * 30) - 30 = 120
			--6 / (60 + 120) ~= 0.03333334
			SetupIcon(frame, section * (remain + 120) * 0.03333334, 0.12, true, dofl)
			frame:SetAlpha(1)
		else
			SetupIcon(frame, 6 * section, 2, false, dofl)
		end
Last edited by bizadin : 12-02-12 at 01:48 PM.
bizadin is offline Report comment to moderator  
Reply With Quote
Unread 12-01-12, 06:00 PM  
bizadin
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Warlock "Special Spells"

I noticed a few spells were missing, was quite suprised this worked...

Code:
	
	elseif class == "WARLOCK" then
		specialspells = {
			[GetSpellInfo(87151) or "blah"] = 87151,  -- Dark Soul
			[GetSpellInfo(110913) or "blah"] = 110913,  -- Dark Bargain
			[GetSpellInfo(108416) or "blah"] = 108416,  -- Sacrificial Pact
			[GetSpellInfo(18540) or "blah"] = 18540,  -- Summon Doomguard
			[GetSpellInfo(48020) or "blah"] = 48020,  -- Demonic Circle: Teleport
			[GetSpellInfo(1122) or "blah"] = 1122,  -- Summon Infernal
		}
bizadin is offline Report comment to moderator  
Reply With Quote
Unread 11-22-12, 08:14 PM  
Abaregi
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Re: question

First, I love this addon, it is simple small and just great. Thanks for the work.

I just want to bump this post as it would be a great feature:

Originally Posted by twopro
hey, can you tell me if i'm overlooking an option


i would like to show cool down timers in this order


0 -------1------3--------10--------30--------60


normaly i do pvp when i do pvp i normaly don't wait on any cd past 60seconds given the nature of content


is there a way to switch it up on /coolline?

if not i can deal with it i guess
Abaregi is offline Report comment to moderator  
Reply With Quote
Unread 10-06-12, 11:02 AM  
abraXas-
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
Hi,
I can't add the Mages' Frost Bomb cooldown to CoolLine. It just won't show up. Is this problem specific to me?
abraXas- is offline Report comment to moderator  
Reply With Quote
Unread 09-19-12, 10:00 AM  
SinaC
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 5
Uploads: 1
RegisterUnitEvent

Hi,
I've seen you made some optimizations in latest version, really nice ... I love optimizations
What do you think about using RegisterUnitEvent("UNIT_XXX", "player") for each UNIT_XXX event instead of using RegisterEvent and check if unit is "player" in event handler ? Bli² added this in patch 5 and I found it really useful, something I wanted since I've started coding addon

Just my 2 cents =)
Last edited by SinaC : 09-19-12 at 10:01 AM.
SinaC is offline Report comment to moderator  
Reply With Quote
Unread 09-18-12, 09:17 PM  
totalpackage
A Fallenroot Satyr
 
totalpackage's Avatar
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 879
Uploads: 2
Re: Broken Vehicle Cooldown

Originally Posted by oldcat
With 5.0.X patch, VehicleMenuBar is replaced by OverrideActionBar
So in core.lua line #578 must be changed like below.

VehicleMenuBarActionButton >> OverrideActionBarButton


PS. Sorry, I'm not good at English.
Thanks. I've implemented this but didn't test.
totalpackage is offline Report comment to moderator  
Reply With Quote
Unread 09-18-12, 10:55 AM  
oldcat
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
Broken Vehicle Cooldown

With 5.0.X patch, VehicleMenuBar is replaced by OverrideActionBar
So in core.lua line #578 must be changed like below.

VehicleMenuBarActionButton >> OverrideActionBarButton


PS. Sorry, I'm not good at English.
Last edited by oldcat : 09-18-12 at 11:08 AM.
oldcat is offline Report comment to moderator  
Reply With Quote
Unread 09-16-12, 08:00 PM  
totalpackage
A Fallenroot Satyr
 
totalpackage's Avatar
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 879
Uploads: 2
Yeah thanks, undocumented and I did not even find it used in WoW's own interface, but I'm glad it exists now! I will implement it early this week. It won't be a simple copy and paste.

For debuffs that adds/extends cooldown, it will appear normally if the spell has a base cooldown.
totalpackage is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.