From 54ac208dd5a54c827567a3a86e152680ae7663ea Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Fri, 28 Jun 2024 17:10:17 +1000 Subject: lighting: disable the new additive point light behavior when new lighting is off --- source/frontend/StarGraphicsMenu.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source/frontend/StarGraphicsMenu.cpp') 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("objectLightingCheckbox")->isChecked(); - m_localChanges.set("newObjectLighting", checked); - Root::singleton().configuration()->set("newObjectLighting", checked); + reader.registerCallback("newLightingCheckbox", [=](Widget*) { + bool checked = fetchChild("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("multiTextureCheckbox")->setChecked(m_localChanges.get("useMultiTexturing").optBool().value(true)); fetchChild("antiAliasingCheckbox")->setChecked(m_localChanges.get("antiAliasing").toBool()); fetchChild("monochromeCheckbox")->setChecked(m_localChanges.get("monochromeLighting").toBool()); - fetchChild("objectLightingCheckbox")->setChecked(m_localChanges.get("newObjectLighting").optBool().value(true)); + fetchChild("newLightingCheckbox")->setChecked(m_localChanges.get("newLighting").optBool().value(true)); fetchChild("hardwareCursorCheckbox")->setChecked(m_localChanges.get("hardwareCursor").toBool()); } -- cgit v1.2.3