From 34a48ed6a9cd60a9837a9a3a47c318ccc105f9f6 Mon Sep 17 00:00:00 2001 From: Observer KRypt0n_ Date: Tue, 4 Jan 2022 18:26:36 +0200 Subject: [PATCH] 2.0.0 beta 4 - added Discord RPC feature - fixed `Cache.get()` hot cache debug output --- public/locales/de-de.yaml | 4 ++ public/locales/en-us.yaml | 4 ++ public/locales/ru-ru.yaml | 4 ++ src/defaultSettings.ts | 36 +++++++++++++++-- src/index.svelte | 67 ++++++++++++++++++++------------ src/pages/index.ts | 33 ---------------- src/ts/Launcher.ts | 45 ++++++++++++++++++++- src/ts/core/Cache.ts | 2 +- src/ts/core/DiscordRPC.ts | 5 +-- src/ts/launcher/states/Launch.ts | 8 +++- src/ts/neutralino/Process.ts | 2 +- 11 files changed, 143 insertions(+), 67 deletions(-) diff --git a/public/locales/de-de.yaml b/public/locales/de-de.yaml index 050c4fa..5a81487 100644 --- a/public/locales/de-de.yaml +++ b/public/locales/de-de.yaml @@ -6,6 +6,10 @@ splash: - Paimon am ärgern... - Versuche Yae zu ziehen... +# Launcher window +launcher: + predownload: Pre-download the game + # Einstellungs Fenster settings: # General diff --git a/public/locales/en-us.yaml b/public/locales/en-us.yaml index 78548b3..5348bf6 100644 --- a/public/locales/en-us.yaml +++ b/public/locales/en-us.yaml @@ -6,6 +6,10 @@ splash: - Bullying Paimon... - Pulling for Yae... +# Launcher window +launcher: + predownload: Pre-download the game + # Settings window settings: # General diff --git a/public/locales/ru-ru.yaml b/public/locales/ru-ru.yaml index 9a9c4bb..b385c86 100644 --- a/public/locales/ru-ru.yaml +++ b/public/locales/ru-ru.yaml @@ -6,6 +6,10 @@ splash: - Издеваемся над Паймон... - Пытаемся получить Яэ... +# Окна лаунчера +launcher: + predownload: Предзагрузить обновление + # Окно настроек settings: # Основное diff --git a/src/defaultSettings.ts b/src/defaultSettings.ts index b373a51..a1ef5b3 100644 --- a/src/defaultSettings.ts +++ b/src/defaultSettings.ts @@ -77,9 +77,39 @@ promisify(async () => { */ enabled: false, - // todo - texts: { - idk: true + /** + * RPC settings + */ + fields: { + /** + * Launcher title + */ + title: 'An Anime Game Launcher', + + /** + * Small messages after title + */ + state: { + /** + * Message showed when you're in game + */ + 'in-launcher': 'Playing the game', + + /** + * Message showed when you're in launcher + */ + 'in-game': 'Preparing to launch' + }, + + /** + * RPC icon name + */ + icon: 'launcher', + + /** + * Should it display amount of spent time or not + */ + timer: true } }, diff --git a/src/index.svelte b/src/index.svelte index 5365342..91dfed8 100644 --- a/src/index.svelte +++ b/src/index.svelte @@ -4,6 +4,7 @@