From f861467f17730698970c81a255bb07b9b3feee57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Lower?= Date: Tue, 16 Jan 2024 18:44:33 +0100 Subject: [PATCH] Add UI explanation and toggle for launching games Adds 'autostart game' toggle. User can turn it off and `--launch=` will be ignored. When `--launch=` option is passed explanation dialog will appear with option to launch game or not and hide the dialog on subsequent runs. This allows launchers like Rai Pal to always pass `--launch=` along with `--attach=`. --- UEVR/GameAutoStartExplanationDialog.xaml | 26 ++++++++++++++++++ UEVR/GameAutoStartExplanationDialog.xaml.cs | 29 +++++++++++++++++++++ UEVR/MainWindow.xaml | 4 +++ UEVR/MainWindow.xaml.cs | 24 +++++++++++++++++ UEVR/MainWindowSettings.cs | 14 ++++++++++ 5 files changed, 97 insertions(+) create mode 100644 UEVR/GameAutoStartExplanationDialog.xaml create mode 100644 UEVR/GameAutoStartExplanationDialog.xaml.cs diff --git a/UEVR/GameAutoStartExplanationDialog.xaml b/UEVR/GameAutoStartExplanationDialog.xaml new file mode 100644 index 0000000..e4a009b --- /dev/null +++ b/UEVR/GameAutoStartExplanationDialog.xaml @@ -0,0 +1,26 @@ + + + + + +