Merge branch 'borderless' into 'main'

borderless window setting

See merge request KRypt0n_/an-anime-game-launcher!35
This commit is contained in:
Observer KRypt0n_ 2022-02-04 15:20:54 +00:00
commit cb82b7a17d
13 changed files with 89 additions and 3 deletions

View file

@ -125,6 +125,13 @@ settings:
enhancements: enhancements:
title: Verbesserungen title: Verbesserungen
items: 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
hud: hud:
title: HUD title: HUD

View file

@ -125,6 +125,13 @@ settings:
enhancements: enhancements:
title: Enhancements title: Enhancements
items: 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
hud: hud:
title: HUD title: HUD

View file

@ -125,6 +125,13 @@ settings:
enhancements: enhancements:
title: Mejoras title: Mejoras
items: 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
hud: hud:
title: HUD title: HUD

View file

@ -127,6 +127,13 @@ settings:
enhancements: enhancements:
title: Améliorations title: Améliorations
items: 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
hud: hud:
title: Interface title: Interface

View file

@ -125,6 +125,13 @@ settings:
enhancements: enhancements:
title: Fejlesztések title: Fejlesztések
items: 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
hud: hud:
title: HUD title: HUD

View file

@ -124,6 +124,13 @@ settings:
enhancements: enhancements:
title: Peningkatan title: Peningkatan
items: 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
hud: hud:
title: HUD title: HUD

View file

@ -124,6 +124,13 @@ settings:
enhancements: enhancements:
title: Miglioramenti title: Miglioramenti
items: 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
hud: hud:
title: Interfaccia title: Interfaccia

View file

@ -125,6 +125,13 @@ settings:
enhancements: enhancements:
title: Forbedringer title: Forbedringer
items: 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
hud: hud:
title: HUD title: HUD

View file

@ -125,6 +125,13 @@ settings:
enhancements: enhancements:
title: Улучшения title: Улучшения
items: 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
hud: hud:
title: HUD title: HUD

View file

@ -125,6 +125,13 @@ settings:
enhancements: enhancements:
title: enhancements title: enhancements
items: 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
hud: hud:
title: h-hud title: h-hud

View file

@ -63,9 +63,19 @@ export default new Promise<void>(async (resolve) => {
* *
* Can be "system", "light" and "dark" * Can be "system", "light" and "dark"
* *
* @defaul "system" * @default "system"
*/ */
theme: '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 * HUD
@ -85,7 +95,7 @@ export default new Promise<void>(async (resolve) => {
* *
* Available options: none, esync, fsync * Available options: none, esync, fsync
* *
* @defaul "esync" * @default "esync"
*/ */
sync: 'esync', sync: 'esync',

View file

@ -302,6 +302,12 @@
<div class="settings-item" id="enhancements"> <div class="settings-item" id="enhancements">
<h1>{$_('settings.enhancements.title')}</h1> <h1>{$_('settings.enhancements.title')}</h1>
<Checkbox
lang="settings.enhancements.items.borderless_window.title"
tooltip="settings.enhancements.items.borderless_window.tooltip"
prop="borderless_window"
/>
<SelectionBox <SelectionBox
lang="settings.enhancements.items.hud.title" lang="settings.enhancements.items.hud.title"
prop="hud" prop="hud"

View file

@ -149,7 +149,7 @@ export default (launcher: Launcher): Promise<void> => {
const virtual_desktop = await Configs.get('wine.virtual_desktop') as object; 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 * Gamemode integration