2017-05-02 04:00:38 +00:00
|
|
|
#ifndef __URDE_CLOGBOOKSCREEN_HPP__
|
|
|
|
#define __URDE_CLOGBOOKSCREEN_HPP__
|
|
|
|
|
|
|
|
#include "CInGameGuiManager.hpp"
|
|
|
|
#include "CPauseScreenBase.hpp"
|
2017-05-13 04:57:24 +00:00
|
|
|
#include "CArtifactDoll.hpp"
|
2017-05-02 04:00:38 +00:00
|
|
|
|
2017-12-29 08:08:12 +00:00
|
|
|
namespace urde::MP1
|
2017-05-02 04:00:38 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
class CLogBookScreen : public CPauseScreenBase
|
|
|
|
{
|
2017-08-13 05:26:14 +00:00
|
|
|
rstl::reserved_vector<std::vector<std::pair<CAssetId, bool>>, 5> x19c_scanCompletes;
|
2017-05-14 19:58:44 +00:00
|
|
|
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;
|
2017-05-13 04:57:24 +00:00
|
|
|
std::unique_ptr<CArtifactDoll> x258_artifactDoll;
|
2017-05-14 19:58:44 +00:00
|
|
|
|
|
|
|
enum class ELeavePauseState
|
|
|
|
{
|
|
|
|
InPause = 0,
|
|
|
|
LeavingPause = 1,
|
|
|
|
LeftPause = 2
|
|
|
|
};
|
|
|
|
|
|
|
|
ELeavePauseState x25c_leavePauseState = ELeavePauseState::InPause;
|
2017-05-13 04:57:24 +00:00
|
|
|
union
|
|
|
|
{
|
|
|
|
struct
|
|
|
|
{
|
2017-05-14 19:58:44 +00:00
|
|
|
bool x260_24_loaded : 1;
|
|
|
|
bool x260_25_inTextScroll : 1;
|
|
|
|
bool x260_26_exitTextScroll : 1;
|
2017-05-13 04:57:24 +00:00
|
|
|
};
|
|
|
|
s32 _dummy = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
void InitializeLogBook();
|
2017-05-14 19:58:44 +00:00
|
|
|
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;
|
2017-08-13 05:26:14 +00:00
|
|
|
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:
|
|
|
|
CLogBookScreen(const CStateManager& mgr, CGuiFrame& frame, const CStringTable& pauseStrg);
|
2017-05-13 04:57:24 +00:00
|
|
|
~CLogBookScreen();
|
|
|
|
|
2017-05-02 04:00:38 +00:00
|
|
|
|
2017-05-14 19:58:44 +00:00
|
|
|
bool InputDisabled() const;
|
|
|
|
void TransitioningAway();
|
|
|
|
void Update(float dt, CRandom16& rand, CArchitectureQueue& archQueue);
|
|
|
|
void Touch();
|
|
|
|
void ProcessControllerInput(const CFinalInput& input);
|
|
|
|
void Draw(float transInterp, float totalAlpha, float yOff);
|
2017-05-02 04:00:38 +00:00
|
|
|
bool VReady() const;
|
2017-05-12 19:54:35 +00:00
|
|
|
void VActivate();
|
2017-05-14 19:58:44 +00:00
|
|
|
void RightTableSelectionChanged(int selBegin, int selEnd);
|
|
|
|
void ChangedMode(EMode oldMode);
|
|
|
|
void UpdateRightTable();
|
|
|
|
bool ShouldLeftTableAdvance() const;
|
|
|
|
bool ShouldRightTableAdvance() const;
|
2017-05-02 04:00:38 +00:00
|
|
|
u32 GetRightTableCount() const;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __URDE_CLOGBOOKSCREEN_HPP__
|