metaforce/Runtime/MP1/CInventoryScreen.hpp

64 lines
1.9 KiB
C++
Raw Normal View History

2017-02-18 02:19:50 +00:00
#ifndef __URDE_CINVENTORYSCREEN_HPP__
#define __URDE_CINVENTORYSCREEN_HPP__
#include "CInGameGuiManager.hpp"
2017-04-26 06:43:48 +00:00
#include "CPauseScreenBase.hpp"
#include "CSamusDoll.hpp"
2017-02-18 02:19:50 +00:00
namespace urde
{
class CDependencyGroup;
namespace MP1
{
2017-04-26 06:43:48 +00:00
class CInventoryScreen : public CPauseScreenBase
2017-02-18 02:19:50 +00:00
{
enum class EState
{
Active,
Leaving,
Inactive
};
2017-04-26 06:43:48 +00:00
std::unique_ptr<CSamusDoll> x19c_samusDoll;
2017-05-04 18:56:20 +00:00
float x1a0_ = 0.f;
2017-05-07 19:35:52 +00:00
float x1a4_textBodyAlpha = 0.f;
EState x1a8_state = EState::Active;
bool x1ac_textLeaveRequested = false;
bool x1ad_textViewing;
2017-05-09 19:44:05 +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:
2017-05-02 04:00:38 +00:00
CInventoryScreen(const CStateManager& mgr, CGuiFrame& frame, const CStringTable& pauseStrg,
2017-04-26 06:43:48 +00:00
const CDependencyGroup& suitDgrp, const CDependencyGroup& ballDgrp);
2017-05-02 04:00:38 +00:00
2017-05-04 18:56:20 +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);
float GetCameraYBias() const;
2017-05-02 04:00:38 +00:00
bool VReady() const;
2017-05-12 19:54:35 +00:00
void VActivate();
void RightTableSelectionChanged(int oldSel, int newSel);
2017-05-14 19:58:44 +00:00
void ChangedMode(EMode oldMode);
2017-05-04 18:56:20 +00:00
void UpdateRightTable();
2017-05-09 19:44:05 +00:00
bool ShouldLeftTableAdvance() const;
bool ShouldRightTableAdvance() const;
2017-05-02 04:00:38 +00:00
u32 GetRightTableCount() const;
2017-05-04 18:56:20 +00:00
bool IsRightLogDynamic() const;
void UpdateRightLogColors(bool active, const zeus::CColor& activeColor, const zeus::CColor& inactiveColor);
void UpdateRightLogHighlight(bool active, int idx, const zeus::CColor& activeColor, const zeus::CColor& inactiveColor);
2017-02-18 02:19:50 +00:00
};
}
}
#endif // __URDE_CINVENTORYSCREEN_HPP__