metaforce/Runtime/MP1/CFrontEndUITouchBar.hpp

50 lines
1.1 KiB
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
#include <memory>
2018-12-08 05:30:43 +00:00
namespace urde {
2018-12-08 05:30:43 +00:00
class CFrontEndUITouchBar {
public:
2018-12-08 05:30:43 +00:00
enum class EPhase { None, PressStart, ProceedBack, StartOptions, EraseBack, FileSelect, NoCardSelect, FusionBonus };
enum class EAction {
None,
Start,
Normal,
Hard,
Back,
Confirm,
Options,
FileA,
FileB,
FileC,
Erase,
FusionBonus,
ImageGallery,
NESMetroid,
FusionSuit
};
enum class EFileState { New, Normal, Hard };
struct SFileSelectDetail {
EFileState state;
int percent;
};
2017-02-10 09:00:57 +00:00
protected:
2018-12-08 05:30:43 +00:00
EPhase m_phase = EPhase::None;
2017-02-10 09:00:57 +00:00
public:
2018-12-08 05:30:43 +00:00
virtual ~CFrontEndUITouchBar();
virtual void SetPhase(EPhase ph);
virtual EPhase GetPhase();
virtual void SetFileSelectPhase(const SFileSelectDetail details[3], bool eraseGame, bool galleryActive);
virtual void SetNoCardSelectPhase(bool galleryActive);
virtual void SetFusionBonusPhase(bool fusionSuitActive);
virtual void SetStartOptionsPhase(bool normalBeat);
virtual EAction PopAction();
};
std::unique_ptr<CFrontEndUITouchBar> NewFrontEndUITouchBar();
2018-12-08 05:30:43 +00:00
} // namespace urde