From 400cc5fe81278611abda4da3c12ba69cddb252a4 Mon Sep 17 00:00:00 2001 From: tobspr Date: Fri, 17 Jun 2022 14:20:01 +0200 Subject: [PATCH] Reduce unlock notification interval --- src/css/ingame_hud/unlock_notification.scss | 2 +- src/js/game/hud/parts/unlock_notification.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/css/ingame_hud/unlock_notification.scss b/src/css/ingame_hud/unlock_notification.scss index aad9f063..eeac3588 100644 --- a/src/css/ingame_hud/unlock_notification.scss +++ b/src/css/ingame_hud/unlock_notification.scss @@ -170,7 +170,7 @@ bottom: 0; background: rgba(0, 10, 20, 0.8); - @include InlineAnimation(5s linear) { + @include InlineAnimation(1.5s linear) { 0% { left: 0; } diff --git a/src/js/game/hud/parts/unlock_notification.js b/src/js/game/hud/parts/unlock_notification.js index 4a0af10b..d9dfcd55 100644 --- a/src/js/game/hud/parts/unlock_notification.js +++ b/src/js/game/hud/parts/unlock_notification.js @@ -110,7 +110,7 @@ export class HUDUnlockNotification extends BaseHUDPart { if (this.root.app.settings.getAllSettings().offerHints) { this.buttonShowTimeout = setTimeout( () => this.element.querySelector("button.close").classList.add("unlocked"), - G_IS_DEV ? 100 : 5000 + G_IS_DEV ? 100 : 1500 ); } else { this.element.querySelector("button.close").classList.add("unlocked");