Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/frontend/StarGraphicsMenu.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-06-28 17:10:17 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2024-06-28 17:10:17 +1000
commit54ac208dd5a54c827567a3a86e152680ae7663ea (patch)
tree86218292795659a558f5ae65a712f1e6ed0e33ea /source/frontend/StarGraphicsMenu.cpp
parentbb5387fbdb90ec5e3b387ed73718b281b207252b (diff)
lighting: disable the new additive point light behavior when new lighting is off
Diffstat (limited to 'source/frontend/StarGraphicsMenu.cpp')
-rw-r--r--source/frontend/StarGraphicsMenu.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/frontend/StarGraphicsMenu.cpp b/source/frontend/StarGraphicsMenu.cpp
index 6713c72..efce444 100644
--- a/source/frontend/StarGraphicsMenu.cpp
+++ b/source/frontend/StarGraphicsMenu.cpp
@@ -97,10 +97,10 @@ GraphicsMenu::GraphicsMenu() {
Root::singleton().configuration()->set("monochromeLighting", checked);
syncGui();
});
- reader.registerCallback("objectLightingCheckbox", [=](Widget*) {
- bool checked = fetchChild<ButtonWidget>("objectLightingCheckbox")->isChecked();
- m_localChanges.set("newObjectLighting", checked);
- Root::singleton().configuration()->set("newObjectLighting", checked);
+ reader.registerCallback("newLightingCheckbox", [=](Widget*) {
+ bool checked = fetchChild<ButtonWidget>("newLightingCheckbox")->isChecked();
+ m_localChanges.set("newLighting", checked);
+ Root::singleton().configuration()->set("newLighting", checked);
syncGui();
});
@@ -162,7 +162,7 @@ StringList const GraphicsMenu::ConfigKeys = {
"antiAliasing",
"hardwareCursor",
"monochromeLighting",
- "newObjectLighting"
+ "newLighting"
};
void GraphicsMenu::initConfig() {
@@ -229,7 +229,7 @@ void GraphicsMenu::syncGui() {
fetchChild<ButtonWidget>("multiTextureCheckbox")->setChecked(m_localChanges.get("useMultiTexturing").optBool().value(true));
fetchChild<ButtonWidget>("antiAliasingCheckbox")->setChecked(m_localChanges.get("antiAliasing").toBool());
fetchChild<ButtonWidget>("monochromeCheckbox")->setChecked(m_localChanges.get("monochromeLighting").toBool());
- fetchChild<ButtonWidget>("objectLightingCheckbox")->setChecked(m_localChanges.get("newObjectLighting").optBool().value(true));
+ fetchChild<ButtonWidget>("newLightingCheckbox")->setChecked(m_localChanges.get("newLighting").optBool().value(true));
fetchChild<ButtonWidget>("hardwareCursorCheckbox")->setChecked(m_localChanges.get("hardwareCursor").toBool());
}