FIX : Allow actions on discard

This commit is contained in:
2024-05-07 17:25:46 +02:00
parent 62c00cba93
commit 38b992b7a5
6 changed files with 81 additions and 30 deletions
+4 -1
View File
@@ -3,6 +3,8 @@ import goStore from '~/netcode';
import type { Player } from '~/netcode/Player';
const current_players = computed<Array<Player>>(() => Array.from(goStore.players.values()).filter(p => p.team === goStore.game?.current_turn))
const discard_unwrapped = ref<boolean>(false)
</script>
<template>
@@ -15,7 +17,8 @@ const current_players = computed<Array<Player>>(() => Array.from(goStore.players
</PlayerListElement>
</div>
<div id="current_player">
<PlayerSlot v-for="p in current_players" :player="p"></PlayerSlot>
<input type="checkbox" v-model="discard_unwrapped">
<PlayerSlot v-for="p in current_players" :player="p" :discard_unwrapped="discard_unwrapped"></PlayerSlot>
</div>
<SelfView></SelfView>
</div>