mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 04:27:42 +00:00
Initial InGameGuiManager imps
This commit is contained in:
56
Runtime/MP1/CQuitGameScreen.hpp
Normal file
56
Runtime/MP1/CQuitGameScreen.hpp
Normal file
@@ -0,0 +1,56 @@
|
||||
#ifndef __URDE_CQUITGAMESCREEN_HPP__
|
||||
#define __URDE_CQUITGAMESCREEN_HPP__
|
||||
|
||||
#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
|
||||
};
|
||||
|
||||
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();
|
||||
public:
|
||||
void FinishedLoading();
|
||||
void DoSelectionChange(CGuiTableGroup* caller, int userSel);
|
||||
void DoAdvance(CGuiTableGroup* caller);
|
||||
EQuitAction Update(float dt);
|
||||
void Draw();
|
||||
void ProcessUserInput(const CFinalInput& input);
|
||||
CQuitGameScreen(EQuitType pos);
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif // __URDE_CQUITGAMESCREEN_HPP__
|
||||
Reference in New Issue
Block a user