mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-28 10:09:40 +00:00
Uncheck sheathing checkboxes automatically when appropriate
Fix their order and bogus saveSettingBool calls
This commit is contained in:
parent
5eab913a9c
commit
5a5bc0bef8
2 changed files with 23 additions and 20 deletions
|
@ -84,8 +84,11 @@ bool Launcher::AdvancedPage::loadSettings()
|
||||||
loadSettingBool(normaliseRaceSpeedCheckBox, "normalise race speed", "Game");
|
loadSettingBool(normaliseRaceSpeedCheckBox, "normalise race speed", "Game");
|
||||||
connect(animSourcesCheckBox, SIGNAL(toggled(bool)), this, SLOT(slotAnimSourcesToggled(bool)));
|
connect(animSourcesCheckBox, SIGNAL(toggled(bool)), this, SLOT(slotAnimSourcesToggled(bool)));
|
||||||
loadSettingBool(animSourcesCheckBox, "use additional anim sources", "Game");
|
loadSettingBool(animSourcesCheckBox, "use additional anim sources", "Game");
|
||||||
loadSettingBool(weaponSheathingCheckBox, "weapon sheathing", "Game");
|
if (animSourcesCheckBox->checkState())
|
||||||
loadSettingBool(shieldSheathingCheckBox, "shield sheathing", "Game");
|
{
|
||||||
|
loadSettingBool(weaponSheathingCheckBox, "weapon sheathing", "Game");
|
||||||
|
loadSettingBool(shieldSheathingCheckBox, "shield sheathing", "Game");
|
||||||
|
}
|
||||||
|
|
||||||
// Input Settings
|
// Input Settings
|
||||||
loadSettingBool(grabCursorCheckBox, "grab cursor", "Input");
|
loadSettingBool(grabCursorCheckBox, "grab cursor", "Input");
|
||||||
|
@ -146,11 +149,6 @@ void Launcher::AdvancedPage::saveSettings()
|
||||||
saveSettingBool(requireAppropriateAmmunitionCheckBox, "only appropriate ammunition bypasses resistance", "Game");
|
saveSettingBool(requireAppropriateAmmunitionCheckBox, "only appropriate ammunition bypasses resistance", "Game");
|
||||||
saveSettingBool(magicItemAnimationsCheckBox, "use magic item animations", "Game");
|
saveSettingBool(magicItemAnimationsCheckBox, "use magic item animations", "Game");
|
||||||
saveSettingBool(normaliseRaceSpeedCheckBox, "normalise race speed", "Game");
|
saveSettingBool(normaliseRaceSpeedCheckBox, "normalise race speed", "Game");
|
||||||
if (animSourcesCheckBox->checkState())
|
|
||||||
{
|
|
||||||
saveSettingBool(weaponSheathingCheckBox, "weapon sheathing", "Game");
|
|
||||||
saveSettingBool(shieldSheathingCheckBox, "shield sheathing", "Game");
|
|
||||||
}
|
|
||||||
saveSettingBool(animSourcesCheckBox, "use additional anim sources", "Game");
|
saveSettingBool(animSourcesCheckBox, "use additional anim sources", "Game");
|
||||||
saveSettingBool(weaponSheathingCheckBox, "weapon sheathing", "Game");
|
saveSettingBool(weaponSheathingCheckBox, "weapon sheathing", "Game");
|
||||||
saveSettingBool(shieldSheathingCheckBox, "shield sheathing", "Game");
|
saveSettingBool(shieldSheathingCheckBox, "shield sheathing", "Game");
|
||||||
|
@ -201,4 +199,9 @@ void Launcher::AdvancedPage::slotAnimSourcesToggled(bool checked)
|
||||||
{
|
{
|
||||||
weaponSheathingCheckBox->setEnabled(checked);
|
weaponSheathingCheckBox->setEnabled(checked);
|
||||||
shieldSheathingCheckBox->setEnabled(checked);
|
shieldSheathingCheckBox->setEnabled(checked);
|
||||||
|
if (!checked)
|
||||||
|
{
|
||||||
|
weaponSheathingCheckBox->setCheckState(Qt::Unchecked);
|
||||||
|
shieldSheathingCheckBox->setCheckState(Qt::Unchecked);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -197,19 +197,6 @@
|
||||||
<property name="bottomMargin">
|
<property name="bottomMargin">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="shieldSheathingCheckBox">
|
|
||||||
<property name="enabled">
|
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
|
||||||
<property name="toolTip">
|
|
||||||
<string><html><head/><body><p>Render holstered shield, requires modded assets.</p></body></html></string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Shield sheathing</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="weaponSheathingCheckBox">
|
<widget class="QCheckBox" name="weaponSheathingCheckBox">
|
||||||
<property name="enabled">
|
<property name="enabled">
|
||||||
|
@ -223,6 +210,19 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="shieldSheathingCheckBox">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><html><head/><body><p>Render holstered shield, requires modded assets.</p></body></html></string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Shield sheathing</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|
Loading…
Reference in a new issue