Download
(17Kb)
Download
Updated: 08-19-18 03:41 PM
Pictures
File Info
Compatibility:
Battle for Azeroth (8.0.1)
Updated:08-19-18 03:41 PM
Created:02-09-09 05:18 PM
Downloads:124,944
Favorites:531
MD5:

CoolLine  Popular! (More than 5000 hits)

Version: 8.0.002
by: totalpackage, Phanx, Uitat

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 (TotalPackage) 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.

CoolLine
8.0.002 (2018-08-19)
Full Changelog Previous releases
  • Remove special treatment for obsolete DK spells
Post A Reply Comment Options
Unread 04-22-13, 08:53 PM  
mal1ce
A Kobold Labourer

Forum posts: 0
File comments: 8
Uploads: 0
frost bomb plssss

frost bomb's cooldown wont work, and adding it wont work either. fix it and i will love u forever.
Report comment to moderator  
Reply With Quote
Unread 04-13-13, 07:00 PM  
actun
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
FROST BOMB

hi, frost bomb on mages dont work whit this addon, i try to add it, /coolline frost bomb, but dont work.
Report comment to moderator  
Reply With Quote
Unread 04-03-13, 08:39 AM  
Valkari
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
This is exactly what I’ve been looking for, but the bar is constantly resizing itself automatically to a default length, about three times longer then what I set it to. I downloaded this in a generic compilation, so I was thinking maybe there is a setting somewhere that has to do with my resolution, but I can’t find it.

Is there any known issues with this addon behaving this way?
Report comment to moderator  
Reply With Quote
Unread 03-27-13, 03:40 PM  
Grandchamp
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Hey folks,

this addon is exactly what I was searching for, since most of my Warri MS makros blocks the CD´s. But I have a major problem, I cant join queue´s. When I try to join the WoW UI blocks it. I can deactive or ignore it, but when I ignore it I wont join the queue.

Thanks in advance for your time and help.
Report comment to moderator  
Reply With Quote
Unread 03-26-13, 08:40 PM  
bizadin
A Kobold Labourer

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

Originally Posted by Abaregi
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.
No problem, glad i could help.

Originally Posted by totalpackage
I thought monochrome was recently disabled in the game.

As always, the time scale will be static as is for performance reasons.
What do you mean "performance reasons"?

You're calling the refresh of the icon at the same rate, all that changes is the formula to change the rate at which it changes per time position.

I gave lots of comments in my code snippet for you to make this dynamic. Which is a really great option.

<3 i still love and use this addon regardless =D
Report comment to moderator  
Reply With Quote
Unread 03-10-13, 05:55 PM  
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5617
File comments: 2321
Uploads: 54
Originally Posted by totalpackage
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.
You can either do it manually using events:

Code:
CoolLine:RegisterEvent("PET_BATTLE_OPENING_START")
CoolLine:RegisterEvent("PET_BATTLE_CLOSE")

CoolLine.PET_BATTLE_OPENING_START = CoolLine.Hide
CoolLine.PET_BATTLE_CLOSE = CoolLine.Show
...or use a state driver:

Code:
local hider = CreateFrame("Frame", "CoolLinePetBattleHider", UIParent)
hider:SetAllPoints(true)
RegisterStateDriver(hider, "visibility", "[petbattle] hide; show")

CoolLine:SetParent(hider)
The state driver method is more useful if you're already calling Hide and Show on your frame in other circumstances, since it means you don't have to complicate your logic with additional checks for pet battles, while the event method doesn't require creating an additional frame. They both give the same end result.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
Last edited by Phanx : 03-10-13 at 05:57 PM.
Report comment to moderator  
Reply With Quote
Unread 03-06-13, 02:37 PM  
Siannus
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 90
Uploads: 2
So, Im on my fire mage, why doesnt this addon keep track of Living Bomb?
Report comment to moderator  
Reply With Quote
Unread 03-03-13, 09:42 AM  
totalpackage
A Fallenroot Satyr
 
totalpackage's Avatar
AddOn Author - Click to view AddOns

Forum posts: 27
File comments: 940
Uploads: 10
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.
Report comment to moderator  
Reply With Quote
Unread 03-02-13, 10:08 PM  
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5617
File comments: 2321
Uploads: 54
Could we get an option (or just a feature; it doesn't really need an option) to hide CoolLine during pet battles?
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
Report comment to moderator  
Reply With Quote
Unread 12-22-12, 08:53 AM  
Greensleeper
A Defias Bandit

Forum posts: 2
File comments: 29
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.
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.
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: 8
File comments: 19
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
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: 27
File comments: 940
Uploads: 10
I thought monochrome was recently disabled in the game.

As always, the time scale will be static as is for performance reasons.
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.
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.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: