2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 21:47:42 +00:00

Complete CArtifactDoll

This commit is contained in:
Jack Andersen
2017-05-12 18:57:24 -10:00
parent e13583ff80
commit 9796ba9244
9 changed files with 292 additions and 48 deletions

View File

@@ -1,4 +1,7 @@
#include "CLogBookScreen.hpp"
#include "GuiSys/CGuiModel.hpp"
#include "GuiSys/CGuiTableGroup.hpp"
#include "MP1.hpp"
namespace urde
{
@@ -9,7 +12,27 @@ CLogBookScreen::CLogBookScreen(const CStateManager& mgr, CGuiFrame& frame,
const CStringTable& pauseStrg)
: CPauseScreenBase(mgr, frame, pauseStrg)
{
x258_artifactDoll = std::make_unique<CArtifactDoll>();
CMain::EnsureWorldPaksReady();
InitializeLogBook();
}
CLogBookScreen::~CLogBookScreen()
{
CArtifactDoll::CompleteArtifactHeadScan(x4_mgr);
for (CGuiModel* model : x144_model_titles)
model->SetLocalTransform(model->GetTransform());
CMain::EnsureWorldPakReady(g_GameState->CurrentWorldAssetId());
}
void CLogBookScreen::InitializeLogBook()
{
}
bool CLogBookScreen::IsArtifactCategorySelected() const
{
return x70_tablegroup_leftlog->GetUserSelection() == 4;
}
bool CLogBookScreen::VReady() const