2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2017-02-18 02:19:50 +00:00
|
|
|
|
2019-09-28 02:53:03 +00:00
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
#include "Runtime/MP1/CInGameGuiManager.hpp"
|
|
|
|
#include "Runtime/MP1/CPauseScreenBase.hpp"
|
|
|
|
#include "Runtime/MP1/CSamusDoll.hpp"
|
|
|
|
|
|
|
|
#include <zeus/CVector2f.hpp>
|
2017-02-18 02:19:50 +00:00
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
namespace metaforce {
|
2017-02-18 02:19:50 +00:00
|
|
|
class CDependencyGroup;
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace MP1 {
|
|
|
|
|
|
|
|
class CInventoryScreen : public CPauseScreenBase {
|
|
|
|
enum class EState { Active, Leaving, Inactive };
|
|
|
|
|
|
|
|
std::unique_ptr<CSamusDoll> x19c_samusDoll;
|
|
|
|
float x1a0_ = 0.f;
|
|
|
|
float x1a4_textBodyAlpha = 0.f;
|
|
|
|
EState x1a8_state = EState::Active;
|
|
|
|
bool x1ac_textLeaveRequested = false;
|
|
|
|
bool x1ad_textViewing;
|
|
|
|
|
2019-01-23 07:52:19 +00:00
|
|
|
zeus::CVector2f m_lastMouseCoord;
|
2022-02-22 05:53:57 +00:00
|
|
|
SScrollDelta m_lastAccumScroll;
|
|
|
|
SScrollDelta m_dollScroll;
|
2019-01-23 07:52:19 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
void UpdateSamusDollPulses();
|
|
|
|
bool HasLeftInventoryItem(int idx) const;
|
|
|
|
bool HasRightInventoryItem(int idx) const;
|
|
|
|
bool IsRightInventoryItemEquipped(int idx) const;
|
|
|
|
void UpdateTextBody();
|
|
|
|
|
2017-02-18 02:19:50 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
CInventoryScreen(const CStateManager& mgr, CGuiFrame& frame, const CStringTable& pauseStrg,
|
|
|
|
const CDependencyGroup& suitDgrp, const CDependencyGroup& ballDgrp);
|
2019-08-09 19:46:49 +00:00
|
|
|
~CInventoryScreen() 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;
|
|
|
|
float GetCameraYBias() const 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;
|
|
|
|
bool IsRightLogDynamic() const override;
|
|
|
|
void UpdateRightLogColors(bool active, const zeus::CColor& activeColor, const zeus::CColor& inactiveColor) override;
|
2018-12-08 05:30:43 +00:00
|
|
|
void UpdateRightLogHighlight(bool active, int idx, const zeus::CColor& activeColor,
|
2019-08-09 19:46:49 +00:00
|
|
|
const zeus::CColor& inactiveColor) override;
|
2017-02-18 02:19:50 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace MP1
|
2021-04-10 08:42:06 +00:00
|
|
|
} // namespace metaforce
|