metaforce/Runtime/MP1/CFrontEndUITouchBar.hpp

73 lines
1.4 KiB
C++
Raw Normal View History

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