From d3a79a55658f4ca10eb9c5e2d32cc47be2cbc1e0 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 14 Apr 2018 18:20:18 +0200 Subject: [PATCH] Improve notifications Signed-off-by: Knut Ahlers --- autocookieclicker.user.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/autocookieclicker.user.js b/autocookieclicker.user.js index 3994c74..9de5671 100644 --- a/autocookieclicker.user.js +++ b/autocookieclicker.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Automate CookieClicker // @namespace https://luzifer.io/ -// @version 0.9.0 +// @version 0.9.1 // @description Automate everything! // @author Knut Ahlers // @source https://github.com/Luzifer/automate-cookie-clicker @@ -79,7 +79,8 @@ function getMaxBuy() { } func note(msg, quick = true) { - Game.Note("Auto-CookieClicker", msg, undefined, quick); + // Icon: img/icons.png 0-based indices + Game.Note("Auto-CookieClicker", msg, [12, 0], quick); } function upgradeFilter(idx) { @@ -99,7 +100,9 @@ function upgradeFilter(idx) { // Enable automatic purchasing of upgrades / elements window.autoPurchase = window.setInterval(executeAutoActions, 500); - // Startup notification - let version = GM_info.script.version; - note('Version ' + version + ' loaded.'); + window.setTimeout(func() { + // Startup notification + let version = GM_info.script.version; + note('Version ' + version + ' loaded.'); + }, 1000); })();