feat(overlay): inherit zoom and add zoom factor (#6016)

This commit is contained in:
nerix
2025-03-02 15:28:47 +01:00
committed by GitHub
parent 49a6d75180
commit 13dfe716b8
9 changed files with 172 additions and 45 deletions
+10
View File
@@ -285,6 +285,16 @@ void Settings::setClampedUiScale(float value)
this->uiScale.setValue(std::clamp(value, 0.2F, 10.F));
}
float Settings::getClampedOverlayScale() const
{
return std::clamp(this->overlayScaleFactor.getValue(), 0.2F, 10.F);
}
void Settings::setClampedOverlayScale(float value)
{
this->overlayScaleFactor.setValue(std::clamp(value, 0.2F, 10.F));
}
Settings &Settings::instance()
{
assert(instance_ != nullptr);