Files
bigmak94andClaude Opus 5.5 4b395efe5c Add the Petari decompilation (SMGCommunity/Petari@0a5c660)
The sources of Petari (https://github.com/SMGCommunity/Petari), the
Super Mario Galaxy decompilation by the SMGCommunity, at commit
0a5c6608dc3b4c44a9aa68c2535d1793dc565f02, unchanged but for LF line
endings: LICENSE (as LICENSE-Petari.txt; CC0 1.0), include/, libs/ and
src/.  Left out: the game data Petari keeps from the original
executable, the error message archive (include/Game/System/
ErrorArchive.hpp) and two tables (src/Game/System/GalaxyID.bcsv and
StoryEvent.bcsv); GalaxyQuest's converter takes them from the player's
own disc.  The port's changes follow in the next commit, so
`git diff petari-base -- decomp` shows them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 01:59:38 +02:00

128 lines
2.8 KiB
C++

#pragma once
#include "Game/Screen/LayoutActor.hpp"
class TalkMessageCtrl;
class TalkTextFormer;
class JMapInfoIter;
class IconAButton;
class TalkBalloon : public LayoutActor {
public:
TalkBalloon(const char*);
virtual void init(const JMapInfoIter&);
virtual void kill();
virtual void open(TalkMessageCtrl*);
virtual void close();
virtual void updateBalloon();
virtual void updateTalking();
virtual void pauseOff();
virtual bool turnPage();
virtual bool hasNextPage();
virtual void skipMessage();
virtual bool isTextAppearedAll();
void create(const char*, bool, bool);
/* 0x20 */ TalkMessageCtrl* mMessageCtrl;
/* 0x24 */ TalkTextFormer* mTextFormer;
bool _28;
bool _29;
};
class TalkBalloonShort : public TalkBalloon {
public:
TalkBalloonShort(const char*);
virtual void init(const JMapInfoIter&);
virtual void open(TalkMessageCtrl*);
virtual void close();
virtual void updateBalloon();
void initInterval();
void exeTalk();
void exeClose();
void exeOpen();
u32 _2C;
};
class TalkBalloonEvent : public TalkBalloon {
public:
TalkBalloonEvent(const char*);
virtual void init(const JMapInfoIter&);
virtual void open(TalkMessageCtrl*);
virtual void close();
virtual bool turnPage();
virtual void skipMessage();
virtual bool isTextAppearedAll();
void initInterval();
void exeTalk();
void exeWait();
void exeOpen();
void updateBeak();
void exeClose();
u32 _2C;
/* 0x30 */ IconAButton* mAButton;
};
class TalkBalloonSign : public TalkBalloonEvent {
public:
TalkBalloonSign(const char*);
virtual void init(const JMapInfoIter&);
};
class TalkBalloonInfo : public TalkBalloon {
public:
TalkBalloonInfo(const char*);
virtual void open(TalkMessageCtrl*);
virtual void close();
virtual bool isTextAppearedAll() {
return true;
}
virtual void updateBalloon() {
}
virtual void updateTalking() {
}
};
class TalkBalloonIcon : public TalkBalloonShort {
public:
TalkBalloonIcon(const char*);
virtual void init(const JMapInfoIter&);
virtual void open(TalkMessageCtrl*);
};
class TalkBalloonHolder {
public:
TalkBalloonHolder();
void pauseOff();
void skipMessage();
TalkBalloon* getBalloon(const TalkMessageCtrl*);
void balloonOff();
void update();
bool isActiveBalloonShort() const;
/* 0x00 */ TalkBalloonShort** mBalloonShortArray;
/* 0x04 */ TalkBalloonEvent* mBalloonEvent;
/* 0x08 */ TalkBalloonInfo* mBalloonInfo;
/* 0x0C */ TalkBalloonSign* mBalloonSign;
/* 0x10 */ TalkBalloonIcon* mBalloonIcon;
s32 _14;
/* 0x18 */ IconAButton* mAButton;
};
namespace MR {
void recoverSoundVolumeSetting(u32);
bool isCameraInterpolatingNearlyEnd();
}; // namespace MR