mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-01 03:21:41 +00:00
[Launcher] Add new setting 'allow zooming' to advanced tab in the launcher
This commit is contained in:
parent
a6f9e7274f
commit
1051745f29
@ -192,6 +192,7 @@ bool Launcher::AdvancedPage::loadSettings()
|
||||
if (showOwnedIndex >= 0 && showOwnedIndex <= 3)
|
||||
showOwnedComboBox->setCurrentIndex(showOwnedIndex);
|
||||
loadSettingBool(stretchBackgroundCheckBox, "stretch menu background", "GUI");
|
||||
loadSettingBool(useZoomOnMapCheckBox, "allow zooming", "Map");
|
||||
loadSettingBool(graphicHerbalismCheckBox, "graphic herbalism", "Game");
|
||||
scalingSpinBox->setValue(Settings::Manager::getFloat("scaling factor", "GUI"));
|
||||
}
|
||||
@ -352,6 +353,7 @@ void Launcher::AdvancedPage::saveSettings()
|
||||
if (showOwnedCurrentIndex != Settings::Manager::getInt("show owned", "Game"))
|
||||
Settings::Manager::setInt("show owned", "Game", showOwnedCurrentIndex);
|
||||
saveSettingBool(stretchBackgroundCheckBox, "stretch menu background", "GUI");
|
||||
saveSettingBool(useZoomOnMapCheckBox, "allow zooming", "Map");
|
||||
saveSettingBool(graphicHerbalismCheckBox, "graphic herbalism", "Game");
|
||||
float uiScalingFactor = scalingSpinBox->value();
|
||||
if (uiScalingFactor != Settings::Manager::getFloat("scaling factor", "GUI"))
|
||||
|
@ -1006,6 +1006,16 @@ True: In non-combat mode camera is positioned behind the character's shoulder. C
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="useZoomOnMapCheckBox">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>Enable zooming on local and global maps.</p></body></html></string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Can zoom on maps</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="graphicHerbalismCheckBox">
|
||||
<property name="toolTip">
|
||||
|
Loading…
Reference in New Issue
Block a user