metaforce/Runtime/MP1/CInventoryScreen.hpp

57 lines
1.7 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
{
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;
2017-05-04 18:56:20 +00:00
u32 x1a8_ = 0;
bool x1ac_ = false;
2017-05-07 19:35:52 +00:00
bool x1ad_textBodyVisible;
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;
void VActivate() const;
2017-05-09 19:44:05 +00:00
void RightTableSelectionChanged(int selBegin, int selEnd);
2017-05-04 18:56:20 +00:00
void ChangedMode();
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__