From 914512435d37d9f1e1ea4c045afd4ec5612b7534 Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Sun, 30 Jul 2023 02:45:36 +0100 Subject: Replace movement controllers --- code/ui/overlay/DeathOverlay.razor | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) (limited to 'code/ui/overlay') diff --git a/code/ui/overlay/DeathOverlay.razor b/code/ui/overlay/DeathOverlay.razor index 15848f6..23c3a17 100644 --- a/code/ui/overlay/DeathOverlay.razor +++ b/code/ui/overlay/DeathOverlay.razor @@ -10,6 +10,11 @@ 0% { opacity: 0; } 100% { opacity: 1; } } +@@keyframes blurIn +{ + 0% { opacity: 0; } + 100% { opacity: 1; } +} deathoverlay { } .overlay { @@ -18,11 +23,22 @@ deathoverlay { top: 0; width: 100vw; height: 100vh; - - background-color: rgba(80, 1, 1, 0.90); - backdrop-filter-blur: 64px; +} +.fade { + opacity: 0; + background-color: rgb(0, 0, 0); animation-name: fadeIn; - animation-duration: 2.5s; + animation-duration: 0.5s; + animation-delay: 1.5s; + animation-iteration-count: 1; + animation-timing-function: ease-in; + animation-fill-mode: forwards; +} +.blur { + opacity: 0; + backdrop-filter-blur: 32px; + animation-name: fadeIn; + animation-duration: 1.5s; animation-iteration-count: 1; animation-timing-function: ease-in; animation-fill-mode: forwards; @@ -56,7 +72,9 @@ deathoverlay { @if (ShowOverlay) { -
+
+
+
@@ -78,11 +96,6 @@ deathoverlay { protected override int BuildHash() { - var clientPawn = Game.LocalPawn; - if (clientPawn is Player player) - { - ShowOverlay = player.LifeState == LifeState.Dead && player.Spectator == null; - } return ShowOverlay.GetHashCode(); } -- cgit v1.2.3-70-g09d2