[+] Ongeki settings on Web UI

pull/119/head
Azalea 2025-02-23 06:12:15 -05:00
parent 9745e65eed
commit 0133f85800
4 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,9 @@
<script>
import { fade } from "svelte/transition";
import { FADE_IN, FADE_OUT } from "../../libs/config";
import GameSettingFields from "./GameSettingFields.svelte";
</script>
<div out:fade={FADE_OUT} in:fade={FADE_IN}>
<GameSettingFields game="ongeki"/>
</div>

View File

@ -127,6 +127,7 @@ export const EN_REF_SETTINGS = {
'settings.tabs.game': 'Game', 'settings.tabs.game': 'Game',
'settings.tabs.chu3': 'Chuni', 'settings.tabs.chu3': 'Chuni',
'settings.tabs.mai2': 'Mai', 'settings.tabs.mai2': 'Mai',
'settings.tabs.ongeki': 'Ongeki',
'settings.tabs.wacca': 'Wacca', 'settings.tabs.wacca': 'Wacca',
'settings.fields.unlockMusic.name': 'Unlock All Music', 'settings.fields.unlockMusic.name': 'Unlock All Music',
'settings.fields.unlockMusic.desc': 'Unlock all music and master difficulty in game.', 'settings.fields.unlockMusic.desc': 'Unlock all music and master difficulty in game.',
@ -148,6 +149,8 @@ export const EN_REF_SETTINGS = {
'settings.fields.chusanMatchingReflector.desc': 'URL of the national matching server\'s UDP reflector.', 'settings.fields.chusanMatchingReflector.desc': 'URL of the national matching server\'s UDP reflector.',
'settings.fields.chusanMatchingServer.name': 'Matching Server', 'settings.fields.chusanMatchingServer.name': 'Matching Server',
'settings.fields.chusanMatchingServer.desc': 'URL of the national matching server.', 'settings.fields.chusanMatchingServer.desc': 'URL of the national matching server.',
'settings.fields.ongekiInfiniteKaika.name': 'Infinite Kaika',
'settings.fields.ongekiInfiniteKaika.desc': 'Set Kaika to 999',
'settings.fields.rounding.name': 'Score Rounding', 'settings.fields.rounding.name': 'Score Rounding',
'settings.fields.rounding.desc': 'Round the score to one decimal place', 'settings.fields.rounding.desc': 'Round the score to one decimal place',
'settings.fields.gameUsername.name': 'In-Game Username', 'settings.fields.gameUsername.name': 'In-Game Username',
@ -164,6 +167,7 @@ export const EN_REF_SETTINGS = {
'settings.profile.name': 'Display Name', 'settings.profile.name': 'Display Name',
'settings.profile.username': 'Username', 'settings.profile.username': 'Username',
'settings.profile.password': 'Password', 'settings.profile.password': 'Password',
'settings.profile.country': 'Country',
'settings.profile.location': 'Location', 'settings.profile.location': 'Location',
'settings.profile.bio': 'Bio', 'settings.profile.bio': 'Bio',
'settings.profile.unset': 'Unset', 'settings.profile.unset': 'Unset',

View File

@ -137,6 +137,7 @@ const zhSettings: typeof EN_REF_SETTINGS = {
'settings.tabs.game': '游戏设置', 'settings.tabs.game': '游戏设置',
'settings.tabs.chu3': '中二', 'settings.tabs.chu3': '中二',
'settings.tabs.mai2': '舞萌', 'settings.tabs.mai2': '舞萌',
'settings.tabs.ongeki': '音击',
'settings.tabs.wacca': '华卡', 'settings.tabs.wacca': '华卡',
'settings.fields.unlockMusic.name': '解锁谱面', 'settings.fields.unlockMusic.name': '解锁谱面',
'settings.fields.unlockMusic.desc': '在游戏中解锁所有曲目和大师难度谱面。', 'settings.fields.unlockMusic.desc': '在游戏中解锁所有曲目和大师难度谱面。',
@ -158,6 +159,8 @@ const zhSettings: typeof EN_REF_SETTINGS = {
'settings.fields.chusanMatchingReflector.desc': '全国对战服务器的 UDP 反射服务器的 URL', 'settings.fields.chusanMatchingReflector.desc': '全国对战服务器的 UDP 反射服务器的 URL',
'settings.fields.chusanMatchingServer.name': '全国对战服务器', 'settings.fields.chusanMatchingServer.name': '全国对战服务器',
'settings.fields.chusanMatchingServer.desc': '全国对战服务器的 URL', 'settings.fields.chusanMatchingServer.desc': '全国对战服务器的 URL',
'settings.fields.ongekiInfiniteKaika.name': '无限解花',
'settings.fields.ongekiInfiniteKaika.desc': '将解花数量设置为 999。',
'settings.fields.rounding.name': '分数舍入', 'settings.fields.rounding.name': '分数舍入',
'settings.fields.rounding.desc': '把分数四舍五入到一位小数', 'settings.fields.rounding.desc': '把分数四舍五入到一位小数',
'settings.fields.gameUsername.name': '游戏用户名', 'settings.fields.gameUsername.name': '游戏用户名',
@ -174,6 +177,7 @@ const zhSettings: typeof EN_REF_SETTINGS = {
'settings.profile.name': '昵称', 'settings.profile.name': '昵称',
'settings.profile.username': '用户名', 'settings.profile.username': '用户名',
'settings.profile.password': '密码', 'settings.profile.password': '密码',
'settings.profile.country': '国家',
'settings.profile.location': '位置', 'settings.profile.location': '位置',
'settings.profile.bio': '简介', 'settings.profile.bio': '简介',
'settings.profile.unset': '未设置', 'settings.profile.unset': '未设置',

View File

@ -14,6 +14,7 @@
import Mai2Settings from "../../components/settings/Mai2Settings.svelte"; import Mai2Settings from "../../components/settings/Mai2Settings.svelte";
import WaccaSettings from "../../components/settings/WaccaSettings.svelte"; import WaccaSettings from "../../components/settings/WaccaSettings.svelte";
import GeneralGameSettings from "../../components/settings/GeneralGameSettings.svelte"; import GeneralGameSettings from "../../components/settings/GeneralGameSettings.svelte";
import OngekiSettings from "../../components/settings/OngekiSettings.svelte";
USER.ensureLoggedIn() USER.ensureLoggedIn()
@ -27,6 +28,7 @@
[ 'displayName', t('settings.profile.name') ], [ 'displayName', t('settings.profile.name') ],
[ 'username', t('settings.profile.username') ], [ 'username', t('settings.profile.username') ],
[ 'password', t('settings.profile.password') ], [ 'password', t('settings.profile.password') ],
[ 'country', t('settings.profile.country') ],
[ 'profileLocation', t('settings.profile.location') ], [ 'profileLocation', t('settings.profile.location') ],
[ 'profileBio', t('settings.profile.bio') ], [ 'profileBio', t('settings.profile.bio') ],
] as const ] as const
@ -50,6 +52,9 @@
if (games.wacca && !tabs.includes('wacca')) { if (games.wacca && !tabs.includes('wacca')) {
tabs = [...tabs, 'wacca'] tabs = [...tabs, 'wacca']
} }
if (games.ongeki && !tabs.includes('ongeki')) {
tabs = [...tabs, 'ongeki']
}
}) })
}).catch(e => error = e.message) }).catch(e => error = e.message)
getMe() getMe()
@ -193,6 +198,8 @@
<Mai2Settings username={me.username} /> <Mai2Settings username={me.username} />
{:else if tabs[tab] === 'wacca'} {:else if tabs[tab] === 'wacca'}
<WaccaSettings /> <WaccaSettings />
{:else if tabs[tab] === 'ongeki'}
<OngekiSettings />
{:else if tabs[tab] === 'game'} {:else if tabs[tab] === 'game'}
<GeneralGameSettings /> <GeneralGameSettings />
{/if} {/if}