From f49bf028b97dfbd4e7242d6cd10754eacb76cda4 Mon Sep 17 00:00:00 2001 From: Alexei Dobrohotov Date: Sun, 1 Nov 2020 02:14:25 +0300 Subject: [PATCH] Put a stretch menu background checkbox into the launcher (#5672) --- CHANGELOG.md | 1 + apps/launcher/advancedpage.cpp | 2 ++ docs/source/reference/modding/settings/GUI.rst | 2 +- files/ui/advancedpage.ui | 10 ++++++++++ 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 304892ca41..69cc077ec0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -83,6 +83,7 @@ Feature #5610: Actors movement should be smoother Feature #5642: Ability to attach arrows to actor skeleton instead of bow mesh Feature #5649: Skyrim SE compressed BSA format support + Feature #5672: Make stretch menu background configuration more accessible Task #5480: Drop Qt4 support Task #5520: Improve cell name autocompleter implementation diff --git a/apps/launcher/advancedpage.cpp b/apps/launcher/advancedpage.cpp index 050ab8d21a..b35e786395 100644 --- a/apps/launcher/advancedpage.cpp +++ b/apps/launcher/advancedpage.cpp @@ -152,6 +152,7 @@ bool Launcher::AdvancedPage::loadSettings() // Match the index with the option (only 0, 1, 2, or 3 are valid). Will default to 0 if invalid. if (showOwnedIndex >= 0 && showOwnedIndex <= 3) showOwnedComboBox->setCurrentIndex(showOwnedIndex); + loadSettingBool(stretchBackgroundCheckBox, "stretch menu background", "GUI"); } // Bug fixes @@ -277,6 +278,7 @@ void Launcher::AdvancedPage::saveSettings() int showOwnedCurrentIndex = showOwnedComboBox->currentIndex(); if (showOwnedCurrentIndex != mEngineSettings.getInt("show owned", "Game")) mEngineSettings.setInt("show owned", "Game", showOwnedCurrentIndex); + saveSettingBool(stretchBackgroundCheckBox, "stretch menu background", "GUI"); } // Bug fixes diff --git a/docs/source/reference/modding/settings/GUI.rst b/docs/source/reference/modding/settings/GUI.rst index 349a98697a..cad04ab5ce 100644 --- a/docs/source/reference/modding/settings/GUI.rst +++ b/docs/source/reference/modding/settings/GUI.rst @@ -72,7 +72,7 @@ The Bethesda provided assets have a 4:3 aspect ratio, but other assets are permi If this setting is false, the assets will be centered in their correct aspect ratio, with black bars filling the remainder of the screen. -This setting can only be configured by editing the settings configuration file. +This setting can be configured in the Interface section of Advanced tab of the launcher. subtitles --------- diff --git a/files/ui/advancedpage.ui b/files/ui/advancedpage.ui index c678ffbba1..3f53180daf 100644 --- a/files/ui/advancedpage.ui +++ b/files/ui/advancedpage.ui @@ -714,6 +714,16 @@ True: In non-combat mode camera is positioned behind the character's shoulder. C + + + + <html><head/><body><p>Stretch menus, load screens, etc. to the window aspect ratio.</p></body></html> + + + Stretch menu background + + +