mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-31 12:11:15 +00:00
WIP Match
This commit is contained in:
parent
926f5cb70d
commit
a9f55ff930
@ -87,18 +87,23 @@ void InfocenterDoor::ReadyWorld()
|
|||||||
// FUNCTION: LEGO1 0x10037a90
|
// FUNCTION: LEGO1 0x10037a90
|
||||||
MxLong InfocenterDoor::HandleClick(LegoControlManagerEvent& p_param)
|
MxLong InfocenterDoor::HandleClick(LegoControlManagerEvent& p_param)
|
||||||
{
|
{
|
||||||
|
MxLong result = 0;
|
||||||
|
|
||||||
if (p_param.GetUnknown0x28() == 1) {
|
if (p_param.GetUnknown0x28() == 1) {
|
||||||
DeleteObjects(&m_atom, 500, 510);
|
DeleteObjects(&m_atom, 500, 510);
|
||||||
|
|
||||||
switch (p_param.GetClickedObjectId()) {
|
switch (p_param.GetClickedObjectId()) {
|
||||||
case 1:
|
case 1:
|
||||||
m_unk0xf8 = 13;
|
m_unk0xf8 = 13;
|
||||||
|
result = 1;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
m_unk0xf8 = 5;
|
m_unk0xf8 = 5;
|
||||||
|
result = 1;
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
m_unk0xf8 = 2;
|
m_unk0xf8 = 2;
|
||||||
|
result = 1;
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
if (GameState()->GetUnknownC()) {
|
if (GameState()->GetUnknownC()) {
|
||||||
@ -112,7 +117,6 @@ MxLong InfocenterDoor::HandleClick(LegoControlManagerEvent& p_param)
|
|||||||
action.SetAtomId(*g_infodoorScript);
|
action.SetAtomId(*g_infodoorScript);
|
||||||
BackgroundAudioManager()->LowerVolume();
|
BackgroundAudioManager()->LowerVolume();
|
||||||
Start(&action);
|
Start(&action);
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -121,15 +125,15 @@ MxLong InfocenterDoor::HandleClick(LegoControlManagerEvent& p_param)
|
|||||||
action.SetAtomId(*g_infodoorScript);
|
action.SetAtomId(*g_infodoorScript);
|
||||||
BackgroundAudioManager()->LowerVolume();
|
BackgroundAudioManager()->LowerVolume();
|
||||||
Start(&action);
|
Start(&action);
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
default:
|
result = 1;
|
||||||
return 0;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
TransitionManager()->StartTransition(MxTransitionManager::e_pixelation, 50, FALSE, FALSE);
|
TransitionManager()->StartTransition(MxTransitionManager::e_pixelation, 50, FALSE, FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x10037c80
|
// FUNCTION: LEGO1 0x10037c80
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user