R-Type
Distributed multiplayer game engine in C++
Loading...
Searching...
No Matches
Game::SettingsMenu Class Reference

Settings menu of the game. More...

#include <SettingsMenu.hpp>

Inheritance diagram for Game::SettingsMenu:
Inheritance graph
Collaboration diagram for Game::SettingsMenu:
Collaboration graph

Public Types

enum class  Mode { FULLSCREEN , OVERLAY }
 Display mode for the settings menu. More...
 

Public Member Functions

 SettingsMenu (UI::IUIFactory &uiFactory, Graphics::IGraphics &graphics)
 Construct a new SettingsMenu.
 
 ~SettingsMenu () override=default
 
void Initialize () override
 Initialize UI elements.
 
void Update () override
 Update menu state (should be called every frame).
 
void Render () override
 Render menu (should be called every frame).
 
void SetMode (Mode mode)
 Set display mode (fullscreen or overlay).
 
Mode GetMode () const
 
void SetShowPing (bool enabled)
 Toggle whether ping should be displayed.
 
void SetAutoMatchmaking (bool enabled)
 Toggle auto-matchmaking feature. This triggers the callback to notify the server.
 
void ApplyAutoMatchmakingPreference (bool enabled)
 Apply auto-matchmaking preference silently (without triggering callback). Used when loading preference from server after login.
 
bool GetAutoMatchmaking () const
 
void SetOnAutoMatchmakingChanged (std::function< void(bool)> cb)
 
bool GetShowPing () const
 
void SetOnShowPingChanged (std::function< void(bool)> cb)
 Set callback invoked when the ping toggle changes.
 
void SetOnBack (std::function< void()> cb)
 Set callback invoked when Back is clicked.
 
void SetOnMainMenu (std::function< void()> cb)
 Set callback invoked when "Main Menu" is clicked.
 
void SetOnAccessibility (std::function< void()> cb)
 Set callback invoked when "Accessibility" button is clicked.
 
void SetOverlayDimColor (unsigned int color)
 Set the dim color used when this menu is displayed in overlay mode.
 
unsigned int GetOverlayDimColor () const
 Get the dim color used when this menu is displayed in overlay mode.
 
bool ShouldDimBackground () const
 Whether the background should be dimmed when the menu is visible.
 
void SetShowFps (bool enabled)
 Toggle whether FPS should be displayed.
 
bool GetShowFps () const
 
void SetOnShowFpsChanged (std::function< void(bool)> cb)
 Set callback invoked when the FPS toggle changes.
 
void SetTargetFps (uint32_t targetFps)
 Set the target FPS for the client.
 
uint32_t GetTargetFps () const
 Get the target FPS for the client.
 
void SetOnTargetFpsChanged (std::function< void(uint32_t)> callback)
 Set callback invoked when the target FPS changes.
 
void RefreshVisuals ()
 Refresh button labels/colors to match current internal state.
 
void SetShowPingSilent (bool enabled)
 Set showPing without emitting callbacks/logs.
 
void SetShowFpsSilent (bool enabled)
 Set showFps without emitting callbacks/logs.
 
void SetTargetFpsSilent (uint32_t targetFps)
 Set targetFps without emitting callbacks/logs.
 
void SetVolume (float volume)
 Set the volume level (0-100).
 
float GetVolume () const
 Get the current volume level.
 
void SetOnVolumeChanged (std::function< void(float)> callback)
 Set callback invoked when the volume changes.
 
void SetVolumeSilent (float volume)
 Set volume without emitting callbacks/logs.
 
void SetShowChat (bool enabled)
 Set chat visibility.
 
bool GetShowChat () const
 Get chat visibility.
 
void SetOnShowChatChanged (std::function< void(bool)> cb)
 Set callback invoked when the chat visibility changes.
 
void SetShowChatSilent (bool enabled)
 Set chat visibility without emitting callbacks/logs.
 
void UpdateChatToggleVisuals ()
 Updates the visuals of the chat toggle button.
 
- Public Member Functions inherited from Game::BaseMenu
 BaseMenu (UI::IUIFactory &uiFactory)
 Constructor with UI factory reference.
 
virtual ~BaseMenu ()=default
 Virtual destructor.
 
virtual void Show ()
 Show the menu.
 
virtual void Hide ()
 Hide the menu.
 
virtual bool IsVisible () const
 Check if menu is currently visible.
 
void SetSoundEffectService (Audio::ISoundEffectService *soundService)
 Set the sound effect service for playing UI sounds.
 

