From 9489151bc1bc7e96456d86206cd6f667a8cbb704 Mon Sep 17 00:00:00 2001
From: Azalea <22280294+hykilpikonna@users.noreply.github.com>
Date: Fri, 3 Jan 2025 16:33:38 -0500
Subject: [PATCH] [+] UI Matching settings
---
.../settings/ChuniMatchingSettings.svelte | 112 ++++++++++++++++++
.../components/settings/ChuniSettings.svelte | 21 ++--
2 files changed, 124 insertions(+), 9 deletions(-)
create mode 100644 AquaNet/src/components/settings/ChuniMatchingSettings.svelte
diff --git a/AquaNet/src/components/settings/ChuniMatchingSettings.svelte b/AquaNet/src/components/settings/ChuniMatchingSettings.svelte
new file mode 100644
index 00000000..343ae76f
--- /dev/null
+++ b/AquaNet/src/components/settings/ChuniMatchingSettings.svelte
@@ -0,0 +1,112 @@
+
+
+
+
{t("userbox.header.matching")}
+
{t("settings.cabNotice")}
+
+
+
+
+
+
+
+
+
{t('userbox.header.matching')}
+
Choose the matching server you want to use.
+
+
+
+ {#each CHU3_MATCHINGS as option}
+
+
{option.name}
+
+
+
+
+
+
Collaborators
+
+ {#each option.coop as coop}
+ {coop}
+ {/each}
+
+
+
+ {/each}
+
+
+
+
Custom
+
Enter your own URL
+
+
+
+
+
+ {#if custom}
+
+ {/if}
+
+
+
diff --git a/AquaNet/src/components/settings/ChuniSettings.svelte b/AquaNet/src/components/settings/ChuniSettings.svelte
index 2a5f2c33..b57a0c8b 100644
--- a/AquaNet/src/components/settings/ChuniSettings.svelte
+++ b/AquaNet/src/components/settings/ChuniSettings.svelte
@@ -23,6 +23,7 @@
import useLocalStorage from "../../libs/hooks/useLocalStorage.svelte";
import { DDS } from "../../libs/userbox/dds";
+ import ChuniMatchingSettings from "./ChuniMatchingSettings.svelte";
let user: AquaNetUser
let [loading, error, submitting, preview] = [true, "", "", ""]
@@ -91,7 +92,7 @@
user = u
return fetchData()
}).catch((e) => { loading = false; error = e.message });
-
+
let DDSreader: DDS | undefined;
let USERBOX_PROGRESS = 0;
@@ -155,10 +156,10 @@
{:else}
- userboxSelected = "nameplateId"} chuniCharacter={userbox.characterId} chuniLevel={userbox.level} chuniRating={userbox.playerRating / 100}
+ userboxSelected = "nameplateId"} chuniCharacter={userbox.characterId} chuniLevel={userbox.level} chuniRating={userbox.playerRating / 100}
chuniNameplate={userbox.nameplateId} chuniName={userbox.userName} chuniTrophyName={allItems.trophy[userbox.trophyId].name}>
-
@@ -224,7 +225,7 @@
- {/if}
+ {/if}
{#if !USERBOX_SUPPORT || !USERBOX_INSTALLED || !USERBOX_ENABLED.value}
{t("userbox.header.preview")}
{t("userbox.preview.notice")}
@@ -241,9 +242,11 @@
{/if}
{/if}
{/if}
+
+
{/if}
-
+
{#if USERBOX_SETUP_RUN && !error}
@@ -282,7 +285,7 @@ p.notice
opacity: 0.6
margin-top: 0
-.progress
+.progress
width: 100%
height: 10px
box-shadow: 0 0 1px 1px vars.$ov-lighter
@@ -415,10 +418,10 @@ p.notice
&.focused
filter: brightness(75%)
-.chuni-userbox
+.chuni-userbox
width: calc(100% - 20px)
height: 350px
-
+
display: flex
flex-direction: row
flex-wrap: wrap