Skip to content

Commit 39c5c81

Browse files
committed
Increase reveal effect duration to 10s
1 parent c562bb0 commit 39c5c81

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Code/client/Services/Generic/MagicService.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ void MagicService::StartRevealingOtherPlayers() noexcept
470470

471471
void MagicService::UpdateRevealOtherPlayersEffect(bool aForceTrigger) noexcept
472472
{
473-
constexpr auto cRevealDuration = 6s;
473+
constexpr auto cRevealDuration = 10s;
474474
constexpr auto cDelayBetweenUpdates = 2s;
475475

476476
// Effect's activation and lifecycle
@@ -480,7 +480,7 @@ void MagicService::UpdateRevealOtherPlayersEffect(bool aForceTrigger) noexcept
480480

481481
const bool shouldActivate = aForceTrigger || GetAsyncKeyState(VK_F4) & 0x01;
482482

483-
if (shouldActivate & 0x01 && !m_revealingOtherPlayers)
483+
if (shouldActivate && !m_revealingOtherPlayers)
484484
{
485485
m_revealingOtherPlayers = true;
486486
revealStartTimePoint = std::chrono::steady_clock::now();

Code/skyrim_ui/src/app/components/root/root.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
style="position: absolute; left: 0; top: 0;"
6262
class="text-cooldown-effect"
6363
[class.cooldown-active]="revealingInProgress$"
64-
[style.--cooldown-duration]="revealingInProgress$ ? '6s' : '0.3s'"
64+
[style.--cooldown-duration]="revealingInProgress$ ? '10s' : '0.3s'"
6565
>
6666
{{ 'COMPONENT.ROOT.REVEAL_PLAYERS' | transloco }}
6767
</span>

Code/skyrim_ui/src/app/components/root/root.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
}
146146

147147
.text-cooldown-effect {
148-
--cooldown-duration: 6s;
148+
--cooldown-duration: 10s;
149149
background: linear-gradient(
150150
to left,
151151
mod($-color-background, 0.3) 50%,

Code/skyrim_ui/src/app/components/root/root.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { controlsAnimation } from './controls.animation';
1919
import { notificationsAnimation } from './notifications.animation';
2020
import { map } from 'rxjs/operators';
2121

22-
const REVEAL_EFFECT_DURATION_MS = 6000 // todo: pass value from C++?
22+
const REVEAL_EFFECT_DURATION_MS = 10000 // todo: pass value from C++?
2323

2424
@Component({
2525
selector: 'app-root',

0 commit comments

Comments
 (0)