Private Member Functions

uint32_t ValidateTargetFps (uint32_t targetFps) const
 
void UpdateToggleVisuals ()
 
void UpdateFpsToggleVisuals ()
 
void UpdateAutoMatchmakingVisuals ()
 
void UpdateTargetFpsVisuals ()
 
uint32_t NextTargetFps (uint32_t current) const
 

Private Attributes

Graphics::IGraphics_graphics
 
std::unique_ptr< UI::ISlider_volumeSlider
 
Mode _mode {Mode::FULLSCREEN}
 
bool _showPing {true}
 
bool _showFps {true}
 
bool _showChat {false}
 
bool _autoMatchmaking {false}
 
unsigned int _overlayDimColor {0x88000000}
 
uint32_t _targetFps {60}
 
float _volume {50.0F}
 
std::function< void(bool)> _onShowPingChanged {}
 
std::function< void()> _onBack {}
 
std::function< void()> _onMainMenu {}
 
std::function< void()> _onAccessibility {}
 
std::function< void(bool)> _onShowFpsChanged {}
 
std::function< void(bool)> _onShowChatChanged {}
 
std::function< void(uint32_t)> _onTargetFpsChanged {}
 
std::function< void(float)> _onVolumeChanged {}
 
std::function< void(bool)> _onAutoMatchmakingChanged {}
 

Static Private Attributes

static constexpr size_t TOGGLE_PING_INDEX = 0
 
static constexpr size_t TOGGLE_FPS_INDEX = 1
 
static constexpr size_t TOGGLE_CHAT_INDEX = 2
 
static constexpr size_t AUTO_MATCHMAKING_INDEX = 3
 
static constexpr size_t TARGET_FPS_INDEX = 4
 
static constexpr size_t ACCESSIBILITY_INDEX = 5
 
static constexpr size_t BACK_INDEX = 6
 
static constexpr size_t MAIN_MENU_INDEX = 7
 

Additional Inherited Members

- Protected Member Functions inherited from Game::BaseMenu
std::function< void()> WrapWithClickSound (std::function< void()> callback)
 Wrap a callback to play click sound before executing.
 
std::shared_ptr< UI::IButtonCreateCenteredButton (const char *label, float offsetY, float width, float height, unsigned int backgroundColor, unsigned int hoverColor, std::function< void()> callback)
 Create a button with standard styling and positioning.
 
- Protected Attributes inherited from Game::BaseMenu
UI::IUIFactory_uiFactory
 
std::shared_ptr< UI::IMenu_menu
 
Audio::ISoundEffectService_soundService {nullptr}
 

Detailed Description

Settings menu of the game.

Business-level class: it uses the UI library but remains decoupled from the graphics backend.

Definition at line 25 of file SettingsMenu.hpp.

Member Enumeration Documentation

◆ Mode

enum class Game::SettingsMenu::Mode
strong

Display mode for the settings menu.

Enumerator
FULLSCREEN 

Takes the whole window (main menu context)

OVERLAY 

Displays over the game with a dimmed background.

Definition at line 30 of file SettingsMenu.hpp.

Constructor & Destructor Documentation

◆ SettingsMenu()

Game::SettingsMenu::SettingsMenu ( UI::IUIFactory uiFactory,
Graphics::IGraphics graphics 
)
explicit

Construct a new SettingsMenu.

Parameters
uiFactoryUI factory used to create menus and buttons.
graphicsGraphics interface for rendering slider labels.

Definition at line 13 of file SettingsMenu.cpp.

References Game::BaseMenu::_uiFactory, _volumeSlider, and UI::IUIFactory::CreateSlider().

Here is the call graph for this function:

◆ ~SettingsMenu()

Game::SettingsMenu::~SettingsMenu ( )
overridedefault

Member Function Documentation

◆ ApplyAutoMatchmakingPreference()

void Game::SettingsMenu::ApplyAutoMatchmakingPreference ( bool  enabled)

Apply auto-matchmaking preference silently (without triggering callback). Used when loading preference from server after login.

Definition at line 450 of file SettingsMenu.cpp.

References _autoMatchmaking, LOG_INFO, and UpdateAutoMatchmakingVisuals().

Here is the call graph for this function:

◆ GetAutoMatchmaking()

bool Game::SettingsMenu::GetAutoMatchmaking ( ) const

Definition at line 459 of file SettingsMenu.cpp.

References _autoMatchmaking.

◆ GetMode()

