Skip to content

Commit 170010a

Browse files
committed
SteamGridDB: Add notifier for getSteamGridDBArtworkGUI
1 parent 0731591 commit 170010a

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

lang/english.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1266,7 +1266,7 @@ GUI_CREATERESHINI="Create ReShade INI"
12661266
DESC_CREATERESHINI="Disable creating the ReShade INI file when using ReShade on first install or if missing, will do nothing if ReShade is disabled -- This will NOT remove an existing ReShade INI, it will only avoid (re)creating it if one is not found"
12671267
GUI_FSGDBAW="Fetch Game Artwork from SteamGridDB — XXX"
12681268
DESC_FSGDBAW="Download best-match game artwork from SteamGridDB using either the Steam AppID OR SteamGridDB Game ID to search on. You can optionally also use the Game Name, which will attempt to get the SteamGridDB Game ID. The Steam AppID will be prioritised if provided.\n\nYou can configure artwork preferences such as dimensions and types on the Global Menu. <b>Make sure you have defined a SteamGridDB API Token on the Global Menu or in the Global Config file</b>!"
1269-
GUI_FSGDBAWAPPID="Steam AppID"
1269+
GUI_FSGDBAWAPPID="Steam Store AppID"
12701270
DESC_FSGDBAWAPPID="Steam Store AppID to search on, will not work for games unavailable on Steam"
12711271
GUI_FSGDBAWGAMEID="SteamGridDB Game ID"
12721272
DESC_FSGDBAWAPPID="SteamGridDB Game ID to search for game art on, this is most useful for Non-Steam Games"
@@ -1275,3 +1275,5 @@ DESC_FSGDBAWSEARCHNAME="Optionally specify a name to for SteamGridDB to try and
12751275
GUI_FSGDBAWEXISTINGFILEACTION="Override"
12761276
GUI_FSGDBAWAPPLYARTWORK="Apply Artwork"
12771277
DESC_FSGDBAWAPPLYARTWORK="Download artwork into Steam grid directory to apply to apply it immediately"
1278+
NOTY_FSGDBAW="Fetching SteamGridDB Artwork for XXX game 'YYY'"
1279+
NOTY_FSGDBAWINVALID="Cannot fetch SteamGridDB Artwork, must provide AppID, Game ID, or Game Name!"

steamtinkerlaunch

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
PREFIX="/usr"
77
PROGNAME="SteamTinkerLaunch"
88
NICEPROGNAME="Steam Tinker Launch"
9-
PROGVERS="v14.0.20230112-5 (sgdb-artwork-gui)"
9+
PROGVERS="v14.0.20240112-6 (sgdb-artwork-gui)"
1010
PROGCMD="${0##*/}"
1111
PROGINTERNALPROTNAME="Proton-stl"
1212
SHOSTL="stl"
@@ -1583,8 +1583,9 @@ function getSteamGridDBArtworkGUI {
15831583
FSGDBAWAPPLYARTWORK="$( retBool "${FSGDBAWARR[5]}" )"
15841584

15851585
if [ -z "${FSGDBAWAPPID}" ] && [ -z "${FSGDBAWGAMEID}" ] && [ -z "${FSGDBAWSEARCHNAME}" ]; then
1586-
# TODO Notifier for error?
15871586
writelog "ERROR" "${FUNCNAME[0]} - You must pass at least a Steam AppID, SteamGridDB Game ID, or SteamGridDB Game Name"
1587+
echo "You must pass at least a Steam AppID, SteamGridDB Game ID, or SteamGridDB Game Name"
1588+
notiShow "$NOTY_FSGDBAWINVALID"
15881589
return
15891590
fi
15901591

@@ -1594,8 +1595,10 @@ function getSteamGridDBArtworkGUI {
15941595
if [ -n "$FSGDBAWAPPID" ]; then
15951596
FSGDBAWGAMETYPEFLAG="--steam" # Only use SGDB Steam game endpoint if we pass a Steam AppID to search for artwork on
15961597
FSGDBAWSEARCHID="${FSGDBAWAPPID}"
1598+
notiShow "$( strFix "$NOTY_FSGDBAW" "Steam" "$FSGDBAW_HEADERTITLE" )"
15971599
else
15981600
FSGDBAWSEARCHID="${FSGDBAWGAMEID}"
1601+
notiShow "$( strFix "$NOTY_FSGDBAW" "Non-Steam" "$FSGDBAW_HEADERTITLE" )"
15991602
fi
16001603

16011604
FSGDBAWAPPLYARTWORKFLAG="--apply" # Checkbox is defaulted to 1 (enabled), so default flag to '--apply'
@@ -1697,6 +1700,8 @@ function commandlineGetSteamGridDBArtwork {
16971700
downloadArtFromSteamGridDB "$GSGDBA_APPID" "$SGDBSEARCHENDPOINT_BOXART" "${GSGDBA_FILENAME}" "$SGDBTENFOOTSTYLES" "$SGDBTENFOOTDIMS" "$SGDBTENFOOTTYPES" "$SGDBTENFOOTNSFW" "$SGDBTENFOOTHUMOR" "$SGDBTENFOOTEPILEPSY" "$GSGDBA_HASFILE" "$GSGDBA_APPLYARTWORK"
16981701
fi
16991702

1703+
# TODO call 'getSteamGridDBNonSteamIcon' here if '--nonsteam'?
1704+
17001705
echo "$GSGDBA_APPID" > "$NOSTSGDBIDSHMFILE" # Store ID in case other functions need it (i.e. addNonSteamGame) -- Little hacky, would rather return this somehow...
17011706
}
17021707

0 commit comments

Comments
 (0)