diff --git a/src/dashboard/example/components/ScoreboardPanel.vue b/src/dashboard/example/components/ScoreboardPanel.vue index ebf0e56..cc4cba1 100644 --- a/src/dashboard/example/components/ScoreboardPanel.vue +++ b/src/dashboard/example/components/ScoreboardPanel.vue @@ -52,6 +52,9 @@ const rightCharacterImage = computed(() => { return match?.image ?? ''; }); +const leftPanelImage = computed(() => leftCharacterImage.value); +const rightPanelImage = computed(() => rightCharacterImage.value); + const normalizeName = (value: string) => value.trim().toLowerCase(); @@ -386,6 +389,14 @@ const onRightSelect = (playerId: string) => { applyRightPlayerData(playerId); }; +const adjustLeftScore = (delta: number) => { + scoreboardStore.leftScore = Math.max(0, scoreboardStore.leftScore + delta); +}; + +const adjustRightScore = (delta: number) => { + scoreboardStore.rightScore = Math.max(0, scoreboardStore.rightScore + delta); +}; + const createPlayerId = (name: string) => { const base = name .trim() @@ -630,6 +641,162 @@ watch( + +
+
+ +
+ Left image +
+
+
+ + + +
+
+ +
+
+ + {{ scoreboardStore.scoreboard.leftScore }} + +
+ + - + +
+ + {{ scoreboardStore.scoreboard.rightScore }} + +
+
+ +
+
+ +
+ Right image +
+
+
+ + + +
+
+
+