SettingsMenu::Mode Game::SettingsMenu::GetMode ( ) const

Definition at line 183 of file SettingsMenu.cpp.

References _mode.

◆ GetOverlayDimColor()

unsigned int Game::SettingsMenu::GetOverlayDimColor ( ) const

Get the dim color used when this menu is displayed in overlay mode.

Returns
Color in 0xAARRGGBB.

Definition at line 363 of file SettingsMenu.cpp.

References _overlayDimColor.

◆ GetShowChat()

bool Game::SettingsMenu::GetShowChat ( ) const

Get chat visibility.

Returns
true if chat is shown

Definition at line 406 of file SettingsMenu.cpp.

References _showChat.

◆ GetShowFps()

bool Game::SettingsMenu::GetShowFps ( ) const

Definition at line 225 of file SettingsMenu.cpp.

References _showFps.

◆ GetShowPing()

bool Game::SettingsMenu::GetShowPing ( ) const

Definition at line 196 of file SettingsMenu.cpp.

References _showPing.

◆ GetTargetFps()

uint32_t Game::SettingsMenu::GetTargetFps ( ) const

Get the target FPS for the client.

Definition at line 294 of file SettingsMenu.cpp.

References _targetFps.

◆ GetVolume()

float Game::SettingsMenu::GetVolume ( ) const

Get the current volume level.

Definition at line 382 of file SettingsMenu.cpp.

References _volume.

◆ Initialize()

◆ NextTargetFps()

uint32_t Game::SettingsMenu::NextTargetFps ( uint32_t  current) const
private

Definition at line 233 of file SettingsMenu.cpp.

Referenced by Initialize().

◆ RefreshVisuals()

void Game::SettingsMenu::RefreshVisuals ( )

Refresh button labels/colors to match current internal state.

Does not rebuild the menu (no Clear/AddButton). Use this when only the visuals need to reflect updated values.

Definition at line 261 of file SettingsMenu.cpp.

References UpdateAutoMatchmakingVisuals(), UpdateChatToggleVisuals(), UpdateFpsToggleVisuals(), UpdateTargetFpsVisuals(), and UpdateToggleVisuals().

Referenced by Initialize().

Here is the call graph for this function:

◆ Render()

void Game::SettingsMenu::Render ( )
overridevirtual

Render menu (should be called every frame).

Reimplemented from Game::BaseMenu.

Definition at line 133 of file SettingsMenu.cpp.

References _graphics, Game::BaseMenu::_menu, _volume, _volumeSlider, Graphics::IGraphics::DrawText(), Graphics::IGraphics::GetScreenWidth(), and Game::BaseMenu::Render().

Here is the call graph for this function:

◆ SetAutoMatchmaking()

void Game::SettingsMenu::SetAutoMatchmaking ( bool  enabled)

Toggle auto-matchmaking feature. This triggers the callback to notify the server.

Definition at line 440 of file SettingsMenu.cpp.

References _autoMatchmaking, _onAutoMatchmakingChanged, LOG_INFO, and UpdateAutoMatchmakingVisuals().

Referenced by Initialize().

Here is the call graph for this function:

◆ SetMode()

void Game::SettingsMenu::SetMode ( Mode  mode)

Set display mode (fullscreen or overlay).

Definition at line 179 of file SettingsMenu.cpp.

References _mode.

◆ SetOnAccessibility()

void Game::SettingsMenu::SetOnAccessibility ( std::function< void()>  cb)

Set callback invoked when "Accessibility" button is clicked.

Definition at line 212 of file SettingsMenu.cpp.

References _onAccessibility.

◆ SetOnAutoMatchmakingChanged()

void Game::SettingsMenu::SetOnAutoMatchmakingChanged ( std::function< void(bool)>  cb)

Definition at line 463 of file SettingsMenu.cpp.

References _onAutoMatchmakingChanged.

◆ SetOnBack()

void Game::SettingsMenu::SetOnBack ( std::function< void()>  cb)

Set callback invoked when Back is clicked.

Definition at line 204 of file SettingsMenu.cpp.

References _onBack.

◆ SetOnMainMenu()

void Game::SettingsMenu::SetOnMainMenu ( std::function< void()>  cb)

Set callback invoked when "Main Menu" is clicked.

Intended for the in-game overlay mode.

Definition at line 208 of file SettingsMenu.cpp.

References _onMainMenu.

◆ SetOnShowChatChanged()

void Game::SettingsMenu::SetOnShowChatChanged ( std::function< void(bool)>  cb)

