Skip to content

Commit

Permalink
v2.0.3 - added Column Selection for all Tabs to the Global Settings. …
Browse files Browse the repository at this point in the history
…Should help with low screen resolutions
  • Loading branch information
frostworx committed Sep 25, 2020
1 parent 4626cb0 commit 49e8ce2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ The Settings Menu can also be opened via commandline:
`stl settings` opens the Menu with placeholder SteamAppID `31337` as default
an optional commandline argument can be either a SteamAppID or `last` for opening the config of the last played game stored in `LASTRUN`

For lower screen resolutions you might want to adjust both the Width and Height of the Menu
and the amount of Colums for each of the Tabs in the Global Settings *(the Game Tabs Share one variable)*


### Configuration Locations

Expand Down
25 changes: 21 additions & 4 deletions stl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
### project ###

PROGNAME="SteamTinkerLaunch"
PROGVERS="v2.0.2"
PROGVERS="v2.0.3"
PROGCMD="$(basename "$0")"
PROJECTPAGE="https://github.com/frostworx/steamtinkerlaunch"

Expand Down Expand Up @@ -170,6 +170,10 @@ function setDefaultCfgValues {
if [ -z "$DEPTH3DSRCDIR" ] ; then DEPTH3DSRCDIR="$STLDLDIR/Depth3D"; fi
if [ -z "$STLSETWIDTH" ] ; then STLSETWIDTH="1920"; fi
if [ -z "$STLSETHEIGHT" ] ; then STLSETHEIGHT="1080"; fi
if [ -z "$GAMETABCOLS" ] ; then GAMETABCOLS="3"; fi
if [ -z "$GLOBTABCOLS" ] ; then GLOBTABCOLS="3"; fi
if [ -z "$RESHTABCOLS" ] ; then RESHTABCOLS="3"; fi
if [ -z "$VORTTABCOLS" ] ; then VORTTABCOLS="3"; fi
}

function setDefaultCfgValuesdefault_template {
Expand Down Expand Up @@ -376,6 +380,14 @@ function saveCfg {
echo "STLSETWIDTH=\"$STLSETWIDTH\""
echo "## Settings GUI Height:"
echo "STLSETHEIGHT=\"$STLSETHEIGHT\""
echo "## Columns count for Game Tabs:"
echo "GAMETABCOLS=\"$GAMETABCOLS\""
echo "## Columns count for Global Tab:"
echo "GLOBTABCOLS=\"$GLOBTABCOLS\""
echo "## Columns count for ReShade Tab:"
echo "RESHTABCOLS=\"$RESHTABCOLS\""
echo "## Columns count for Vortex Tabs:"
echo "VORTTABCOLS=\"$VORTTABCOLS\""
} >> "$1"
#ENDsaveCfgglobal
fi
Expand Down Expand Up @@ -697,7 +709,6 @@ function cleanYadFiles {
unset "cfg1" "cfg2" "cfg3" "cfg4" "cfg5"
}


#STARTYADGAME
#STARTYADTEMPLATE
function openGameMenu {
Expand All @@ -710,7 +721,7 @@ function openGameMenu {
"$YAD" --plug="$YADKEY" --tabnum="$TABNR" --borders=34 --window-icon=gtk-yes --form --scroll --center --undecorated \
--separator="\n" \
--quoted-output \
--columns="3" \
--columns="$GAMETABCOLS" \
--width="$STLSETWIDTH" \
--height="$STLSETHEIGHT" \
--text="<span font_weight='bold'>$TEXT</span>" \
Expand Down Expand Up @@ -870,7 +881,7 @@ function openSettings {
"$YAD" --plug="$YADKEY" --tabnum=3 --borders=34 --window-icon=gtk-yes --form --scroll --center --undecorated \
--separator="\n" \
--quoted-output \
--columns="3" \
--columns="$GLOBTABCOLS" \
--width="$STLSETWIDTH" \
--height="$STLSETHEIGHT" \
--text="<span font_weight='bold'>Global Settings</span>" \
Expand Down Expand Up @@ -921,6 +932,10 @@ function openSettings {
--field="":LBL "" \
--field=" Global Settings Window width!The Width of the Settings window":NUM "${STLSETWIDTH/#-/ -}" \
--field=" Global Settings Window height!The Height of the Settings window":NUM "${STLSETHEIGHT/#-/ -}" \
--field=" Columns for the Game Tabs!Use n Columns for the two Game Tabs":CB "${GAMETABCOLS/#-/ -}!1!2!3!4!5" \
--field=" Columns for the Global Tab!Use n Columns for the Global Tab":CB "${GLOBTABCOLS/#-/ -}!1!2!3!4!5" \
--field=" Columns for the ReShade Tab!Use n Columns for the ReShade Tab":CB "${RESHTABCOLS/#-/ -}!1!2!3!4!5" \
--field=" Columns for the Vortex Tab!Use n Columns for the Vortex Tab":CB "${VORTTABCOLS/#-/ -}!1!2!3!4!5" \
> "$cfg3" &
YADPID3="$!"

Expand All @@ -932,6 +947,7 @@ function openSettings {
"$YAD" --plug="$YADKEY" --tabnum=4 --borders=34 --window-icon=gtk-yes --form --scroll --center --undecorated \
--separator="\n" \
--quoted-output \
--columns="$RESHTABCOLS" \
--width="$STLSETWIDTH" \
--height="$STLSETHEIGHT" \
--text="<span font_weight='bold'>ReShade Settings</span>" \
Expand All @@ -955,6 +971,7 @@ function openSettings {
"$YAD" --plug="$YADKEY" --tabnum=5 --borders=34 --window-icon=gtk-yes --form --scroll --center --undecorated \
--separator="\n" \
--quoted-output \
--columns="$VORTTABCOLS" \
--width="$STLSETWIDTH" \
--height="$STLSETHEIGHT" \
--text="<span font_weight='bold'>Vortex Settings</span>" \
Expand Down

0 comments on commit 49e8ce2

Please sign in to comment.