From 7829b35211f88ed4ffb5cae715d8722fe9afe1f6 Mon Sep 17 00:00:00 2001 From: LQ63 Date: Tue, 13 Jan 2026 14:24:50 +0100 Subject: [PATCH 1/2] feat(ui): Tie selection Added a minimal ui for the tie selection. Tie selection gets sent to the server via websocket and gets response from it. --- src/components/Ingame.vue | 17 ++++++ src/components/ingame/TieC.vue | 98 ++++++++++++++++++++++++++++++++++ src/views/Game.vue | 2 +- 3 files changed, 116 insertions(+), 1 deletion(-) create mode 100644 src/components/ingame/TieC.vue diff --git a/src/components/Ingame.vue b/src/components/Ingame.vue index 72fbdcc..93db660 100644 --- a/src/components/Ingame.vue +++ b/src/components/Ingame.vue @@ -10,6 +10,7 @@ import TurnC from "@/components/ingame/TurnC.vue"; import TrumpC from "@/components/ingame/TrumpC.vue"; import {storeToRefs} from "pinia"; import {ref, toRefs, watch} from "vue"; +import TieC from "@/components/ingame/TieC.vue"; const ig = useIngame() const { state } = toRefs(ig) @@ -45,6 +46,22 @@ watch( + + + +
+ +
+
+
diff --git a/src/components/ingame/TieC.vue b/src/components/ingame/TieC.vue new file mode 100644 index 0000000..873c33e --- /dev/null +++ b/src/components/ingame/TieC.vue @@ -0,0 +1,98 @@ + + + + + diff --git a/src/views/Game.vue b/src/views/Game.vue index 757562f..663301d 100644 --- a/src/views/Game.vue +++ b/src/views/Game.vue @@ -33,7 +33,7 @@ ui.requestState().then(() => { -- 2.52.0 From 5f30b9f7395decc40ef7a1107033147a2e702a55 Mon Sep 17 00:00:00 2001 From: LQ63 Date: Tue, 13 Jan 2026 14:40:00 +0100 Subject: [PATCH 2/2] fix(ui): Tie selection Added ! --- src/components/ingame/TieC.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ingame/TieC.vue b/src/components/ingame/TieC.vue index 873c33e..30e0858 100644 --- a/src/components/ingame/TieC.vue +++ b/src/components/ingame/TieC.vue @@ -21,7 +21,7 @@ function getCardImagePath(cardPath: string) { function selectTie(tieIndex: number) { wb.sendAndWait("PickTie", { cardIndex: tieIndex }).then( $q.notify({ - message: "You've successfully picked your tieCard", + message: "You've successfully picked your tieCard!", color: "positive", position: "top" }) -- 2.52.0