2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2017-05-02 04:00:38 +00:00
|
|
|
|
|
|
|
#include "CInGameGuiManager.hpp"
|
|
|
|
#include "CPauseScreenBase.hpp"
|
2017-05-12 19:54:35 +00:00
|
|
|
#include "CGameCubeDoll.hpp"
|
|
|
|
#include "CQuitGameScreen.hpp"
|
2017-05-02 04:00:38 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde::MP1 {
|
2017-05-02 04:00:38 +00:00
|
|
|
|
2018-12-08 05:30:43 +00: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;
|
2017-05-12 19:54:35 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
void UpdateOptionView();
|
|
|
|
void ResetOptionWidgetVisibility();
|
|
|
|
void OnSliderChanged(CGuiSliderGroup* caller, float val);
|
|
|
|
void OnEnumChanged(CGuiTableGroup* caller, int oldSel);
|
2017-05-12 19:54:35 +00:00
|
|
|
|
2017-05-02 04:00:38 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
COptionsScreen(const CStateManager& mgr, CGuiFrame& frame, const CStringTable& pauseStrg);
|
2019-08-09 19:46:49 +00:00
|
|
|
~COptionsScreen() override;
|
2018-12-08 05:30:43 +00:00
|
|
|
|
2019-08-09 19:46:49 +00: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-02 04:00:38 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde::MP1
|