Add workshop link for Steam Shortcuts - #767
Conversation
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 |
I've updated it to remove the string in those xaml files.
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:
|
480cd5a to
5851e59
Compare
|
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. ImplementationIn 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 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. |
I have verified that:
masterbranch.This PR adds workshop link in the menu of Steam Shortcuts. Workshop item uses a new localization string
LOCSteam_Viewer_MenuItemGameWorkshopDescriptionthat 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.