From 8d9856d4a0e469aa9343188dd6c32528881d578f Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Tue, 13 Jan 2026 16:36:02 +0800 Subject: feat: add game console component for logging game output and toggle visibility --- ui/src/App.svelte | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) (limited to 'ui/src/App.svelte') diff --git a/ui/src/App.svelte b/ui/src/App.svelte index 0e14cb0..de5faec 100644 --- a/ui/src/App.svelte +++ b/ui/src/App.svelte @@ -2,8 +2,10 @@ import { invoke } from "@tauri-apps/api/core"; import { onMount } from "svelte"; import DownloadMonitor from "./lib/DownloadMonitor.svelte"; + import GameConsole from "./lib/GameConsole.svelte"; let status = "Ready"; + let showConsole = false; interface Version { id: string; @@ -149,20 +151,26 @@
-
e.key === 'Enter' && login()}> -
- {#if currentAccount} - {currentAccount.username} - {:else} - ? - {/if} -
-
-
{currentAccount ? currentAccount.username : "Click to Login"}
-
- {currentAccount ? 'Ready' : 'Guest'} +
+
e.key === 'Enter' && login()}> +
+ {#if currentAccount} + {currentAccount.username} + {:else} + ? + {/if} +
+
+
{currentAccount ? currentAccount.username : "Click to Login"}
+
+ {currentAccount ? 'Ready' : 'Guest'} +
+ +
@@ -197,4 +205,6 @@
{status}
{/if} + +
-- cgit v1.2.3-70-g09d2