Implement/match LegoBackgroundColor::SetLightColor and related (#758)

This commit is contained in:
Christian Semmler
2024-03-29 16:50:00 -04:00
committed by GitHub
parent 369f3fba22
commit ed9e9efdab
6 changed files with 61 additions and 17 deletions

View File

@@ -350,7 +350,7 @@ MxResult LegoGameState::Load(MxULong p_slot)
}
} while (status != 2);
m_backgroundColor->SetLights();
m_backgroundColor->SetLightColor();
lightPosition = VariableTable()->GetVariable("lightposition");
if (lightPosition) {
@@ -1072,7 +1072,7 @@ void LegoGameState::RegisterState(LegoState* p_state)
void LegoGameState::Init()
{
m_backgroundColor->SetValue("set 56 54 68");
m_backgroundColor->SetLights();
m_backgroundColor->SetLightColor();
m_tempBackgroundColor->SetValue("set 56 54 68");
VariableTable()->SetVariable("lightposition", "2");
SetLightPosition(2);