From cceaa5635f1d09778d79a075c56bcab6efe00278 Mon Sep 17 00:00:00 2001 From: Branden J Brown Date: Tue, 30 Jan 2024 21:50:41 -0600 Subject: [PATCH] disable item buttons you can't use --- site/src/components/Game.vue | 4 ++-- site/src/components/Player.vue | 16 +++++++++++++--- site/src/components/PlayerItems.vue | 7 ++++--- 3 files changed, 19 insertions(+), 8 deletions(-) diff --git a/site/src/components/Game.vue b/site/src/components/Game.vue index c3beb43..fb55c90 100644 --- a/site/src/components/Game.vue +++ b/site/src/components/Game.vue @@ -10,12 +10,12 @@ - + - + diff --git a/site/src/components/Player.vue b/site/src/components/Player.vue index 3444c9d..a7e55ad 100644 --- a/site/src/components/Player.vue +++ b/site/src/components/Player.vue @@ -6,7 +6,7 @@ - + @@ -17,8 +17,18 @@ import { computed } from 'vue'; import { Player } from '@/lib/game'; export interface Props { - stats: Player - dealer: boolean + /** + * The status of the player to show. + */ + stats: Player; + /** + * Whether this is the dealer's side, for alignment. + */ + dealer: boolean; + /** + * Whether the controls are disabled. + */ + disabled: boolean; } const props = defineProps(); diff --git a/site/src/components/PlayerItems.vue b/site/src/components/PlayerItems.vue index 970d795..cd07e29 100644 --- a/site/src/components/PlayerItems.vue +++ b/site/src/components/PlayerItems.vue @@ -2,7 +2,7 @@ - + {{ props.items[itemIndex(r, c)] }} @@ -13,6 +13,7 @@