Skip to content

Commit

Permalink
Enable Steam overlay + Note about usage (#391)
Browse files Browse the repository at this point in the history
* Fix broken steamID check and better folder logging

* Change Steam executable path to stub

* Fix formatting issue and playtime not updating when using protocols

* Copy Game Icon to Steam grid folder

* Enable AllowOverlay

* Note about overlay use.

* Change default values for AllowOverlay and AllowDesktopConfig
  • Loading branch information
gablm authored Feb 6, 2024
1 parent 7c51c73 commit ee1cfba
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions CollapseLauncher/Classes/ShortcutCreator/SteamShortcut.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public sealed class SteamShortcut
public string ShortcutPath = "";
public string LaunchOptions = "";
public bool IsHidden = false;
public bool AllowDesktopConfig = false;
public bool AllowOverlay = false;
public bool AllowDesktopConfig = true;
public bool AllowOverlay = true;
public bool OpenVR = false;
public bool Devkit = false;
public string DevkitGameID = "";
Expand Down
7 changes: 4 additions & 3 deletions CollapseLauncher/XAMLs/MainApp/Pages/Dialogs/SimpleDialogs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ public static async Task<ContentDialogResult> Dialog_ShortcutCreationSuccess(UIE
if (play)
{
panel.Children.Add(new TextBlock { Text = Lang._Dialogs.ShortcutCreationSuccessSubtitle3, FontWeight = FontWeights.Bold, TextWrapping = TextWrapping.Wrap, Margin = new Thickness(0, 8, 0, 4) });
panel.Children.Add(new TextBlock { Text = Lang._Dialogs.ShortcutCreationSuccessSubtitle4, TextWrapping = TextWrapping.Wrap, Margin = new Thickness(0, 2, 0, 2) });
panel.Children.Add(new TextBlock { Text = Lang._Dialogs.ShortcutCreationSuccessSubtitle4, TextAlignment = TextAlignment.Justify, TextWrapping = TextWrapping.Wrap, Margin = new Thickness(0, 2, 0, 2) });
}

return await SpawnDialog(
Expand Down Expand Up @@ -803,8 +803,9 @@ public static async Task<ContentDialogResult> Dialog_SteamShortcutCreationSucces
{
panel.Children.Add(new TextBlock { Text = Lang._Dialogs.SteamShortcutCreationSuccessSubtitle3, TextWrapping = TextWrapping.Wrap, Margin = new Thickness(0, 2, 0, 2) });
}
panel.Children.Add(new TextBlock { Text = Lang._Dialogs.SteamShortcutCreationSuccessSubtitle4, TextWrapping = TextWrapping.Wrap, Margin = new Thickness(0, 2, 0, 2) });
panel.Children.Add(new TextBlock { Text = Lang._Dialogs.SteamShortcutCreationSuccessSubtitle5, TextWrapping = TextWrapping.Wrap, Margin = new Thickness(0, 2, 0, 4) });
panel.Children.Add(new TextBlock { Text = Lang._Dialogs.SteamShortcutCreationSuccessSubtitle5, TextWrapping = TextWrapping.Wrap, TextAlignment = TextAlignment.Justify, Margin = new Thickness(0, 2, 0, 2) });
panel.Children.Add(new TextBlock { Text = Lang._Dialogs.SteamShortcutCreationSuccessSubtitle4, TextWrapping = TextWrapping.Wrap, TextAlignment = TextAlignment.Justify, Margin = new Thickness(0, 2, 0, 2) });
panel.Children.Add(new TextBlock { Text = Lang._Dialogs.SteamShortcutCreationSuccessSubtitle6, TextWrapping = TextWrapping.Wrap, TextAlignment = TextAlignment.Justify, Margin = new Thickness(0, 2, 0, 4) });

return await SpawnDialog(
Lang._Dialogs.SteamShortcutCreationSuccessTitle,
Expand Down
1 change: 1 addition & 0 deletions Hi3Helper.Core/Lang/Locale/LangDialogs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ public sealed class LangDialogs
public string SteamShortcutCreationSuccessSubtitle3 { get; set; } = LangFallback?._Dialogs.SteamShortcutCreationSuccessSubtitle3;
public string SteamShortcutCreationSuccessSubtitle4 { get; set; } = LangFallback?._Dialogs.SteamShortcutCreationSuccessSubtitle4;
public string SteamShortcutCreationSuccessSubtitle5 { get; set; } = LangFallback?._Dialogs.SteamShortcutCreationSuccessSubtitle5;
public string SteamShortcutCreationSuccessSubtitle6 { get; set; } = LangFallback?._Dialogs.SteamShortcutCreationSuccessSubtitle6;
public string SteamShortcutCreationFailureTitle { get; set; } = LangFallback?._Dialogs.SteamShortcutCreationFailureTitle;
public string SteamShortcutCreationFailureSubtitle { get; set; } = LangFallback?._Dialogs.SteamShortcutCreationFailureSubtitle;
public string OperationErrorDiskSpaceInsufficientTitle { get; set; } = LangFallback?._Dialogs.OperationErrorDiskSpaceInsufficientTitle;
Expand Down
3 changes: 2 additions & 1 deletion Hi3Helper.Core/Lang/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@
"ShortcutCreationSuccessSubtitle4": " • Using this shortcut will start the game after loading the region.",

"SteamShortcutCreationConfirmTitle": "Are you sure you want to continue?",
"SteamShortcutCreationConfirmSubtitle1": "A shortcut will be added to every Steam users in this computer.",
"SteamShortcutCreationConfirmSubtitle1": "A shortcut will be added to every Steam user in this computer.",
"SteamShortcutCreationConfirmSubtitle2": "If already added, the assets related to the shortcut will be verified.",
"SteamShortcutCreationConfirmCheckBox": "Automatically start game after using this shortcut",
"SteamShortcutCreationSuccessTitle": "Success!",
Expand All @@ -702,6 +702,7 @@
"SteamShortcutCreationSuccessSubtitle3": " • Using this shortcut will start the game after loading the region.",
"SteamShortcutCreationSuccessSubtitle4": " • Running this process again will fix any corrupted/missing images belonging to the shortcut.",
"SteamShortcutCreationSuccessSubtitle5": " • New shortcuts will only be shown after Steam is reloaded.",
"SteamShortcutCreationSuccessSubtitle6": " • In order to use the Steam overlay, Steam needs to be run as administrator and Collapse must either be fully closed or have the \"Multiple Instances\" option enabled in the settings.",

"SteamShortcutCreationFailureTitle": "Invalid Steam data folder",
"SteamShortcutCreationFailureSubtitle": "It was not possible to find a valid userdata folder.\n\nPlease be sure to login at least once to the Steam client before trying to use this functionality."
Expand Down

0 comments on commit ee1cfba

Please sign in to comment.