mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-28 10:41:15 +00:00
Match GasStation::HandleClick
This commit is contained in:
parent
3ac8999f4d
commit
1782c8e5f8
@ -312,36 +312,41 @@ MxLong GasStation::HandleButtonDown(LegoControlManagerEvent& p_param)
|
|||||||
// FUNCTION: LEGO1 0x10005b20
|
// FUNCTION: LEGO1 0x10005b20
|
||||||
MxLong GasStation::HandleClick(LegoControlManagerEvent& p_param)
|
MxLong GasStation::HandleClick(LegoControlManagerEvent& p_param)
|
||||||
{
|
{
|
||||||
switch (p_param.GetClickedObjectId()) {
|
if (p_param.GetUnknown0x28() == 1) {
|
||||||
case GarageScript::c_LeftArrow_Ctl:
|
MxDSAction action;
|
||||||
case GarageScript::c_RightArrow_Ctl:
|
|
||||||
m_state->m_unk0x14.m_unk0x00 = 0;
|
|
||||||
m_destLocation = LegoGameState::Area::e_garadoor;
|
|
||||||
|
|
||||||
m_state->FUN_10006490();
|
switch (p_param.GetClickedObjectId()) {
|
||||||
m_radio.Stop();
|
case GarageScript::c_LeftArrow_Ctl:
|
||||||
BackgroundAudioManager()->Stop();
|
case GarageScript::c_RightArrow_Ctl:
|
||||||
TransitionManager()->StartTransition(MxTransitionManager::e_mosaic, 50, FALSE, FALSE);
|
m_state->m_unk0x14.m_unk0x00 = 0;
|
||||||
break;
|
m_destLocation = LegoGameState::Area::e_garadoor;
|
||||||
case GarageScript::c_Info_Ctl:
|
|
||||||
m_state->m_unk0x14.m_unk0x00 = 0;
|
|
||||||
m_destLocation = LegoGameState::Area::e_infomain;
|
|
||||||
|
|
||||||
m_state->FUN_10006490();
|
m_state->FUN_10006490();
|
||||||
m_radio.Stop();
|
m_radio.Stop();
|
||||||
BackgroundAudioManager()->Stop();
|
BackgroundAudioManager()->Stop();
|
||||||
TransitionManager()->StartTransition(MxTransitionManager::e_mosaic, 50, FALSE, FALSE);
|
TransitionManager()->StartTransition(MxTransitionManager::e_mosaic, 50, FALSE, FALSE);
|
||||||
break;
|
break;
|
||||||
case GarageScript::c_Buggy_Ctl:
|
case GarageScript::c_Info_Ctl:
|
||||||
m_state->m_unk0x14.m_unk0x00 = 0;
|
m_state->m_unk0x14.m_unk0x00 = 0;
|
||||||
m_destLocation = LegoGameState::Area::e_dunecarbuild;
|
m_destLocation = LegoGameState::Area::e_infomain;
|
||||||
|
|
||||||
m_state->FUN_10006490();
|
m_state->FUN_10006490();
|
||||||
m_radio.Stop();
|
m_radio.Stop();
|
||||||
BackgroundAudioManager()->Stop();
|
BackgroundAudioManager()->Stop();
|
||||||
TransitionManager()->StartTransition(MxTransitionManager::e_mosaic, 50, FALSE, FALSE);
|
TransitionManager()->StartTransition(MxTransitionManager::e_mosaic, 50, FALSE, FALSE);
|
||||||
break;
|
break;
|
||||||
|
case GarageScript::c_Buggy_Ctl:
|
||||||
|
m_state->m_unk0x14.m_unk0x00 = 0;
|
||||||
|
m_destLocation = LegoGameState::Area::e_dunecarbuild;
|
||||||
|
|
||||||
|
m_state->FUN_10006490();
|
||||||
|
m_radio.Stop();
|
||||||
|
BackgroundAudioManager()->Stop();
|
||||||
|
TransitionManager()->StartTransition(MxTransitionManager::e_mosaic, 50, FALSE, FALSE);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user