From 25da6600576005bde5cbe15e7e4a8c4443a086d1 Mon Sep 17 00:00:00 2001 From: Nilsen84 <56961087+Nilsen84@users.noreply.github.com> Date: Thu, 3 Aug 2023 00:05:41 +0200 Subject: [PATCH] new gui --- gui/inject/main-inject.cjs | 8 +- gui/src/App.svelte | 121 ++++++++++++------------------- gui/src/app.css | 12 --- gui/src/assets/circle-left.png | Bin 0 -> 8992 bytes gui/src/components/Module.svelte | 64 ---------------- gui/src/components/Switch.svelte | 23 ++---- gui/src/config.ts | 16 ++++ gui/src/pages/Modules.svelte | 107 +++++++++++++++++++++++++++ gui/src/pages/Settings.svelte | 40 ++++++++++ 9 files changed, 220 insertions(+), 171 deletions(-) create mode 100644 gui/src/assets/circle-left.png delete mode 100644 gui/src/components/Module.svelte create mode 100644 gui/src/config.ts create mode 100644 gui/src/pages/Modules.svelte create mode 100644 gui/src/pages/Settings.svelte diff --git a/gui/inject/main-inject.cjs b/gui/inject/main-inject.cjs index 30f063a..68a7208 100644 --- a/gui/inject/main-inject.cjs +++ b/gui/inject/main-inject.cjs @@ -67,8 +67,8 @@ module.exports = function() { parent: mainWin, modal: true, center: true, - width: 650, - height: 500, + width: 900, + height: 600, resizable: true, webPreferences: { nodeIntegration: true, @@ -88,10 +88,10 @@ module.exports = function() { let config = readConfigSync() event.returnValue = { - customJvm: config.jvmEnabled && config.customJvm && config.customJvmPath, + customJvm: config.customJvmEnabled && config.customJvm, jvmArgs: [ `-javaagent:${path.join(installDir, 'agent.jar')}=${configPath}`, - ...config.jvmEnabled ? parse(config.jvmArgs) : [] + ...config.jvmArgsEnabled ? parse(config.jvmArgs) : [] ], minecraftArgs: config.crackedEnabled && config.crackedUsername ? [ '--username', config.crackedUsername diff --git a/gui/src/App.svelte b/gui/src/App.svelte index 92100da..554d5ac 100644 --- a/gui/src/App.svelte +++ b/gui/src/App.svelte @@ -1,25 +1,24 @@ - Lunar Client Qt {__APP_VERSION__} + Lunar Client Qt v2.0.0 -
- -
- Lunar Client Qt {__APP_VERSION__.slice(1)} - - -
- - - - -
- Username: - -
-
- - - - - - -
- - Custom JVM - +
+
+
+ LCQT + +
- -
JVM Args
- -