Match Infocenter::HandleButtonUp (#1383)

This commit is contained in:
Christian Semmler
2025-02-11 15:23:20 -07:00
committed by GitHub
parent 956c900ec6
commit 347da7d555
3 changed files with 28 additions and 19 deletions

View File

@@ -5,6 +5,7 @@
#include "legogamestate.h"
#include "legostate.h"
#include "legoworld.h"
#include "misc.h"
#include "mxrect32.h"
#include "radio.h"
@@ -44,6 +45,13 @@ public:
// FUNCTION: BETA10 0x10031bd0
MxBool HasRegistered() { return m_letters[0] != NULL; }
// FUNCTION: BETA10 0x10031c10
InfomainScript::Script GetNextLeaveDialogue()
{
return (InfomainScript::Script) m_leaveDialogue[GameState()->GetCurrentAct()].Next();
}
// TODO: These probably don't exist according to BETA
Playlist& GetExitDialogueAct1() { return m_exitDialogueAct1; }
Playlist& GetExitDialogueAct23() { return m_exitDialogueAct23; }
Playlist& GetReturnDialogue(LegoGameState::Act p_act) { return m_returnDialogue[p_act]; }

View File

@@ -205,7 +205,9 @@ public:
// FUNCTION: BETA10 0x1004a2d0
const char* GetActorName() { return g_actorNames[GetActorId()]; }
// FUNCTION: BETA10 0x1002b4c0
Act GetCurrentAct() { return m_currentAct; }
Act GetLoadedAct() { return m_loadedAct; }
Area GetPreviousArea() { return m_previousArea; }
Area GetUnknown0x42c() { return m_unk0x42c; }