From cea956e196a1c954e7bba9487acdad46106e7424 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Sat, 23 Mar 2024 16:36:47 -0400 Subject: [PATCH] Don't show wave on weekly scoreboard --- src/ui/daily-run-scoreboard.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/ui/daily-run-scoreboard.ts b/src/ui/daily-run-scoreboard.ts index 9151a76f0..0a210827a 100644 --- a/src/ui/daily-run-scoreboard.ts +++ b/src/ui/daily-run-scoreboard.ts @@ -116,8 +116,15 @@ export class DailyRunScoreboard extends Phaser.GameObjects.Container { const scoreLabel = addTextObject(this.scene, 84, 0, score, TextStyle.WINDOW, { fontSize: '54px' }); entryContainer.add(scoreLabel); - const waveLabel = addTextObject(this.scene, 68, 0, wave, TextStyle.WINDOW, { fontSize: '54px' }); - entryContainer.add(waveLabel); + switch (this.category) { + case ScoreboardCategory.DAILY: + const waveLabel = addTextObject(this.scene, 68, 0, wave, TextStyle.WINDOW, { fontSize: '54px' }); + entryContainer.add(waveLabel); + break; + case ScoreboardCategory.WEEKLY: + scoreLabel.x -= 16; + break; + } return entryContainer; };