2016-04-13 06:07:23 +00:00
|
|
|
#ifndef __URDE_CFRONTENDUI_HPP__
|
|
|
|
#define __URDE_CFRONTENDUI_HPP__
|
2015-08-27 00:23:46 +00:00
|
|
|
|
|
|
|
#include "CIOWin.hpp"
|
|
|
|
#include "CGameDebug.hpp"
|
|
|
|
|
2016-03-04 23:04:53 +00:00
|
|
|
namespace urde
|
2015-08-27 00:23:46 +00:00
|
|
|
{
|
|
|
|
class CGuiSliderGroup;
|
|
|
|
class CGuiTableGroup;
|
2016-08-05 23:48:53 +00:00
|
|
|
class CMoviePlayer;
|
2015-08-31 03:44:42 +00:00
|
|
|
struct SObjectTag;
|
2015-08-27 00:23:46 +00:00
|
|
|
|
|
|
|
namespace MP1
|
|
|
|
{
|
|
|
|
|
|
|
|
class CFrontEndUI : public CIOWin
|
|
|
|
{
|
2016-08-05 23:48:53 +00:00
|
|
|
u32 x14_ = 0;
|
|
|
|
u32 x18_;
|
2015-08-27 00:23:46 +00:00
|
|
|
public:
|
2015-11-21 01:16:07 +00:00
|
|
|
enum class EMenuMovie
|
2015-08-27 00:23:46 +00:00
|
|
|
{
|
|
|
|
};
|
2015-11-21 01:16:07 +00:00
|
|
|
enum class EScreen
|
2015-08-27 00:23:46 +00:00
|
|
|
{
|
|
|
|
};
|
|
|
|
|
2016-08-05 23:48:53 +00:00
|
|
|
CFrontEndUI();
|
2015-08-27 00:23:46 +00:00
|
|
|
void OnSliderSelectionChange(CGuiSliderGroup* grp, float);
|
|
|
|
void OnCheckBoxSelectionChange(CGuiTableGroup* grp);
|
|
|
|
void OnOptionSubMenuCancel(CGuiTableGroup* grp);
|
|
|
|
void OnOptionsMenuCancel(CGuiTableGroup* grp);
|
|
|
|
void OnNewGameMenuCancel(CGuiTableGroup* grp);
|
|
|
|
void OnFileMenuCancel(CGuiTableGroup* grp);
|
|
|
|
void OnGenericMenuSelectionChange(CGuiTableGroup* grp, int, int);
|
|
|
|
void OnOptionsMenuAdvance(CGuiTableGroup* grp);
|
|
|
|
void OnNewGameMenuAdvance(CGuiTableGroup* grp);
|
|
|
|
void OnFileMenuAdvance(CGuiTableGroup* grp);
|
|
|
|
void OnMainMenuAdvance(CGuiTableGroup* grp);
|
|
|
|
const char* GetAttractMovieFileName(int idx);
|
|
|
|
const char* GetNextAttractMovieFileName(int idx);
|
|
|
|
void SetCurrentMovie(EMenuMovie movie);
|
|
|
|
void StopAttractMovie();
|
|
|
|
void StartAttractMovie(int idx);
|
|
|
|
void UpdateMenuHighlights(CGuiTableGroup* grp);
|
|
|
|
void CompleteStateTransition();
|
|
|
|
bool CanBuild(const SObjectTag& tag);
|
|
|
|
void StartStateTransition(EScreen screen);
|
|
|
|
void HandleDebugMenuReturnValue(CGameDebug::EReturnValue val, CArchitectureQueue& queue);
|
|
|
|
void Draw() const;
|
|
|
|
void UpdateMovies(float dt);
|
|
|
|
void Update(float dt, CArchitectureQueue& queue);
|
|
|
|
EMessageReturn OnMessage(const CArchitectureMessage& msg, CArchitectureQueue& queue);
|
|
|
|
void StartGame();
|
|
|
|
void InitializeFrame();
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-04-13 06:07:23 +00:00
|
|
|
#endif // __URDE_CFRONTENDUI_HPP__
|