2018-10-06 20:42:33 -07:00
|
|
|
#pragma once
|
2017-05-01 21:00:38 -07:00
|
|
|
|
2019-09-27 19:53:03 -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;
|
2020-04-21 00:22:41 -07:00
|
|
|
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);
|
2019-08-09 12:46:49 -07:00
|
|
|
~COptionsScreen() override;
|
2018-12-07 21:30:43 -08:00
|
|
|
|
2019-08-09 12:46:49 -07: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
|