2017-05-02 04:00:38 +00:00
|
|
|
#ifndef __URDE_COPTIONSSCREEN_HPP__
|
|
|
|
#define __URDE_COPTIONSSCREEN_HPP__
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
namespace MP1
|
|
|
|
{
|
|
|
|
|
|
|
|
class COptionsScreen : public CPauseScreenBase
|
|
|
|
{
|
2017-05-12 19:54:35 +00:00
|
|
|
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;
|
|
|
|
|
|
|
|
void UpdateOptionView();
|
|
|
|
void ResetOptionWidgetVisibility();
|
|
|
|
void OnSliderChanged(CGuiSliderGroup* caller, float val);
|
|
|
|
void OnEnumChanged(CGuiTableGroup* caller, int sel);
|
|
|
|
|
2017-05-02 04:00:38 +00:00
|
|
|
public:
|
|
|
|
COptionsScreen(const CStateManager& mgr, CGuiFrame& frame, const CStringTable& pauseStrg);
|
2017-05-12 19:54:35 +00:00
|
|
|
~COptionsScreen();
|
2017-05-02 04:00:38 +00:00
|
|
|
|
2017-05-12 19:54:35 +00:00
|
|
|
bool InputDisabled() const;
|
|
|
|
void Update(float dt, CRandom16& rand, CArchitectureQueue& archQueue);
|
|
|
|
void Touch();
|
|
|
|
void ProcessControllerInput(const CFinalInput& input);
|
|
|
|
void Draw(float transInterp, float totalAlpha, float yOff);
|
2017-05-02 04:00:38 +00:00
|
|
|
bool VReady() const;
|
2017-05-12 19:54:35 +00:00
|
|
|
void VActivate();
|
|
|
|
void RightTableSelectionChanged(int selBegin, int selEnd);
|
2017-05-14 19:58:44 +00:00
|
|
|
void ChangedMode(EMode oldMode);
|
2017-05-12 19:54:35 +00:00
|
|
|
void UpdateRightTable();
|
|
|
|
bool ShouldLeftTableAdvance() const;
|
|
|
|
bool ShouldRightTableAdvance() const;
|
2017-05-02 04:00:38 +00:00
|
|
|
u32 GetRightTableCount() const;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __URDE_COPTIONSSCREEN_HPP__
|