From 4b43e66140220ef4a33b858346fc820968dbb34d Mon Sep 17 00:00:00 2001 From: LQ63 Date: Tue, 16 Dec 2025 15:22:41 +0100 Subject: [PATCH] feat(ui): FRO-33 Trumpsuit Component Added working animations and a blur effect which blurrs all the gamestuff behind it --- src/components/Ingame.vue | 55 ++++++++++++++++++++++++++------ src/components/ingame/TrumpC.vue | 7 ++-- 2 files changed, 49 insertions(+), 13 deletions(-) diff --git a/src/components/Ingame.vue b/src/components/Ingame.vue index 9d85ee3..72fbdcc 100644 --- a/src/components/Ingame.vue +++ b/src/components/Ingame.vue @@ -9,10 +9,22 @@ import ScoreboardC from "@/components/ingame/ScoreboardC.vue"; import TurnC from "@/components/ingame/TurnC.vue"; import TrumpC from "@/components/ingame/TrumpC.vue"; import {storeToRefs} from "pinia"; -import {toRefs} from "vue"; +import {ref, toRefs, watch} from "vue"; const ig = useIngame() const { state } = toRefs(ig) + +const cachedGameInfo = ref(null) + +watch( + () => ig.data, + (newData) => { + if (state.value === 'InGame' && newData) { + cachedGameInfo.value = newData as GameInfo + } + }, + { deep: true, immediate: true } +)