diff --git a/apps/launcher/advancedpage.cpp b/apps/launcher/advancedpage.cpp
index dc0866f74a..b5da49ed5e 100644
--- a/apps/launcher/advancedpage.cpp
+++ b/apps/launcher/advancedpage.cpp
@@ -82,9 +82,10 @@ bool Launcher::AdvancedPage::loadSettings()
loadSettingBool(requireAppropriateAmmunitionCheckBox, "only appropriate ammunition bypasses resistance", "Game");
loadSettingBool(magicItemAnimationsCheckBox, "use magic item animations", "Game");
loadSettingBool(normaliseRaceSpeedCheckBox, "normalise race speed", "Game");
+ connect(animSourcesCheckBox, SIGNAL(toggled(bool)), this, SLOT(slotAnimSourcesToggled(bool)));
+ loadSettingBool(animSourcesCheckBox, "use additional anim sources", "Game");
loadSettingBool(weaponSheathingCheckBox, "weapon sheathing", "Game");
loadSettingBool(shieldSheathingCheckBox, "shield sheathing", "Game");
- loadSettingBool(animSourcesCheckBox, "use additional anim sources", "Game");
// Input Settings
loadSettingBool(grabCursorCheckBox, "grab cursor", "Input");
@@ -145,9 +146,14 @@ void Launcher::AdvancedPage::saveSettings()
saveSettingBool(requireAppropriateAmmunitionCheckBox, "only appropriate ammunition bypasses resistance", "Game");
saveSettingBool(magicItemAnimationsCheckBox, "use magic item animations", "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(weaponSheathingCheckBox, "weapon sheathing", "Game");
saveSettingBool(shieldSheathingCheckBox, "shield sheathing", "Game");
- saveSettingBool(animSourcesCheckBox, "use additional anim sources", "Game");
// Input Settings
saveSettingBool(grabCursorCheckBox, "grab cursor", "Input");
@@ -190,3 +196,9 @@ void Launcher::AdvancedPage::slotLoadedCellsChanged(QStringList cellNames)
{
loadCellsForAutocomplete(cellNames);
}
+
+void Launcher::AdvancedPage::slotAnimSourcesToggled(bool checked)
+{
+ weaponSheathingCheckBox->setEnabled(checked);
+ shieldSheathingCheckBox->setEnabled(checked);
+}
diff --git a/apps/launcher/advancedpage.hpp b/apps/launcher/advancedpage.hpp
index 59de3d319b..3f5e5bfa7a 100644
--- a/apps/launcher/advancedpage.hpp
+++ b/apps/launcher/advancedpage.hpp
@@ -29,6 +29,7 @@ namespace Launcher
private slots:
void on_skipMenuCheckBox_stateChanged(int state);
void on_runScriptAfterStartupBrowseButton_clicked();
+ void slotAnimSourcesToggled(bool checked);
private:
Files::ConfigurationManager &mCfgMgr;
diff --git a/files/ui/advancedpage.ui b/files/ui/advancedpage.ui
index b22b2d9ea9..79a9e9f5dc 100644
--- a/files/ui/advancedpage.ui
+++ b/files/ui/advancedpage.ui
@@ -169,26 +169,6 @@
- -
-
-
- <html><head/><body><p>Render holstered weapons (with quivers and scabbards), requires modded assets</p></body></html>
-
-
- Weapon sheathing
-
-
-
- -
-
-
- <html><head/><body><p>Render holstered shield, requires modded assets</p></body></html>
-
-
- Shield sheathing
-
-
-
-
@@ -199,6 +179,53 @@
+ -
+
+
+
+ 6
+
+
+ 20
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
-
+
+
+ false
+
+
+ <html><head/><body><p>Render holstered shield, requires modded assets.</p></body></html>
+
+
+ Shield sheathing
+
+
+
+ -
+
+
+ false
+
+
+ <html><head/><body><p>Render holstered weapons (with quivers and scabbards), requires modded assets.</p></body></html>
+
+
+ Weapon sheathing
+
+
+
+
+
+