2017-02-12 03:17:18 +00:00
|
|
|
#ifndef __URDE_CQUITGAMESCREEN_HPP__
|
|
|
|
#define __URDE_CQUITGAMESCREEN_HPP__
|
2016-12-30 06:37:01 +00:00
|
|
|
|
|
|
|
#include "RetroTypes.hpp"
|
|
|
|
#include "CToken.hpp"
|
|
|
|
#include "Graphics/Shaders/CColoredQuadFilter.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
class CFinalInput;
|
|
|
|
class CGuiFrame;
|
|
|
|
class CGuiTableGroup;
|
|
|
|
class CGuiTextPane;
|
|
|
|
|
|
|
|
namespace MP1
|
|
|
|
{
|
|
|
|
|
|
|
|
enum class EQuitType
|
|
|
|
{
|
|
|
|
QuitGame,
|
|
|
|
ContinueFromLastSave,
|
|
|
|
SaveProgress,
|
|
|
|
QuitNESMetroid,
|
|
|
|
ContinuePlaying
|
|
|
|
};
|
|
|
|
|
|
|
|
enum class EQuitAction
|
|
|
|
{
|
|
|
|
None,
|
|
|
|
Yes,
|
|
|
|
No
|
|
|
|
};
|
|
|
|
|
2017-02-12 03:17:18 +00:00
|
|
|
class CQuitGameScreen
|
2016-12-30 06:37:01 +00:00
|
|
|
{
|
|
|
|
EQuitType x0_type;
|
|
|
|
TLockedToken<CGuiFrame> x4_frame;
|
|
|
|
CGuiFrame* x10_loadedFrame = nullptr;
|
|
|
|
CGuiTableGroup* x14_tablegroup_quitgame = nullptr;
|
|
|
|
EQuitAction x18_action = EQuitAction::None;
|
|
|
|
std::experimental::optional<CColoredQuadFilter> m_blackScreen;
|
|
|
|
void SetColors();
|
|
|
|
public:
|
|
|
|
void FinishedLoading();
|
2017-01-09 03:44:00 +00:00
|
|
|
void DoSelectionChange(CGuiTableGroup* caller, int userSel);
|
2016-12-30 06:37:01 +00:00
|
|
|
void DoAdvance(CGuiTableGroup* caller);
|
2016-12-31 00:51:51 +00:00
|
|
|
EQuitAction Update(float dt);
|
2016-12-30 06:37:01 +00:00
|
|
|
void Draw();
|
|
|
|
void ProcessUserInput(const CFinalInput& input);
|
2017-03-30 22:36:18 +00:00
|
|
|
CQuitGameScreen(EQuitType type);
|
2016-12-30 06:37:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-02-12 03:17:18 +00:00
|
|
|
#endif // __URDE_CQUITGAMESCREEN_HPP__
|