Set callback invoked when the chat visibility changes.

Parameters
cbCallback invoked when the chat toggle changes.

Definition at line 410 of file SettingsMenu.cpp.

References _onShowChatChanged.

◆ SetOnShowFpsChanged()

void Game::SettingsMenu::SetOnShowFpsChanged ( std::function< void(bool)>  cb)

Set callback invoked when the FPS toggle changes.

Parameters
cbCallback taking the new value.

Definition at line 229 of file SettingsMenu.cpp.

References _onShowFpsChanged.

◆ SetOnShowPingChanged()

void Game::SettingsMenu::SetOnShowPingChanged ( std::function< void(bool)>  cb)

Set callback invoked when the ping toggle changes.

Parameters
cbCallback taking the new value.

Definition at line 200 of file SettingsMenu.cpp.

References _onShowPingChanged.

◆ SetOnTargetFpsChanged()

void Game::SettingsMenu::SetOnTargetFpsChanged ( std::function< void(uint32_t)>  callback)

Set callback invoked when the target FPS changes.

Definition at line 298 of file SettingsMenu.cpp.

References _onTargetFpsChanged.

◆ SetOnVolumeChanged()

void Game::SettingsMenu::SetOnVolumeChanged ( std::function< void(float)>  callback)

Set callback invoked when the volume changes.

Definition at line 386 of file SettingsMenu.cpp.

References _onVolumeChanged.

◆ SetOverlayDimColor()

void Game::SettingsMenu::SetOverlayDimColor ( unsigned int  color)

Set the dim color used when this menu is displayed in overlay mode.

Parameters
colorColor in 0xAARRGGBB.

Definition at line 359 of file SettingsMenu.cpp.

References _overlayDimColor.

◆ SetShowChat()

void Game::SettingsMenu::SetShowChat ( bool  enabled)

Set chat visibility.

Parameters
enabled

Definition at line 397 of file SettingsMenu.cpp.

References _onShowChatChanged, _showChat, LOG_INFO, and UpdateChatToggleVisuals().

Referenced by Initialize().

Here is the call graph for this function:

◆ SetShowChatSilent()

void Game::SettingsMenu::SetShowChatSilent ( bool  enabled)

Set chat visibility without emitting callbacks/logs.

Parameters
enabledenable or disable chat visibility silently

Definition at line 414 of file SettingsMenu.cpp.

References _showChat, and UpdateChatToggleVisuals().

Here is the call graph for this function:

◆ SetShowFps()

void Game::SettingsMenu::SetShowFps ( bool  enabled)

Toggle whether FPS should be displayed.

Definition at line 216 of file SettingsMenu.cpp.

References _onShowFpsChanged, _showFps, LOG_INFO, and UpdateFpsToggleVisuals().

Referenced by Initialize().

Here is the call graph for this function:

◆ SetShowFpsSilent()

void Game::SettingsMenu::SetShowFpsSilent ( bool  enabled)

Set showFps without emitting callbacks/logs.

Definition at line 274 of file SettingsMenu.cpp.

References _showFps, and UpdateFpsToggleVisuals().

Here is the call graph for this function:

◆ SetShowPing()

void Game::SettingsMenu::SetShowPing ( bool  enabled)

Toggle whether ping should be displayed.

Definition at line 187 of file SettingsMenu.cpp.

References _onShowPingChanged, _showPing, LOG_INFO, and UpdateToggleVisuals().

Referenced by Initialize().

Here is the call graph for this function:

◆ SetShowPingSilent()

void Game::SettingsMenu::SetShowPingSilent ( bool  enabled)

Set showPing without emitting callbacks/logs.

Intended for initial state synchronization from the rendering system.

Definition at line 269 of file SettingsMenu.cpp.

References _showPing, and UpdateToggleVisuals().

Here is the call graph for this function:

◆ SetTargetFps()

void Game::SettingsMenu::SetTargetFps ( uint32_t  targetFps)

Set the target FPS for the client.

Expected values: 30, 60, 120, 144, 240.

Definition at line 284 of file SettingsMenu.cpp.

References _onTargetFpsChanged, _targetFps, LOG_INFO, UpdateTargetFpsVisuals(), and ValidateTargetFps().

Referenced by Initialize().

Here is the call graph for this function:

◆ SetTargetFpsSilent()

void Game::SettingsMenu::SetTargetFpsSilent ( uint32_t  targetFps)

Set targetFps without emitting callbacks/logs.

Definition at line 279 of file SettingsMenu.cpp.

