mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-14 15:00:18 -04:00
Add checkbox to enable controller menus to openmw launcher.
This commit is contained in:
parent
0d27dc2336
commit
71aa11404c
@ -304,6 +304,7 @@ bool Launcher::SettingsPage::loadSettings()
|
||||
loadSettingBool(Settings::gui().mColorTopicEnable, *changeDialogTopicsCheckBox);
|
||||
showOwnedComboBox->setCurrentIndex(Settings::game().mShowOwned);
|
||||
loadSettingBool(Settings::gui().mStretchMenuBackground, *stretchBackgroundCheckBox);
|
||||
loadSettingBool(Settings::gui().mControllerMenus, *controllerMenusCheckBox);
|
||||
loadSettingBool(Settings::map().mAllowZooming, *useZoomOnMapCheckBox);
|
||||
loadSettingBool(Settings::game().mGraphicHerbalism, *graphicHerbalismCheckBox);
|
||||
scalingSpinBox->setValue(Settings::gui().mScalingFactor);
|
||||
@ -497,6 +498,7 @@ void Launcher::SettingsPage::saveSettings()
|
||||
saveSettingBool(*changeDialogTopicsCheckBox, Settings::gui().mColorTopicEnable);
|
||||
saveSettingInt(*showOwnedComboBox, Settings::game().mShowOwned);
|
||||
saveSettingBool(*stretchBackgroundCheckBox, Settings::gui().mStretchMenuBackground);
|
||||
saveSettingBool(*controllerMenusCheckBox, Settings::gui().mControllerMenus);
|
||||
saveSettingBool(*useZoomOnMapCheckBox, Settings::map().mAllowZooming);
|
||||
saveSettingBool(*graphicHerbalismCheckBox, Settings::game().mGraphicHerbalism);
|
||||
Settings::gui().mScalingFactor.set(scalingSpinBox->value());
|
||||
|
@ -1398,6 +1398,16 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="7" column="1">
|
||||
<widget class="QCheckBox" name="controllerMenusCheckBox">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>Make it easier to use game menus with a controller.</p></body></html></string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Enable Controller Menus</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="showOwnedLabel">
|
||||
<property name="text">
|
||||
|
@ -25,6 +25,7 @@ namespace Settings
|
||||
SettingValue<float> mMenuTransparency{ mIndex, "GUI", "menu transparency", makeClampSanitizerFloat(0, 1) };
|
||||
SettingValue<float> mTooltipDelay{ mIndex, "GUI", "tooltip delay", makeMaxSanitizerFloat(0) };
|
||||
SettingValue<bool> mStretchMenuBackground{ mIndex, "GUI", "stretch menu background" };
|
||||
SettingValue<bool> mControllerMenus{ mIndex, "GUI", "controller menus" };
|
||||
SettingValue<bool> mSubtitles{ mIndex, "GUI", "subtitles" };
|
||||
SettingValue<bool> mHitFader{ mIndex, "GUI", "hit fader" };
|
||||
SettingValue<bool> mWerewolfOverlay{ mIndex, "GUI", "werewolf overlay" };
|
||||
|
@ -201,6 +201,9 @@ tooltip delay = 0.0
|
||||
# Stretch menus, load screens, etc. to the window aspect ratio.
|
||||
stretch menu background = false
|
||||
|
||||
# Make menus easier to navigate with a controller.
|
||||
controller menus = false
|
||||
|
||||
# Subtitles for NPC spoken dialog and some sound effects.
|
||||
subtitles = false
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user