Match Infocenter::UpdateFrameHot

This commit is contained in:
Christian Semmler 2024-01-31 09:07:00 -05:00
parent 5b75bf0145
commit 73a3214019
2 changed files with 285 additions and 5 deletions

View File

@ -771,35 +771,41 @@ void Infocenter::FUN_10070d10(MxS32 p_x, MxS32 p_y)
void Infocenter::UpdateFrameHot(MxBool p_display) void Infocenter::UpdateFrameHot(MxBool p_display)
{ {
if (p_display) { if (p_display) {
MxU32 x; MxS32 x, y;
switch (GameState()->GetUnknownC()) { switch (GameState()->GetUnknownC()) {
case 1: case 1:
x = 302; x = 302;
y = 81;
break; break;
case 2: case 2:
x = 204; x = 204;
y = 81;
break; break;
case 3: case 3:
x = 253; x = 253;
y = 81;
break; break;
case 4: case 4:
x = 353; x = 353;
y = 81;
break; break;
case 5: case 5:
x = 399; x = 399;
y = 81;
break; break;
default: default:
return; return;
} }
MxS32 oldZ = m_frameHotBitmap->GetDisplayZ(); MxS32 originalDisplayZ = m_frameHotBitmap->GetDisplayZ();
m_frameHotBitmap->SetDisplayZ(1000); m_frameHotBitmap->SetDisplayZ(1000);
VideoManager()->SortPresenterList(); VideoManager()->SortPresenterList();
m_frameHotBitmap->Enable(TRUE);
m_frameHotBitmap->VTable0x88(x, 81);
m_frameHotBitmap->SetDisplayZ(oldZ); m_frameHotBitmap->Enable(TRUE);
m_frameHotBitmap->VTable0x88(x, y);
m_frameHotBitmap->SetDisplayZ(originalDisplayZ);
} }
else { else {
if (m_frameHotBitmap) { if (m_frameHotBitmap) {

274
out.html Normal file

File diff suppressed because one or more lines are too long