From deff598b6d802687e8c2d2d146a17fc432b28d3f Mon Sep 17 00:00:00 2001 From: Alayan <25536748+Alayan-stk-2@users.noreply.github.com> Date: Sun, 19 May 2024 14:58:58 +0200 Subject: [PATCH] Prepare the GUI to recommend video settings - Add a new dialog that gives some information and asks for the user's preferences - Ensure that one and only one of the 'Performance', 'Balanced' and 'Graphics quality' checkboxes is active - Add a new button in video settings to access this dialog --- .../dialogs/recommend_video_settings.stkgui | 65 +++++++++++ data/gui/screens/options/options_video.stkgui | 6 +- .../dialogs/custom_video_settings.cpp | 1 - .../dialogs/custom_video_settings.hpp | 2 +- .../dialogs/recommend_video_settings.cpp | 110 ++++++++++++++++++ .../dialogs/recommend_video_settings.hpp | 45 +++++++ .../options/options_screen_video.cpp | 8 +- 7 files changed, 228 insertions(+), 9 deletions(-) create mode 100644 data/gui/dialogs/recommend_video_settings.stkgui create mode 100644 src/states_screens/dialogs/recommend_video_settings.cpp create mode 100644 src/states_screens/dialogs/recommend_video_settings.hpp diff --git a/data/gui/dialogs/recommend_video_settings.stkgui b/data/gui/dialogs/recommend_video_settings.stkgui new file mode 100644 index 000000000..4f3d18563 --- /dev/null +++ b/data/gui/dialogs/recommend_video_settings.stkgui @@ -0,0 +1,65 @@ + + +
+ + +
+ + + +
+
diff --git a/data/gui/screens/options/options_video.stkgui b/data/gui/screens/options/options_video.stkgui index f450bfade..fc90d0e2d 100644 --- a/data/gui/screens/options/options_video.stkgui +++ b/data/gui/screens/options/options_video.stkgui @@ -100,14 +100,14 @@