mirror of
https://github.com/Luzifer/automate-cookie-clicker.git
synced 2024-11-09 14:30:08 +00:00
Improve notifications
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
bd685287da
commit
d3a79a5565
1 changed files with 8 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Automate CookieClicker
|
// @name Automate CookieClicker
|
||||||
// @namespace https://luzifer.io/
|
// @namespace https://luzifer.io/
|
||||||
// @version 0.9.0
|
// @version 0.9.1
|
||||||
// @description Automate everything!
|
// @description Automate everything!
|
||||||
// @author Knut Ahlers <knut@ahlers.me>
|
// @author Knut Ahlers <knut@ahlers.me>
|
||||||
// @source https://github.com/Luzifer/automate-cookie-clicker
|
// @source https://github.com/Luzifer/automate-cookie-clicker
|
||||||
|
@ -79,7 +79,8 @@ function getMaxBuy() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func note(msg, quick = true) {
|
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) {
|
function upgradeFilter(idx) {
|
||||||
|
@ -99,7 +100,9 @@ function upgradeFilter(idx) {
|
||||||
// Enable automatic purchasing of upgrades / elements
|
// Enable automatic purchasing of upgrades / elements
|
||||||
window.autoPurchase = window.setInterval(executeAutoActions, 500);
|
window.autoPurchase = window.setInterval(executeAutoActions, 500);
|
||||||
|
|
||||||
// Startup notification
|
window.setTimeout(func() {
|
||||||
let version = GM_info.script.version;
|
// Startup notification
|
||||||
note('Version ' + version + ' loaded.');
|
let version = GM_info.script.version;
|
||||||
|
note('Version ' + version + ' loaded.');
|
||||||
|
}, 1000);
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Reference in a new issue