From 7b5ac30cbe6bde8d9290e5a004be411382ac5786 Mon Sep 17 00:00:00 2001 From: Rattlehead15 Date: Fri, 4 Feb 2022 15:20:54 +0000 Subject: [PATCH] borderless window setting --- public/locales/de-de.yaml | 7 +++++++ public/locales/en-us.yaml | 7 +++++++ public/locales/es-es.yaml | 7 +++++++ public/locales/fr-fr.yaml | 7 +++++++ public/locales/hu-hu.yaml | 7 +++++++ public/locales/id-id.yaml | 7 +++++++ public/locales/it-it.yaml | 7 +++++++ public/locales/nb-no.yaml | 7 +++++++ public/locales/ru-ru.yaml | 7 +++++++ public/locales/uwu.yaml | 7 +++++++ src/defaultSettings.ts | 14 ++++++++++++-- src/settings.svelte | 6 ++++++ src/ts/launcher/states/Launch.ts | 2 +- 13 files changed, 89 insertions(+), 3 deletions(-) diff --git a/public/locales/de-de.yaml b/public/locales/de-de.yaml index 9777cbd..2c36143 100644 --- a/public/locales/de-de.yaml +++ b/public/locales/de-de.yaml @@ -125,6 +125,13 @@ settings: enhancements: title: Verbesserungen items: + + # Borderless Window + borderless_window: + title: Allow borderless window + tooltip: Removes the window borders when playing in windowed mode. + To play in a fullscreen borderless window, press alt+enter when playing on fullscreen. + # HUD hud: title: HUD diff --git a/public/locales/en-us.yaml b/public/locales/en-us.yaml index 068ee67..11f05f6 100644 --- a/public/locales/en-us.yaml +++ b/public/locales/en-us.yaml @@ -125,6 +125,13 @@ settings: enhancements: title: Enhancements items: + + # Borderless Window + borderless_window: + title: Allow borderless window + tooltip: Removes the window borders when playing in windowed mode. + To play in a fullscreen borderless window, press alt+enter when playing on fullscreen. + # HUD hud: title: HUD diff --git a/public/locales/es-es.yaml b/public/locales/es-es.yaml index 36d7cd7..9adb862 100644 --- a/public/locales/es-es.yaml +++ b/public/locales/es-es.yaml @@ -125,6 +125,13 @@ settings: enhancements: title: Mejoras items: + + # Ventana sin bordes + borderless_window: + title: Permitir ventana sin bordes + tooltip: Eliminar los bordes cuando se juega en modo ventana + Para jugar a pantalla completa sin bordes, debes presionar alt+enter cuando estés en pantalla completa + # HUD hud: title: HUD diff --git a/public/locales/fr-fr.yaml b/public/locales/fr-fr.yaml index 3dbdaae..1f4fa65 100644 --- a/public/locales/fr-fr.yaml +++ b/public/locales/fr-fr.yaml @@ -127,6 +127,13 @@ settings: enhancements: title: Améliorations items: + + # Borderless Window + borderless_window: + title: Allow borderless window + tooltip: Removes the window borders when playing in windowed mode. + To play in a fullscreen borderless window, press alt+enter when playing on fullscreen. + # HUD hud: title: Interface diff --git a/public/locales/hu-hu.yaml b/public/locales/hu-hu.yaml index 98ea1bd..233807d 100644 --- a/public/locales/hu-hu.yaml +++ b/public/locales/hu-hu.yaml @@ -125,6 +125,13 @@ settings: enhancements: title: Fejlesztések items: + + # Borderless Window + borderless_window: + title: Allow borderless window + tooltip: Removes the window borders when playing in windowed mode. + To play in a fullscreen borderless window, press alt+enter when playing on fullscreen. + # HUD hud: title: HUD diff --git a/public/locales/id-id.yaml b/public/locales/id-id.yaml index 798ad35..ea2f2fb 100644 --- a/public/locales/id-id.yaml +++ b/public/locales/id-id.yaml @@ -124,6 +124,13 @@ settings: enhancements: title: Peningkatan items: + + # Borderless Window + borderless_window: + title: Allow borderless window + tooltip: Removes the window borders when playing in windowed mode. + To play in a fullscreen borderless window, press alt+enter when playing on fullscreen. + # HUD hud: title: HUD diff --git a/public/locales/it-it.yaml b/public/locales/it-it.yaml index 1655569..00c7d9c 100644 --- a/public/locales/it-it.yaml +++ b/public/locales/it-it.yaml @@ -124,6 +124,13 @@ settings: enhancements: title: Miglioramenti items: + + # Borderless Window + borderless_window: + title: Allow borderless window + tooltip: Removes the window borders when playing in windowed mode. + To play in a fullscreen borderless window, press alt+enter when playing on fullscreen. + # HUD hud: title: Interfaccia diff --git a/public/locales/nb-no.yaml b/public/locales/nb-no.yaml index 90e8604..2a60186 100644 --- a/public/locales/nb-no.yaml +++ b/public/locales/nb-no.yaml @@ -125,6 +125,13 @@ settings: enhancements: title: Forbedringer items: + + # Borderless Window + borderless_window: + title: Allow borderless window + tooltip: Removes the window borders when playing in windowed mode. + To play in a fullscreen borderless window, press alt+enter when playing on fullscreen. + # HUD hud: title: HUD diff --git a/public/locales/ru-ru.yaml b/public/locales/ru-ru.yaml index a71a306..e10c34e 100644 --- a/public/locales/ru-ru.yaml +++ b/public/locales/ru-ru.yaml @@ -125,6 +125,13 @@ settings: enhancements: title: Улучшения items: + + # Borderless Window + borderless_window: + title: Allow borderless window + tooltip: Removes the window borders when playing in windowed mode. + To play in a fullscreen borderless window, press alt+enter when playing on fullscreen. + # HUD hud: title: HUD diff --git a/public/locales/uwu.yaml b/public/locales/uwu.yaml index 0b443f0..2f7cc14 100644 --- a/public/locales/uwu.yaml +++ b/public/locales/uwu.yaml @@ -125,6 +125,13 @@ settings: enhancements: title: enhancements items: + + # Borderless Window + borderless_window: + title: allow bowdewless window + tooltip: wemoves the window bowders when playing in windowed mode. + to play in a f-fullscween bowdewless window, press alt+entew when playing on fullscween ପ(๑•ᴗ•๑)ଓ. + # HUD hud: title: h-hud diff --git a/src/defaultSettings.ts b/src/defaultSettings.ts index 0193c8f..71ddc6c 100644 --- a/src/defaultSettings.ts +++ b/src/defaultSettings.ts @@ -63,9 +63,19 @@ export default new Promise(async (resolve) => { * * Can be "system", "light" and "dark" * - * @defaul "system" + * @default "system" */ theme: 'system', + + /** + * Allow Borderless Window + * + * Whether the game launches with the parameters "-screen-fullscreen 0 -popupwindow" + * This allows the game to be played in a borderless window by selecting fullscreen and pressing alt+enter + * + * @default false + */ + borderless_window: false, /** * HUD @@ -85,7 +95,7 @@ export default new Promise(async (resolve) => { * * Available options: none, esync, fsync * - * @defaul "esync" + * @default "esync" */ sync: 'esync', diff --git a/src/settings.svelte b/src/settings.svelte index bb46c70..49f72d2 100644 --- a/src/settings.svelte +++ b/src/settings.svelte @@ -302,6 +302,12 @@

{$_('settings.enhancements.title')}

+ + => { const virtual_desktop = await Configs.get('wine.virtual_desktop') as object; - let command = `"${path.addSlashes(wineExeutable)}" ${virtual_desktop['enabled'] ? `explorer /desktop=animegame,${virtual_desktop['width']}x${virtual_desktop['height']}` : ''} ${await Configs.get('fps_unlocker') ? 'unlockfps.bat' : 'launcher.bat'}`; + let command = `"${path.addSlashes(wineExeutable)}" ${virtual_desktop['enabled'] ? `explorer /desktop=animegame,${virtual_desktop['width']}x${virtual_desktop['height']}` : ''} ${await Configs.get('fps_unlocker') ? 'unlockfps.bat' : 'launcher.bat'} ${await Configs.get('borderless_window') ? '-screen-fullscreen 0 -popupwindow' : ''}`; /** * Gamemode integration