2017-02-09 09:23:17 +00:00
|
|
|
#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
|
2017-02-09 09:23:17 +00:00
|
|
|
};
|
|
|
|
enum class EAction
|
|
|
|
{
|
|
|
|
None,
|
|
|
|
Start,
|
2017-02-10 09:00:57 +00:00
|
|
|
Normal,
|
|
|
|
Hard,
|
2017-02-09 09:23:17 +00:00
|
|
|
Back,
|
|
|
|
Confirm,
|
2017-02-10 09:00:57 +00:00
|
|
|
Options,
|
2017-02-09 09:23:17 +00:00
|
|
|
FileA,
|
|
|
|
FileB,
|
|
|
|
FileC,
|
2017-02-10 09:00:57 +00:00
|
|
|
Erase,
|
2017-02-09 09:23:17 +00:00
|
|
|
FusionBonus,
|
2017-02-10 09:00:57 +00:00
|
|
|
ImageGallery,
|
|
|
|
NESMetroid,
|
|
|
|
FusionSuit
|
2017-02-09 09:23:17 +00:00
|
|
|
};
|
|
|
|
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:
|
2017-02-09 09:23:17 +00:00
|
|
|
virtual ~CFrontEndUITouchBar();
|
|
|
|
virtual void SetPhase(EPhase ph);
|
2017-02-10 09:00:57 +00:00
|
|
|
virtual EPhase GetPhase();
|
2017-02-09 09:23:17 +00:00
|
|
|
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);
|
2017-02-09 09:23:17 +00:00
|
|
|
virtual EAction PopAction();
|
|
|
|
};
|
|
|
|
|
|
|
|
std::unique_ptr<CFrontEndUITouchBar> NewFrontEndUITouchBar();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __URDE_CFRONTENDUITOUCHBAR_HPP__
|