|
|
|
@ -205,6 +205,8 @@ bool Launcher::AdvancedPage::loadSettings()
|
|
|
|
|
loadSettingBool(useZoomOnMapCheckBox, "allow zooming", "Map");
|
|
|
|
|
loadSettingBool(graphicHerbalismCheckBox, "graphic herbalism", "Game");
|
|
|
|
|
scalingSpinBox->setValue(Settings::Manager::getFloat("scaling factor", "GUI"));
|
|
|
|
|
fontSizeSpinBox->setValue(Settings::Manager::getInt("font size", "GUI"));
|
|
|
|
|
ttfResolutionSpinBox->setValue(Settings::Manager::getInt("ttf resolution", "GUI"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Bug fixes
|
|
|
|
@ -365,9 +367,18 @@ void Launcher::AdvancedPage::saveSettings()
|
|
|
|
|
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"))
|
|
|
|
|
Settings::Manager::setFloat("scaling factor", "GUI", uiScalingFactor);
|
|
|
|
|
|
|
|
|
|
int fontSize = fontSizeSpinBox->value();
|
|
|
|
|
if (fontSize != Settings::Manager::getInt("font size", "GUI"))
|
|
|
|
|
Settings::Manager::setInt("font size", "GUI", fontSize);
|
|
|
|
|
|
|
|
|
|
int ttfResolution = ttfResolutionSpinBox->value();
|
|
|
|
|
if (ttfResolution != Settings::Manager::getInt("ttf resolution", "GUI"))
|
|
|
|
|
Settings::Manager::setInt("ttf resolution", "GUI", ttfResolution);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Bug fixes
|
|
|
|
|