References _targetFps, UpdateTargetFpsVisuals(), and ValidateTargetFps().

Here is the call graph for this function:

◆ SetVolume()

void Game::SettingsMenu::SetVolume ( float  volume)

Set the volume level (0-100).

Definition at line 371 of file SettingsMenu.cpp.

References _onVolumeChanged, _volume, _volumeSlider, and LOG_INFO.

◆ SetVolumeSilent()

void Game::SettingsMenu::SetVolumeSilent ( float  volume)

Set volume without emitting callbacks/logs.

Definition at line 390 of file SettingsMenu.cpp.

References _volume, and _volumeSlider.

◆ ShouldDimBackground()

bool Game::SettingsMenu::ShouldDimBackground ( ) const

Whether the background should be dimmed when the menu is visible.

Returns
true if mode is OVERLAY and menu is visible.

Definition at line 367 of file SettingsMenu.cpp.

References _mode, Game::BaseMenu::IsVisible(), and OVERLAY.

Here is the call graph for this function:

◆ Update()

void Game::SettingsMenu::Update ( )
overridevirtual

Update menu state (should be called every frame).

Reimplemented from Game::BaseMenu.

Definition at line 126 of file SettingsMenu.cpp.

References Game::BaseMenu::_menu, _volumeSlider, and Game::BaseMenu::Update().

Here is the call graph for this function:

◆ UpdateAutoMatchmakingVisuals()

void Game::SettingsMenu::UpdateAutoMatchmakingVisuals ( )
private

◆ UpdateChatToggleVisuals()

void Game::SettingsMenu::UpdateChatToggleVisuals ( )

Updates the visuals of the chat toggle button.

Definition at line 419 of file SettingsMenu.cpp.

References Game::BaseMenu::_menu, _showChat, and TOGGLE_CHAT_INDEX.

Referenced by RefreshVisuals(), SetShowChat(), and SetShowChatSilent().

◆ UpdateFpsToggleVisuals()

void Game::SettingsMenu::UpdateFpsToggleVisuals ( )
private

Definition at line 323 of file SettingsMenu.cpp.

References Game::BaseMenu::_menu, _showFps, and TOGGLE_FPS_INDEX.

Referenced by RefreshVisuals(), SetShowFps(), and SetShowFpsSilent().

◆ UpdateTargetFpsVisuals()

void Game::SettingsMenu::UpdateTargetFpsVisuals ( )
private

◆ UpdateToggleVisuals()

void Game::SettingsMenu::UpdateToggleVisuals ( )
private

Definition at line 302 of file SettingsMenu.cpp.

References Game::BaseMenu::_menu, _showPing, and TOGGLE_PING_INDEX.

Referenced by RefreshVisuals(), SetShowPing(), and SetShowPingSilent().

◆ ValidateTargetFps()

uint32_t Game::SettingsMenu::ValidateTargetFps ( uint32_t  targetFps) const
private

Definition at line 248 of file SettingsMenu.cpp.

Referenced by SetTargetFps(), and SetTargetFpsSilent().

Member Data Documentation

◆ _autoMatchmaking

bool Game::SettingsMenu::_autoMatchmaking {false}
private

◆ _graphics

Graphics::IGraphics& Game::SettingsMenu::_graphics
private

Definition at line 230 of file SettingsMenu.hpp.

Referenced by Render().

◆ _mode

Mode Game::SettingsMenu::_mode {Mode::FULLSCREEN}
private

Definition at line 233 of file SettingsMenu.hpp.

Referenced by GetMode(), Initialize(), SetMode(), and ShouldDimBackground().

◆ _onAccessibility

std::function<void()> Game::SettingsMenu::_onAccessibility {}
private

Definition at line 245 of file SettingsMenu.hpp.

Referenced by Initialize(), and SetOnAccessibility().

◆ _onAutoMatchmakingChanged

std::function<void(bool)> Game::SettingsMenu::_onAutoMatchmakingChanged {}
private

Definition at line 250 of file SettingsMenu.hpp.

Referenced by SetAutoMatchmaking(), and SetOnAutoMatchmakingChanged().

◆ _onBack

std::function<void()> Game::SettingsMenu::_onBack {}
private

Definition at line 243 of file SettingsMenu.hpp.

Referenced by Initialize(), and SetOnBack().

◆ _onMainMenu

std::function<void()> Game::SettingsMenu::_onMainMenu {}
private

Definition at line 244 of file SettingsMenu.hpp.

