Resolve some TODO

This commit is contained in:
Christian Semmler 2024-01-31 08:21:16 -05:00
parent 4695ce178c
commit a3c2926903

View File

@ -530,6 +530,7 @@ MxU8 Infocenter::HandleClick(LegoControlManagerEvent& p_param)
case c_leftArrowCtl: case c_leftArrowCtl:
m_infocenterState->SetUnknown0x74(14); m_infocenterState->SetUnknown0x74(14);
StopCurrentAction(); StopCurrentAction();
if (GameState()->GetUnknown10() == 0) { if (GameState()->GetUnknown10() == 0) {
m_radio.Stop(); m_radio.Stop();
TransitionManager()->StartTransition(MxTransitionManager::e_pixelation, 50, FALSE, FALSE); TransitionManager()->StartTransition(MxTransitionManager::e_pixelation, 50, FALSE, FALSE);
@ -544,14 +545,17 @@ MxU8 Infocenter::HandleClick(LegoControlManagerEvent& p_param)
case c_rightArrowCtl: case c_rightArrowCtl:
m_infocenterState->SetUnknown0x74(14); m_infocenterState->SetUnknown0x74(14);
StopCurrentAction(); StopCurrentAction();
if (GameState()->GetUnknown10() == 0) { if (GameState()->GetUnknown10() == 0) {
m_radio.Stop(); m_radio.Stop();
TransitionManager()->StartTransition(MxTransitionManager::e_pixelation, 50, FALSE, FALSE); TransitionManager()->StartTransition(MxTransitionManager::e_pixelation, 50, FALSE, FALSE);
m_transitionDestination = 13; m_transitionDestination = 13;
} }
else { else {
// todo MxU32 objectId = m_infocenterState->GetUnknown0x68().FUN_10014d00();
PlayAction((InfomainScript) objectId);
} }
break; break;
case c_infoCtl: case c_infoCtl:
m_radio.Stop(); m_radio.Stop();
@ -562,6 +566,7 @@ MxU8 Infocenter::HandleClick(LegoControlManagerEvent& p_param)
m_radio.Stop(); m_radio.Stop();
m_infocenterState->SetUnknown0x74(8); m_infocenterState->SetUnknown0x74(8);
} }
break; break;
case c_boatCtl: case c_boatCtl:
actionToPlay = c_boatCtlDescription; actionToPlay = c_boatCtlDescription;
@ -584,7 +589,7 @@ MxU8 Infocenter::HandleClick(LegoControlManagerEvent& p_param)
m_radio.Stop(); m_radio.Stop();
break; break;
case c_copCtlDescription: case c_copCtlDescription:
actionToPlay = c_medCtlDescription; actionToPlay = c_copCtlDescription;
m_radio.Stop(); m_radio.Stop();
break; break;
case c_bigInfoCtl: case c_bigInfoCtl:
@ -628,6 +633,7 @@ MxU8 Infocenter::HandleClick(LegoControlManagerEvent& p_param)
m_unk0x11c = (MxStillPresenter*) Find(m_atom, characterBitmap); m_unk0x11c = (MxStillPresenter*) Find(m_atom, characterBitmap);
} }
} }
return 1; return 1;
} }