metaforce/Runtime/MP1/COptionsScreen.hpp

45 lines
1.5 KiB
C++
Raw Normal View History

2018-10-06 20:42:33 -07:00
#pragma once
2017-05-01 21:00:38 -07:00
#include <memory>
#include "Runtime/MP1/CGameCubeDoll.hpp"
#include "Runtime/MP1/CInGameGuiManager.hpp"
#include "Runtime/MP1/CPauseScreenBase.hpp"
#include "Runtime/MP1/CQuitGameScreen.hpp"
2017-05-01 21:00:38 -07:00
2021-04-10 01:42:06 -07:00
namespace metaforce::MP1 {
2017-05-01 21:00:38 -07:00
2018-12-07 21:30:43 -08:00
class COptionsScreen : public CPauseScreenBase {
std::unique_ptr<CQuitGameScreen> x19c_quitGame;
std::unique_ptr<CGameCubeDoll> x1a0_gameCube;
CSfxHandle x1a4_sliderSfx;
CRumbleGenerator x1a8_rumble;
float x29c_optionAlpha = 0.f;
bool x2a0_24_inOptionBody : 1 = false;
2017-05-12 12:54:35 -07:00
2018-12-07 21:30:43 -08:00
void UpdateOptionView();
void ResetOptionWidgetVisibility();
void OnSliderChanged(CGuiSliderGroup* caller, float val);
void OnEnumChanged(CGuiTableGroup* caller, int oldSel);
2017-05-12 12:54:35 -07:00
2017-05-01 21:00:38 -07:00
public:
2018-12-07 21:30:43 -08:00
COptionsScreen(const CStateManager& mgr, CGuiFrame& frame, const CStringTable& pauseStrg);
~COptionsScreen() override;
2018-12-07 21:30:43 -08:00
bool InputDisabled() const override;
void Update(float dt, CRandom16& rand, CArchitectureQueue& archQueue) override;
void Touch() override;
void ProcessControllerInput(const CFinalInput& input) override;
void Draw(float transInterp, float totalAlpha, float yOff) override;
bool VReady() const override;
void VActivate() override;
void RightTableSelectionChanged(int oldSel, int newSel) override;
void ChangedMode(EMode oldMode) override;
void UpdateRightTable() override;
bool ShouldLeftTableAdvance() const override;
bool ShouldRightTableAdvance() const override;
u32 GetRightTableCount() const override;
2017-05-01 21:00:38 -07:00
};
2021-04-10 01:42:06 -07:00
} // namespace metaforce::MP1