mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-30 19:15:41 +00:00
Adding Object Paging Min Size combo box to Advanced -> Visuals
Requested in Discord by CMAugust and hammered out with a few other users.
This commit is contained in:
parent
7330921bd6
commit
9f2f5174d4
2 changed files with 35 additions and 1 deletions
|
@ -136,6 +136,7 @@ bool Launcher::AdvancedPage::loadSettings()
|
|||
|
||||
loadSettingBool(activeGridObjectPagingCheckBox, "object paging active grid", "Terrain");
|
||||
viewingDistanceComboBox->setValue(convertToCells(Settings::Manager::getInt("viewing distance", "Camera")));
|
||||
objectPagingMinSizeComboBox->setValue(Settings::Manager::getFloat("object paging min size", "Terrain"));
|
||||
}
|
||||
|
||||
// Audio
|
||||
|
@ -287,6 +288,9 @@ void Launcher::AdvancedPage::saveSettings()
|
|||
{
|
||||
Settings::Manager::setInt("viewing distance", "Camera", convertToUnits(viewingDistance));
|
||||
}
|
||||
double objectPagingMinSize = objectPagingMinSizeComboBox->value();
|
||||
if (objectPagingMinSize != Settings::Manager::getFloat("object paging min size", "Terrain"))
|
||||
Settings::Manager::setFloat("object paging min size", "Terrain", objectPagingMinSize);
|
||||
}
|
||||
|
||||
// Audio
|
||||
|
|
|
@ -478,6 +478,36 @@
|
|||
</layout>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<layout class="QHBoxLayout" name="objectPagingMinSizeLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="objectPagingMinSizeLabel">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>Controls how large an object must be to be visible in the scene. The object’s size is divided by its distance to the camera and the result of the division is compared with this value. The smaller this value is, the more objects you will see in the scene.</p></body></html></string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Object paging min size</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QDoubleSpinBox" name="objectPagingMinSizeComboBox">
|
||||
<property name="decimals">
|
||||
<number>3</number>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<double>0.000000000000000</double>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<double>0.250000000000000</double>
|
||||
</property>
|
||||
<property name="singleStep">
|
||||
<double>0.005000000000000</double>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QCheckBox" name="distantLandCheckBox">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>If true, use paging and LOD algorithms to display the entire terrain. If false, only display terrain of the loaded cells.</p></body></html></string>
|
||||
|
@ -487,7 +517,7 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<item row="3" column="0">
|
||||
<layout class="QVBoxLayout" name="distantLandLayout">
|
||||
<property name="leftMargin">
|
||||
<number>20</number>
|
||||
|
|
Loading…
Reference in a new issue