Referenced by Initialize(), and SetOnMainMenu().

◆ _onShowChatChanged

std::function<void(bool)> Game::SettingsMenu::_onShowChatChanged {}
private

Definition at line 247 of file SettingsMenu.hpp.

Referenced by SetOnShowChatChanged(), and SetShowChat().

◆ _onShowFpsChanged

std::function<void(bool)> Game::SettingsMenu::_onShowFpsChanged {}
private

Definition at line 246 of file SettingsMenu.hpp.

Referenced by SetOnShowFpsChanged(), and SetShowFps().

◆ _onShowPingChanged

std::function<void(bool)> Game::SettingsMenu::_onShowPingChanged {}
private

Definition at line 242 of file SettingsMenu.hpp.

Referenced by SetOnShowPingChanged(), and SetShowPing().

◆ _onTargetFpsChanged

std::function<void(uint32_t)> Game::SettingsMenu::_onTargetFpsChanged {}
private

Definition at line 248 of file SettingsMenu.hpp.

Referenced by SetOnTargetFpsChanged(), and SetTargetFps().

◆ _onVolumeChanged

std::function<void(float)> Game::SettingsMenu::_onVolumeChanged {}
private

Definition at line 249 of file SettingsMenu.hpp.

Referenced by Initialize(), SetOnVolumeChanged(), and SetVolume().

◆ _overlayDimColor

unsigned int Game::SettingsMenu::_overlayDimColor {0x88000000}
private

Definition at line 238 of file SettingsMenu.hpp.

Referenced by GetOverlayDimColor(), and SetOverlayDimColor().

◆ _showChat

bool Game::SettingsMenu::_showChat {false}
private

◆ _showFps

bool Game::SettingsMenu::_showFps {true}
private

◆ _showPing

bool Game::SettingsMenu::_showPing {true}
private

◆ _targetFps

uint32_t Game::SettingsMenu::_targetFps {60}
private

◆ _volume

float Game::SettingsMenu::_volume {50.0F}
private

Definition at line 240 of file SettingsMenu.hpp.

Referenced by GetVolume(), Initialize(), Render(), SetVolume(), and SetVolumeSilent().

◆ _volumeSlider

std::unique_ptr<UI::ISlider> Game::SettingsMenu::_volumeSlider
private

Definition at line 231 of file SettingsMenu.hpp.

Referenced by Initialize(), Render(), SettingsMenu(), SetVolume(), SetVolumeSilent(), and Update().

◆ ACCESSIBILITY_INDEX

constexpr size_t Game::SettingsMenu::ACCESSIBILITY_INDEX = 5
staticconstexprprivate

Definition at line 257 of file SettingsMenu.hpp.

◆ AUTO_MATCHMAKING_INDEX

constexpr size_t Game::SettingsMenu::AUTO_MATCHMAKING_INDEX = 3
staticconstexprprivate

Definition at line 255 of file SettingsMenu.hpp.

Referenced by UpdateAutoMatchmakingVisuals().

◆ BACK_INDEX

constexpr size_t Game::SettingsMenu::BACK_INDEX = 6
staticconstexprprivate

Definition at line 258 of file SettingsMenu.hpp.

◆ MAIN_MENU_INDEX

constexpr size_t Game::SettingsMenu::MAIN_MENU_INDEX = 7
staticconstexprprivate

Definition at line 259 of file SettingsMenu.hpp.

◆ TARGET_FPS_INDEX

constexpr size_t Game::SettingsMenu::TARGET_FPS_INDEX = 4
staticconstexprprivate

Definition at line 256 of file SettingsMenu.hpp.

Referenced by UpdateTargetFpsVisuals().

◆ TOGGLE_CHAT_INDEX

constexpr size_t Game::SettingsMenu::TOGGLE_CHAT_INDEX = 2
staticconstexprprivate

Definition at line 254 of file SettingsMenu.hpp.

Referenced by UpdateChatToggleVisuals().

◆ TOGGLE_FPS_INDEX

constexpr size_t Game::SettingsMenu::TOGGLE_FPS_INDEX = 1
staticconstexprprivate

Definition at line 253 of file SettingsMenu.hpp.

Referenced by UpdateFpsToggleVisuals().

◆ TOGGLE_PING_INDEX

constexpr size_t Game::SettingsMenu::TOGGLE_PING_INDEX = 0
staticconstexprprivate

Definition at line 252 of file SettingsMenu.hpp.

Referenced by UpdateToggleVisuals().


The documentation for this class was generated from the following files: