mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-19 18:02:20 +02:00
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>
67 lines
2.0 KiB
C++
67 lines
2.0 KiB
C++
#pragma once
|
|
|
|
#include "Game/Screen/LayoutActor.hpp"
|
|
|
|
class ButtonPaneController;
|
|
class GalaxyStatusAccessor;
|
|
class SysInfoWindow;
|
|
|
|
class PowerStarList : public LayoutActor {
|
|
public:
|
|
class Separator {
|
|
public:
|
|
/// @brief Creates a new `Separator`.
|
|
Separator();
|
|
|
|
/* 0x00 */ f32 _0;
|
|
/* 0x04 */ TVec2f _4;
|
|
};
|
|
|
|
/// @brief Creates a new `PowerStarList`.
|
|
PowerStarList();
|
|
|
|
virtual void init(const JMapInfoIter& rIter);
|
|
virtual void calcAnim();
|
|
virtual void appear();
|
|
virtual void control();
|
|
|
|
void drawForMessageBoardCapture();
|
|
bool isAppearing() const;
|
|
bool isExecCapture() const;
|
|
ButtonPaneController* createButtonController(const char*, const char*);
|
|
void resetButtonAll();
|
|
void updateButtonAppearance();
|
|
void updateList(s32, bool);
|
|
wchar_t* makeGalaxyNameText(wchar_t*, const GalaxyStatusAccessor*, bool) const;
|
|
wchar_t* makeStarNumText(wchar_t*, const GalaxyStatusAccessor*, bool) const;
|
|
wchar_t* makeCoinText(wchar_t*, const GalaxyStatusAccessor*, bool) const;
|
|
wchar_t* makeCrownText(wchar_t*, const GalaxyStatusAccessor*, bool) const;
|
|
wchar_t* makeRaceNameText(wchar_t*, int, bool) const;
|
|
wchar_t* makeRaceTimeText(wchar_t*, int, bool) const;
|
|
void startScrollAnimNext(bool);
|
|
void startScrollAnimPrev();
|
|
bool tryShowSeparator(s32, f32);
|
|
void setSeparatorPaneSize();
|
|
void setTotalPowerStarNumForMessageBoardCapture();
|
|
void exeAppear();
|
|
void exeWait();
|
|
void exeDisappear();
|
|
void exePageNext();
|
|
void exePagePrev();
|
|
void exeCaptureStart();
|
|
void exeCaptureConfirm();
|
|
void exeCaptureWait();
|
|
void exeCaptureSend();
|
|
|
|
private:
|
|
/* 0x20 */ ButtonPaneController* mArrowUpButtonCtrl;
|
|
/* 0x24 */ ButtonPaneController* mArrowDownButtonCtrl;
|
|
/* 0x28 */ ButtonPaneController* mCaptureButtonCtrl;
|
|
/* 0x2C */ SysInfoWindow* mSysInfoWindow;
|
|
/* 0x30 */ s32 mPageNo;
|
|
/* 0x34 */ s32 mPageNum;
|
|
/* 0x38 */ Separator* mSeparatorArray;
|
|
/* 0x3C */ u32 mMailMessageLength;
|
|
/* 0x40 */ wchar_t* mMailMessage;
|
|
};
|