2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2017-05-02 04:00:38 +00:00
|
|
|
|
2019-09-28 02:53:03 +00:00
|
|
|
#include <memory>
|
|
|
|
#include <utility>
|
|
|
|
#include <vector>
|
|
|
|
|
2019-10-15 14:22:47 +00:00
|
|
|
#include "Runtime/CSaveWorld.hpp"
|
|
|
|
#include "Runtime/CToken.hpp"
|
2019-09-28 02:53:03 +00:00
|
|
|
#include "Runtime/rstl.hpp"
|
|
|
|
#include "Runtime/MP1/CPauseScreenBase.hpp"
|
2017-05-02 04:00:38 +00:00
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
namespace metaforce {
|
2019-10-15 14:22:47 +00:00
|
|
|
class CPlayerState;
|
|
|
|
class CScannableObjectInfo;
|
|
|
|
class CStringTable;
|
2021-04-10 08:42:06 +00:00
|
|
|
} // namespace metaforce
|
2019-10-15 14:22:47 +00:00
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
namespace metaforce::MP1 {
|
2019-10-15 14:22:47 +00:00
|
|
|
class CArtifactDoll;
|
2018-12-08 05:30:43 +00:00
|
|
|
|
|
|
|
class CLogBookScreen : public CPauseScreenBase {
|
|
|
|
rstl::reserved_vector<std::vector<std::pair<CAssetId, bool>>, 5> x19c_scanCompletes;
|
|
|
|
std::vector<std::pair<TCachedToken<CScannableObjectInfo>, TCachedToken<CStringTable>>> x1f0_curViewScans;
|
|
|
|
rstl::reserved_vector<std::vector<std::pair<TLockedToken<CScannableObjectInfo>, TLockedToken<CStringTable>>>, 5>
|
|
|
|
x200_viewScans;
|
|
|
|
float x254_viewInterp = 0.f;
|
|
|
|
std::unique_ptr<CArtifactDoll> x258_artifactDoll;
|
2020-04-10 19:25:40 +00:00
|
|
|
enum class ELeavePauseState {
|
|
|
|
InPause = 0,
|
|
|
|
LeavingPause = 1,
|
|
|
|
LeftPause = 2
|
|
|
|
} x25c_leavePauseState = ELeavePauseState::InPause;
|
2020-04-21 07:22:41 +00:00
|
|
|
bool x260_24_loaded : 1 = false;
|
|
|
|
bool x260_25_inTextScroll : 1 = false;
|
|
|
|
bool x260_26_exitTextScroll : 1 = false;
|
2018-12-08 05:30:43 +00:00
|
|
|
|
|
|
|
void InitializeLogBook();
|
|
|
|
void UpdateRightTitles();
|
|
|
|
void PumpArticleLoad();
|
|
|
|
bool IsScanCategoryReady(CSaveWorld::EScanCategory category) const;
|
|
|
|
void UpdateBodyText();
|
|
|
|
void UpdateBodyImagesAndText();
|
|
|
|
int NextSurroundingArticleIndex(int cur) const;
|
|
|
|
bool IsArtifactCategorySelected() const;
|
|
|
|
int GetSelectedArtifactHeadScanIndex() const;
|
|
|
|
static bool IsScanComplete(CSaveWorld::EScanCategory category, CAssetId scan, const CPlayerState& playerState);
|
2017-05-13 04:57:24 +00:00
|
|
|
|
2017-05-02 04:00:38 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
CLogBookScreen(const CStateManager& mgr, CGuiFrame& frame, const CStringTable& pauseStrg);
|
2019-08-09 19:46:49 +00:00
|
|
|
~CLogBookScreen() override;
|
|
|
|
|
|
|
|
bool InputDisabled() const override;
|
|
|
|
void TransitioningAway() override;
|
|
|
|
void Update(float dt, CRandom16& rand, CArchitectureQueue& archQueue) override;
|
|
|
|
void Touch() override;
|
|
|
|
void ProcessControllerInput(const CFinalInput& input) override;
|
|
|
|
void Draw(float transInterp, float totalAlpha, float yOff) override;
|
|
|
|
bool VReady() const override;
|
|
|
|
void VActivate() override;
|
|
|
|
void RightTableSelectionChanged(int oldSel, int newSel) override;
|
|
|
|
void ChangedMode(EMode oldMode) override;
|
|
|
|
void UpdateRightTable() override;
|
|
|
|
bool ShouldLeftTableAdvance() const override;
|
|
|
|
bool ShouldRightTableAdvance() const override;
|
|
|
|
u32 GetRightTableCount() const override;
|
2017-05-02 04:00:38 +00:00
|
|
|
};
|
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
} // namespace metaforce::MP1
|