Push menu options de base

This commit is contained in:
mduval76
2023-12-01 09:49:00 -05:00
parent 15882dc506
commit 28082a018d
14 changed files with 155 additions and 54 deletions

View File

@@ -47,6 +47,7 @@ public:
private:
int GetFps(float elapsedTime) const;
int GetCountdown(float elapsedTime);
int GetOptionsChoice();
bool LoadTexture(Texture& texture, const std::string& filename, bool useMipmaps = true, bool stopOnError = true);
@@ -54,15 +55,16 @@ private:
void SystemNotification(std::string systemLog);
void KillNotification(Player killer, Player killed);
void DisplayNotification(std::string message);
void ProcessNotificationQueue();
void DisplayCrosshair();
void DisplayPovGun();
void DisplayCurrentItem();
void DisplayHud(int timer);
void DisplayInfo(float elapsedTime, BlockType bloc);
void DisplaySingleOrMultiplayerMenu();
void DisplayAudioMenu();
void DrawHud(float elapsedTime, BlockType bloc);
void PrintText(float x, float y, const std::string& t, float charSizeMultiplier = 1.0f);
void ProcessNotificationQueue();
Connector m_conn;
Shader m_shader01;
@@ -84,6 +86,16 @@ private:
Texture m_textureSoloText;
Texture m_textureMultiText;
Texture m_textureTitle;
Texture m_textureOptions;
Texture m_textureVolume;
Texture m_textureMusique;
Texture m_textureGraphiques;
Texture m_textureSensibilite;
Texture m_textureResolution;
Texture m_texturePrincipal;
Texture m_textureEffets;
Texture m_textureGameplay
;
TextureAtlas::TextureIndex texBoostHeal;
@@ -104,11 +116,12 @@ private:
std::chrono::high_resolution_clock::time_point m_startTime;
//Menu
enum class GameState: uint8_t { MAIN_MENU, OPTIONS, QUIT, NEWG, PLAY, PAUSE, SINGLEMULTI };
enum class GameState: uint8_t { MAIN_MENU, OPTIONS, SETTINGS, QUIT, NEWG, PLAY, PAUSE, SINGLEMULTI };
GameState m_gamestate = GameState::MAIN_MENU;
Texture MenuTitleTexture;
Texture MenuBGTexture;
Texture MenuBGFlouTexture;
Texture MenuBGOptionTexture;
Texture MenuStartTexture;
Texture MenuQuitTexture;
@@ -130,6 +143,7 @@ private:
int m_countdown = COUNTDOWN;
int m_nbReductionChunk = 4;
int m_timerReductionChunk = 30;
int m_selectedOption = 0;
bool m_damage = false;