mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-15 15:30:56 -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);
|
loadSettingBool(Settings::gui().mColorTopicEnable, *changeDialogTopicsCheckBox);
|
||||||
showOwnedComboBox->setCurrentIndex(Settings::game().mShowOwned);
|
showOwnedComboBox->setCurrentIndex(Settings::game().mShowOwned);
|
||||||
loadSettingBool(Settings::gui().mStretchMenuBackground, *stretchBackgroundCheckBox);
|
loadSettingBool(Settings::gui().mStretchMenuBackground, *stretchBackgroundCheckBox);
|
||||||
|
loadSettingBool(Settings::gui().mControllerMenus, *controllerMenusCheckBox);
|
||||||
loadSettingBool(Settings::map().mAllowZooming, *useZoomOnMapCheckBox);
|
loadSettingBool(Settings::map().mAllowZooming, *useZoomOnMapCheckBox);
|
||||||
loadSettingBool(Settings::game().mGraphicHerbalism, *graphicHerbalismCheckBox);
|
loadSettingBool(Settings::game().mGraphicHerbalism, *graphicHerbalismCheckBox);
|
||||||
scalingSpinBox->setValue(Settings::gui().mScalingFactor);
|
scalingSpinBox->setValue(Settings::gui().mScalingFactor);
|
||||||
@ -497,6 +498,7 @@ void Launcher::SettingsPage::saveSettings()
|
|||||||
saveSettingBool(*changeDialogTopicsCheckBox, Settings::gui().mColorTopicEnable);
|
saveSettingBool(*changeDialogTopicsCheckBox, Settings::gui().mColorTopicEnable);
|
||||||
saveSettingInt(*showOwnedComboBox, Settings::game().mShowOwned);
|
saveSettingInt(*showOwnedComboBox, Settings::game().mShowOwned);
|
||||||
saveSettingBool(*stretchBackgroundCheckBox, Settings::gui().mStretchMenuBackground);
|
saveSettingBool(*stretchBackgroundCheckBox, Settings::gui().mStretchMenuBackground);
|
||||||
|
saveSettingBool(*controllerMenusCheckBox, Settings::gui().mControllerMenus);
|
||||||
saveSettingBool(*useZoomOnMapCheckBox, Settings::map().mAllowZooming);
|
saveSettingBool(*useZoomOnMapCheckBox, Settings::map().mAllowZooming);
|
||||||
saveSettingBool(*graphicHerbalismCheckBox, Settings::game().mGraphicHerbalism);
|
saveSettingBool(*graphicHerbalismCheckBox, Settings::game().mGraphicHerbalism);
|
||||||
Settings::gui().mScalingFactor.set(scalingSpinBox->value());
|
Settings::gui().mScalingFactor.set(scalingSpinBox->value());
|
||||||
|
@ -1398,6 +1398,16 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</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">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="showOwnedLabel">
|
<widget class="QLabel" name="showOwnedLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
@ -25,6 +25,7 @@ namespace Settings
|
|||||||
SettingValue<float> mMenuTransparency{ mIndex, "GUI", "menu transparency", makeClampSanitizerFloat(0, 1) };
|
SettingValue<float> mMenuTransparency{ mIndex, "GUI", "menu transparency", makeClampSanitizerFloat(0, 1) };
|
||||||
SettingValue<float> mTooltipDelay{ mIndex, "GUI", "tooltip delay", makeMaxSanitizerFloat(0) };
|
SettingValue<float> mTooltipDelay{ mIndex, "GUI", "tooltip delay", makeMaxSanitizerFloat(0) };
|
||||||
SettingValue<bool> mStretchMenuBackground{ mIndex, "GUI", "stretch menu background" };
|
SettingValue<bool> mStretchMenuBackground{ mIndex, "GUI", "stretch menu background" };
|
||||||
|
SettingValue<bool> mControllerMenus{ mIndex, "GUI", "controller menus" };
|
||||||
SettingValue<bool> mSubtitles{ mIndex, "GUI", "subtitles" };
|
SettingValue<bool> mSubtitles{ mIndex, "GUI", "subtitles" };
|
||||||
SettingValue<bool> mHitFader{ mIndex, "GUI", "hit fader" };
|
SettingValue<bool> mHitFader{ mIndex, "GUI", "hit fader" };
|
||||||
SettingValue<bool> mWerewolfOverlay{ mIndex, "GUI", "werewolf overlay" };
|
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 menus, load screens, etc. to the window aspect ratio.
|
||||||
stretch menu background = false
|
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 for NPC spoken dialog and some sound effects.
|
||||||
subtitles = false
|
subtitles = false
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user