From 044e24baafd118d8ddf131e37a04ef5e3e3fcea2 Mon Sep 17 00:00:00 2001 From: Eamonn Rea Date: Sun, 26 May 2024 01:54:55 +0100 Subject: [PATCH] Vortex: Add Global Menu Option for Vortex Scale Factor (#1113) --- lang/chinese.txt | 2 ++ lang/dutch.txt | 2 ++ lang/english.txt | 4 ++-- lang/englishUK.txt | 2 ++ lang/french.txt | 2 ++ lang/german.txt | 2 ++ lang/italian.txt | 2 ++ lang/polish.txt | 2 ++ lang/russian.txt | 2 ++ steamtinkerlaunch | 8 ++++++-- 10 files changed, 24 insertions(+), 4 deletions(-) diff --git a/lang/chinese.txt b/lang/chinese.txt index 4ff5bb9b..e0eab5b1 100644 --- a/lang/chinese.txt +++ b/lang/chinese.txt @@ -1282,3 +1282,5 @@ GUI_GSMOUSESENSITIVITY="Mouse Sensitivity" DESC_GSMOUSESENSITIVITY="configurable mouse sensitivity, multiply mouse movement by specified decimal number amount" GUI_IGNORECOMPATSLR="Ignore Native Linux Steam Linux Runtime from Compatibility Tool" DESC_IGNORECOMPATSLR="ignore Steam Linux Runtime for native games selected either by you or by Valve Testing as a Compatibility Tool and let SteamTinkerLaunch find it instead. For example, ignore Steam Linux Runtime 3.0 selected by Valve Testing and let SteamTinkerLaunch find and use Steam Linux Runtime 1.0 instead. This can have MAJOR impacts on compatibility, and has NO EFFECT for games using Proton" +GUI_VORTEXDEVICESCALEFACTOR="Vortex GUI Scale Factor" +DESC_VORTEXDEVICESCALEFACTOR="uses the --device-scale-factor flag to set the Vortex GUI scale. Defaults to 1.0, but if you want a larger GUI you can set it to match your display's scale factor (or the largest scale factor, if using multiple across displays)" diff --git a/lang/dutch.txt b/lang/dutch.txt index 9ad0b3e7..e80601cd 100644 --- a/lang/dutch.txt +++ b/lang/dutch.txt @@ -1279,3 +1279,5 @@ GUI_GSMOUSESENSITIVITY="Mouse Sensitivity" DESC_GSMOUSESENSITIVITY="configurable mouse sensitivity, multiply mouse movement by specified decimal number amount" GUI_IGNORECOMPATSLR="Ignore Native Linux Steam Linux Runtime from Compatibility Tool" DESC_IGNORECOMPATSLR="ignore Steam Linux Runtime for native games selected either by you or by Valve Testing as a Compatibility Tool and let SteamTinkerLaunch find it instead. For example, ignore Steam Linux Runtime 3.0 selected by Valve Testing and let SteamTinkerLaunch find and use Steam Linux Runtime 1.0 instead. This can have MAJOR impacts on compatibility, and has NO EFFECT for games using Proton" +GUI_VORTEXDEVICESCALEFACTOR="Vortex GUI Scale Factor" +DESC_VORTEXDEVICESCALEFACTOR="uses the --device-scale-factor flag to set the Vortex GUI scale. Defaults to 1.0, but if you want a larger GUI you can set it to match your display's scale factor (or the largest scale factor, if using multiple across displays)" diff --git a/lang/english.txt b/lang/english.txt index 04e1335d..85e6abe1 100644 --- a/lang/english.txt +++ b/lang/english.txt @@ -1281,5 +1281,5 @@ GUI_GSMOUSESENSITIVITY="Mouse Sensitivity" DESC_GSMOUSESENSITIVITY="configurable mouse sensitivity, multiply mouse movement by specified decimal number amount" GUI_IGNORECOMPATSLR="Ignore Native Linux Steam Linux Runtime from Compatibility Tool" DESC_IGNORECOMPATSLR="ignore Steam Linux Runtime for native games selected either by you or by Valve Testing as a Compatibility Tool and let SteamTinkerLaunch find it instead. For example, ignore Steam Linux Runtime 3.0 selected by Valve Testing and let SteamTinkerLaunch find and use Steam Linux Runtime 1.0 instead. This can have MAJOR impacts on compatibility, and has NO EFFECT for games using Proton" -GUI_IGNORECOMPATSLR="Ignore Native Linux Steam Linux Runtime from Compatibility Tool" -DESC_IGNORECOMPATSLR="ignore Steam Linux Runtime for native games selected either by you or by Valve Testing as a Compatibility Tool and let SteamTinkerLaunch find it instead. For example, ignore Steam Linux Runtime 3.0 selected by Valve Testing and let SteamTinkerLaunch find and use Steam Linux Runtime 1.0 instead. This can have MAJOR impacts on compatibility, and has NO EFFECT for games using Proton" +GUI_VORTEXDEVICESCALEFACTOR="Vortex GUI Scale Factor" +DESC_VORTEXDEVICESCALEFACTOR="uses the --device-scale-factor flag to set the Vortex GUI scale. Defaults to 1.0, but if you want a larger GUI you can set it to match your display's scale factor (or the largest scale factor, if using multiple across displays)" diff --git a/lang/englishUK.txt b/lang/englishUK.txt index 56e08812..093bb0b1 100644 --- a/lang/englishUK.txt +++ b/lang/englishUK.txt @@ -1283,3 +1283,5 @@ GUI_IGNORECOMPATSLR="Ignore Native Linux Steam Linux Runtime from Compatibility DESC_IGNORECOMPATSLR="ignore Steam Linux Runtime for native games selected either by you or by Valve Testing as a Compatibility Tool and let SteamTinkerLaunch find it instead. For example, ignore Steam Linux Runtime 3.0 selected by Valve Testing and let SteamTinkerLaunch find and use Steam Linux Runtime 1.0 instead. This can have MAJOR impacts on compatibility, and has NO EFFECT for games using Proton" GUI_IGNORECOMPATSLR="Ignore Native Linux Steam Linux Runtime from Compatibility Tool" DESC_IGNORECOMPATSLR="ignore Steam Linux Runtime for native games selected either by you or by Valve Testing as a Compatibility Tool and let SteamTinkerLaunch find it instead. For example, ignore Steam Linux Runtime 3.0 selected by Valve Testing and let SteamTinkerLaunch find and use Steam Linux Runtime 1.0 instead. This can have MAJOR impacts on compatibility, and has NO EFFECT for games using Proton" +GUI_VORTEXDEVICESCALEFACTOR="Vortex GUI Scale Factor" +DESC_VORTEXDEVICESCALEFACTOR="uses the --device-scale-factor flag to set the Vortex GUI scale. Defaults to 1.0, but if you want a larger GUI you can set it to match your display's scale factor (or the largest scale factor, if using multiple across displays)" diff --git a/lang/french.txt b/lang/french.txt index a544a327..b7a8c08d 100644 --- a/lang/french.txt +++ b/lang/french.txt @@ -1280,3 +1280,5 @@ GUI_GSMOUSESENSITIVITY="Mouse Sensitivity" DESC_GSMOUSESENSITIVITY="configurable mouse sensitivity, multiply mouse movement by specified decimal number amount" GUI_IGNORECOMPATSLR="Ignore Native Linux Steam Linux Runtime from Compatibility Tool" DESC_IGNORECOMPATSLR="ignore Steam Linux Runtime for native games selected either by you or by Valve Testing as a Compatibility Tool and let SteamTinkerLaunch find it instead. For example, ignore Steam Linux Runtime 3.0 selected by Valve Testing and let SteamTinkerLaunch find and use Steam Linux Runtime 1.0 instead. This can have MAJOR impacts on compatibility, and has NO EFFECT for games using Proton" +GUI_VORTEXDEVICESCALEFACTOR="Vortex GUI Scale Factor" +DESC_VORTEXDEVICESCALEFACTOR="uses the --device-scale-factor flag to set the Vortex GUI scale. Defaults to 1.0, but if you want a larger GUI you can set it to match your display's scale factor (or the largest scale factor, if using multiple across displays)" diff --git a/lang/german.txt b/lang/german.txt index 6b6322cf..a1853d40 100644 --- a/lang/german.txt +++ b/lang/german.txt @@ -1283,3 +1283,5 @@ GUI_GSMOUSESENSITIVITY="Mouse Sensitivity" DESC_GSMOUSESENSITIVITY="configurable mouse sensitivity, multiply mouse movement by specified decimal number amount" GUI_IGNORECOMPATSLR="Ignore Native Linux Steam Linux Runtime from Compatibility Tool" DESC_IGNORECOMPATSLR="ignore Steam Linux Runtime for native games selected either by you or by Valve Testing as a Compatibility Tool and let SteamTinkerLaunch find it instead. For example, ignore Steam Linux Runtime 3.0 selected by Valve Testing and let SteamTinkerLaunch find and use Steam Linux Runtime 1.0 instead. This can have MAJOR impacts on compatibility, and has NO EFFECT for games using Proton" +GUI_VORTEXDEVICESCALEFACTOR="Vortex GUI Scale Factor" +DESC_VORTEXDEVICESCALEFACTOR="uses the --device-scale-factor flag to set the Vortex GUI scale. Defaults to 1.0, but if you want a larger GUI you can set it to match your display's scale factor (or the largest scale factor, if using multiple across displays)" diff --git a/lang/italian.txt b/lang/italian.txt index 00edb197..e43aa7b2 100644 --- a/lang/italian.txt +++ b/lang/italian.txt @@ -1281,3 +1281,5 @@ GUI_GSMOUSESENSITIVITY="Mouse Sensitivity" DESC_GSMOUSESENSITIVITY="configurable mouse sensitivity, multiply mouse movement by specified decimal number amount" GUI_IGNORECOMPATSLR="Ignore Native Linux Steam Linux Runtime from Compatibility Tool" DESC_IGNORECOMPATSLR="ignore Steam Linux Runtime for native games selected either by you or by Valve Testing as a Compatibility Tool and let SteamTinkerLaunch find it instead. For example, ignore Steam Linux Runtime 3.0 selected by Valve Testing and let SteamTinkerLaunch find and use Steam Linux Runtime 1.0 instead. This can have MAJOR impacts on compatibility, and has NO EFFECT for games using Proton" +GUI_VORTEXDEVICESCALEFACTOR="Vortex GUI Scale Factor" +DESC_VORTEXDEVICESCALEFACTOR="uses the --device-scale-factor flag to set the Vortex GUI scale. Defaults to 1.0, but if you want a larger GUI you can set it to match your display's scale factor (or the largest scale factor, if using multiple across displays)" diff --git a/lang/polish.txt b/lang/polish.txt index 418f5c4f..1391614a 100644 --- a/lang/polish.txt +++ b/lang/polish.txt @@ -1281,3 +1281,5 @@ GUI_GSMOUSESENSITIVITY="Mouse Sensitivity" DESC_GSMOUSESENSITIVITY="configurable mouse sensitivity, multiply mouse movement by specified decimal number amount" GUI_IGNORECOMPATSLR="Ignore Native Linux Steam Linux Runtime from Compatibility Tool" DESC_IGNORECOMPATSLR="ignore Steam Linux Runtime for native games selected either by you or by Valve Testing as a Compatibility Tool and let SteamTinkerLaunch find it instead. For example, ignore Steam Linux Runtime 3.0 selected by Valve Testing and let SteamTinkerLaunch find and use Steam Linux Runtime 1.0 instead. This can have MAJOR impacts on compatibility, and has NO EFFECT for games using Proton" +GUI_VORTEXDEVICESCALEFACTOR="Vortex GUI Scale Factor" +DESC_VORTEXDEVICESCALEFACTOR="uses the --device-scale-factor flag to set the Vortex GUI scale. Defaults to 1.0, but if you want a larger GUI you can set it to match your display's scale factor (or the largest scale factor, if using multiple across displays)" diff --git a/lang/russian.txt b/lang/russian.txt index e04094db..a37f7c74 100644 --- a/lang/russian.txt +++ b/lang/russian.txt @@ -1281,3 +1281,5 @@ GUI_GSMOUSESENSITIVITY="Mouse Sensitivity" DESC_GSMOUSESENSITIVITY="configurable mouse sensitivity, multiply mouse movement by specified decimal number amount" GUI_IGNORECOMPATSLR="Ignore Native Linux Steam Linux Runtime from Compatibility Tool" DESC_IGNORECOMPATSLR="ignore Steam Linux Runtime for native games selected either by you or by Valve Testing as a Compatibility Tool and let SteamTinkerLaunch find it instead. For example, ignore Steam Linux Runtime 3.0 selected by Valve Testing and let SteamTinkerLaunch find and use Steam Linux Runtime 1.0 instead. This can have MAJOR impacts on compatibility, and has NO EFFECT for games using Proton" +GUI_VORTEXDEVICESCALEFACTOR="Vortex GUI Scale Factor" +DESC_VORTEXDEVICESCALEFACTOR="uses the --device-scale-factor flag to set the Vortex GUI scale. Defaults to 1.0, but if you want a larger GUI you can set it to match your display's scale factor (or the largest scale factor, if using multiple across displays)" diff --git a/steamtinkerlaunch b/steamtinkerlaunch index 04dfe276..e578ec0a 100755 --- a/steamtinkerlaunch +++ b/steamtinkerlaunch @@ -7,7 +7,7 @@ PREFIX="/usr" PROGNAME="SteamTinkerLaunch" NICEPROGNAME="Steam Tinker Launch" -PROGVERS="v14.0.20240526-1" +PROGVERS="v14.0.20240526-2" PROGCMD="${0##*/}" PROGINTERNALPROTNAME="Proton-stl" SHOSTL="stl" @@ -3127,6 +3127,7 @@ function setDefaultCfgValues { if [ -z "$DISABLEVORTEXAUTOUPDATE" ] ; then DISABLEVORTEXAUTOUPDATE="0"; fi if [ -z "$USEVORTEXCUSTOMVER" ] ; then USEVORTEXCUSTOMVER="0"; fi if [ -z "$VORTEXCUSTOMVER" ] ; then VORTEXCUSTOMVER="$NON"; fi + if [ -z "$VORTEXDEVICESCALEFACTOR" ] ; then VORTEXDEVICESCALEFACTOR="1"; fi if [ -z "$DISABLE_AUTOSTAGES" ] ; then DISABLE_AUTOSTAGES="0"; fi if [ -z "$NOSTEAMSTLDEF" ] ; then NOSTEAMSTLDEF="0"; fi if [ -z "$SGDBAPIKEY" ] ; then SGDBAPIKEY="$NON"; fi @@ -3640,6 +3641,8 @@ function saveCfg { echo "USEVORTEXCUSTOMVER=\"$USEVORTEXCUSTOMVER\"" echo "## $DESC_VORTEXCUSTOMVER" echo "VORTEXCUSTOMVER=\"$VORTEXCUSTOMVER\"" + echo "## $DESC_VORTEXDEVICESCALEFACTOR" + echo "VORTEXDEVICESCALEFACTOR=\"$VORTEXDEVICESCALEFACTOR\"" echo "## $(strFix "$DESC_DISABLE_AUTOSTAGES" "$PROGNAME")" echo "DISABLE_AUTOSTAGES=\"$DISABLE_AUTOSTAGES\"" echo "## $DESC_NOSTEAMSTLDEF" @@ -5908,6 +5911,7 @@ function AllSettingsEntriesDummyFunction { --field=" $GUI_USEOPENVRFSR!$DESC_USEOPENVRFSR ('USEOPENVRFSR')":CHK "${USEOPENVRFSR/#-/ -}" `#CAT_VR` `#SUB_Checkbox` `#MENU_GAME` \ --field="$(spanFont "$GUI_OPTSVORTEX" "H")":LBL "SKIP" `#CAT_Vortex` `#HEAD_Vortex` `#MENU_GAME` `#MENU_GLOBAL` \ --field=" $GUI_USEVORTEX!$DESC_USEVORTEX ('USEVORTEX')":CHK "${USEVORTEX/#-/ -}" `#CAT_Vortex` `#MENU_GAME` \ +--field=" $GUI_VORTEXDEVICESCALEFACTOR!$DESC_VORTEXDEVICESCALEFACTOR ('VORTEXDEVICESCALEFACTOR')" "${VORTEXDEVICESCALEFACTOR/#-/ -}" `#CAT_Vortex` `#MENU_GLOBAL` \ --field=" $GUI_WAITVORTEX!$DESC_WAITVORTEX ('WAITVORTEX')":NUM "${WAITVORTEX/#-/ -}" `#CAT_Vortex` `#MENU_GAME` \ --field=" $GUI_RUN_VORTEX_WINETRICKS!$DESC_RUN_VORTEX_WINETRICKS ('RUN_VORTEX_WINETRICKS')":CHK "${RUN_VORTEX_WINETRICKS/#-/ -}" `#CAT_Vortex` `#MENU_GAME` \ --field=" $GUI_RUN_VORTEX_WINECFG!$DESC_RUN_VORTEX_WINECFG ('RUN_VORTEX_WINECFG')":CHK "${RUN_VORTEX_WINECFG/#-/ -}" `#CAT_Vortex` `#MENU_GAME` \ @@ -16181,7 +16185,7 @@ function setVortSet { function runVortex { cd "$VORTEXINSTDIR" >/dev/null || return - wineVortexRun "$VORTEXWINE" "${VTX^}.exe" "$@" + wineVortexRun "$VORTEXWINE" "${VTX^}.exe" "$@" "--force-device-scale-factor=${VORTEXDEVICESCALEFACTOR}" cd - >/dev/null || return }