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

67 lines
2.0 KiB
C++

#pragma once
#include "Game/System/NerveExecutor.hpp"
class LayoutActor;
class Nerve;
class ButtonPaneController : public NerveExecutor {
public:
/// @brief Creates a new `ButtonPaneController`.
ButtonPaneController(LayoutActor* pHost, const char* pPaneName, const char* pBoundingPaneName, u32 animIndex, bool);
void update();
void appear();
void disappear();
bool trySelect();
bool isHidden() const;
bool isPointing() const;
bool isPointingTrigger() const;
bool isTimingForSelectedSe() const;
void invalidateDecide();
void invalidateAppearance();
bool isAppearing() const;
bool isDisappearing() const;
void forceToWait();
void forceToHide();
bool isFirstStepWait() const;
bool isWait() const;
bool isDecidedWait() const;
bool onPointing();
void decide();
bool isPointingPaneDirect() const;
bool startAnimAtFirstStep(const char*);
bool startPointingAnimAtFirstStep(const char*);
void setNerveAtAnimStopped(const Nerve*);
bool isPointingPane() const;
bool tryPointing(bool);
bool tryNotPointing(bool);
f32 calcPointingAnimStartFrame() const;
void exeHidden();
void exeAppear();
void exeWait();
void exePointing();
void exeNotPointing();
void exeDecided();
void exeDecidedWait();
void exeDecidedToDisappear();
void exeDisappear();
/* 0x08 */ LayoutActor* mHost;
/* 0x0C */ const char* mPaneName;
/* 0x10 */ const char* mBoundingPaneName;
/* 0x14 */ u32 mAnimIndex;
/* 0x18 */ bool _18;
/* 0x1C */ f32 mPointingAnimStartFrame;
/* 0x20 */ bool mIsSelected;
/* 0x21 */ bool mIsPointing;
/* 0x22 */ bool _22;
/* 0x23 */ bool _23;
/* 0x24 */ bool _24;
/* 0x28 */ const char* mAppearAnimName;
/* 0x2C */ const char* mWaitAnimName;
/* 0x30 */ const char* mDecideAnimName;
/* 0x34 */ const char* mPointingAnimName;
/* 0x38 */ const char* mNotPointingAnimName;
/* 0x3C */ const char* mDisappearAnimName;
};