2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-12-30 06:37:01 +00:00
|
|
|
|
|
|
|
#include "RetroTypes.hpp"
|
|
|
|
#include "CToken.hpp"
|
|
|
|
#include "Graphics/Shaders/CColoredQuadFilter.hpp"
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
2018-02-04 06:46:47 +00:00
|
|
|
struct CFinalInput;
|
2016-12-30 06:37:01 +00:00
|
|
|
class CGuiFrame;
|
|
|
|
class CGuiTableGroup;
|
|
|
|
class CGuiTextPane;
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace MP1 {
|
2016-12-30 06:37:01 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
enum class EQuitType { QuitGame, ContinueFromLastSave, SaveProgress, QuitNESMetroid, ContinuePlaying };
|
2016-12-30 06:37:01 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
enum class EQuitAction { None, Yes, No };
|
|
|
|
|
|
|
|
class CQuitGameScreen {
|
|
|
|
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();
|
2016-12-30 06:37:01 +00:00
|
|
|
|
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
void FinishedLoading();
|
|
|
|
void DoSelectionChange(CGuiTableGroup* caller, int oldSel);
|
|
|
|
void DoAdvance(CGuiTableGroup* caller);
|
|
|
|
EQuitAction Update(float dt);
|
|
|
|
void Draw();
|
|
|
|
void ProcessUserInput(const CFinalInput& input);
|
|
|
|
CQuitGameScreen(EQuitType type);
|
2016-12-30 06:37:01 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace MP1
|
|
|
|
} // namespace urde
|