Skip to content

Add workshop link for Steam Shortcuts - #767

Open
CarrieForle wants to merge 3 commits into
darklinkpower:masterfrom
CarrieForle:feat/SteamViewer-workshop
Open

Add workshop link for Steam Shortcuts#767
CarrieForle wants to merge 3 commits into
darklinkpower:masterfrom
CarrieForle:feat/SteamViewer-workshop

Conversation

@CarrieForle

Copy link
Copy Markdown

I have verified that:

  • These changes work, by building the extension and testing.
  • That the changes comply with the rules indicated in the repository.
  • Pull request is targeting master branch.

This PR adds workshop link in the menu of Steam Shortcuts. Workshop item uses a new localization string LOCSteam_Viewer_MenuItemGameWorkshopDescription that defaults to "Workshop".

Merging this allows to close #391 and obsolete PR #371. Unlike #371 however, it always adds workshop item in the menu regardless whether the game supports it or not.

@darklinkpower

Copy link
Copy Markdown
Owner

however, it always adds workshop item in the menu regardless whether the game supports it or not.

I'm sorry but this is not a good approach. If implemented, it should properly detect if the Workshop is available for the specific game. Additionally, the localization string must only be added to the en_US.xaml file but not to the other ones.

@CarrieForle

Copy link
Copy Markdown
Author

the localization string must only be added to the en_US.xaml file but not to the other ones.

I've updated it to remove the string in those xaml files.

If implemented, it should properly detect if the Workshop is available for the specific game

I can try to implement it, but if that's the case then achievements and points shop also deserve the same treatment as they are also optional.

Examples:

@CarrieForle
CarrieForle force-pushed the feat/SteamViewer-workshop branch from 480cd5a to 5851e59 Compare August 11, 2026 07:48
@CarrieForle

Copy link
Copy Markdown
Author

I've made it so the workshop is hidden if the game does not support it. I also made this work for achievements and points shop so they would be hidden as well if the game doesn't have it. As this is no longer just about workshop please tell me if this needs to be in another PR.

Implementation

In order to get support info I use https://api.steampowered.com/ILoyaltyRewardsService/QueryRewardItems/v1/?appids[0]={0}&count=1 to get points shop by checking total_count > 0 and SteamWeb.GetSteamAppDetails() to get achievements and workshop.

The requests take a bit of time so I send the requests early when the user selects a game, so there is no delay between menu appearance and button clicks. In cases where the user right clicks on the game before they select it, all the links are shown whether they are supported or not because I couldn't find a timing to do it early, and UI would be very unresponsive if the requests were sent after button click.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Steam Shortcuts] Add option to open game workshop

2 participants