From 466c1c387d38bc29adc85825b4a50f654e77b448 Mon Sep 17 00:00:00 2001 From: Jonas Date: Sun, 8 Mar 2026 20:33:21 +0100 Subject: [PATCH] Add game join UI and OnlineGame scaffold Rename JoinMenu to GameJoinMenu and add a JoinGameObject model + OTP input for entering a 6-digit game code. Introduce a new JoinGameObject interface file. Update OnlineMode.vue to import and render GameJoinMenu and GameEndedMenu, add refs for joiningModel, game, gameField, currentSelectionIndex and gameEndedInformation, wire create/ join handlers (stubbed) and the main game view (Field and InfoField). Refactor LocalGame to OnlineGame, export it as default and add a stubbed drop method; adjust import path formatting. Several functions remain as stubs to be implemented in follow-up commits. --- .../{JoinMenu.vue => GameJoinMenu.vue} | 18 +++++++- GUI/src/routes/OnlineMode.vue | 42 ++++++++++++++++++- GUI/src/scripts/interfaces/JoinGameObject.ts | 4 ++ .../scripts/logic/onlineMode/OnlineGame.ts | 12 ++++-- 4 files changed, 70 insertions(+), 6 deletions(-) rename GUI/src/components/{JoinMenu.vue => GameJoinMenu.vue} (61%) create mode 100644 GUI/src/scripts/interfaces/JoinGameObject.ts diff --git a/GUI/src/components/JoinMenu.vue b/GUI/src/components/GameJoinMenu.vue similarity index 61% rename from GUI/src/components/JoinMenu.vue rename to GUI/src/components/GameJoinMenu.vue index 3183fcb..252b18d 100644 --- a/GUI/src/components/JoinMenu.vue +++ b/GUI/src/components/GameJoinMenu.vue @@ -1,5 +1,11 @@