2018-10-06 20:42:33 -07:00
|
|
|
#pragma once
|
2017-04-25 23:43:48 -07:00
|
|
|
|
2019-09-27 19:53:03 -07:00
|
|
|
#include "Runtime/CToken.hpp"
|
|
|
|
#include "Runtime/Camera/CCameraFilter.hpp"
|
|
|
|
#include "Runtime/Graphics/CTexture.hpp"
|
|
|
|
#include "Runtime/MP1/CInGameGuiManagerCommon.hpp"
|
2017-04-25 23:43:48 -07:00
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
namespace metaforce {
|
2017-04-25 23:43:48 -07:00
|
|
|
class CStateManager;
|
2017-05-29 12:55:44 -07:00
|
|
|
|
2018-12-07 21:30:43 -08:00
|
|
|
namespace MP1 {
|
|
|
|
|
|
|
|
class CPauseScreenBlur {
|
|
|
|
enum class EState { InGame, MapScreen, SaveGame, HUDMessage, Pause };
|
2017-05-29 12:55:44 -07:00
|
|
|
|
2018-12-07 21:30:43 -08:00
|
|
|
TLockedToken<CTexture> x4_mapLightQuarter;
|
|
|
|
EState x10_prevState = EState::InGame;
|
|
|
|
EState x14_nextState = EState::InGame;
|
|
|
|
float x18_blurAmt = 0.f;
|
|
|
|
CCameraBlurPass x1c_camBlur;
|
2020-04-21 00:22:41 -07:00
|
|
|
bool x50_24_blurring : 1 = false;
|
|
|
|
bool x50_25_gameDraw : 1 = true;
|
2020-04-10 12:25:40 -07:00
|
|
|
|
2018-12-07 21:30:43 -08:00
|
|
|
void OnBlurComplete(bool);
|
|
|
|
void SetState(EState state);
|
2017-05-29 12:55:44 -07:00
|
|
|
|
2017-04-25 23:43:48 -07:00
|
|
|
public:
|
2018-12-07 21:30:43 -08:00
|
|
|
CPauseScreenBlur();
|
|
|
|
void OnNewInGameGuiState(EInGameGuiState state, CStateManager& stateMgr);
|
|
|
|
bool IsGameDraw() const { return x50_25_gameDraw; }
|
|
|
|
void Update(float dt, const CStateManager& stateMgr, bool);
|
2020-03-15 18:38:25 -07:00
|
|
|
void Draw(const CStateManager& stateMgr);
|
2018-12-07 21:30:43 -08:00
|
|
|
float GetBlurAmt() const { return std::fabs(x18_blurAmt); }
|
|
|
|
bool IsNotTransitioning() const { return x10_prevState == x14_nextState; }
|
2017-04-25 23:43:48 -07:00
|
|
|
};
|
|
|
|
|
2018-12-07 21:30:43 -08:00
|
|
|
} // namespace MP1
|
2021-04-10 01:42:06 -07:00
|
|
|
} // namespace metaforce
|