DDraceNetwork Docs
CMenus Class Reference

#include <menus.h>

Inheritance diagram for CMenus:
[legend]
Collaboration diagram for CMenus:
[legend]

Classes

class  CAbstractCommunityIconJob
 
class  CCommunityIconDownloadJob
 
class  CCommunityIconLoadJob
 
struct  CDemoItem
 
class  CFriendItem
 
struct  CGhostItem
 
class  CLoadingState
 
class  CMapListItem
 
struct  CMenuImage
 
class  CPopupMapPickerContext
 
struct  SCustomEmoticon
 
struct  SCustomEntities
 
struct  SCustomExtras
 
struct  SCustomGame
 
struct  SCustomHud
 
struct  SCustomItem
 
struct  SCustomParticle
 
struct  SPopupCountrySelectionContext
 

Public Types

enum  {
  PAGE_NEWS = 1 , PAGE_GAME , PAGE_PLAYERS , PAGE_SERVER_INFO ,
  PAGE_CALLVOTE , PAGE_INTERNET , PAGE_LAN , PAGE_FAVORITES ,
  PAGE_FAVORITE_COMMUNITY_1 , PAGE_FAVORITE_COMMUNITY_2 , PAGE_FAVORITE_COMMUNITY_3 , PAGE_FAVORITE_COMMUNITY_4 ,
  PAGE_FAVORITE_COMMUNITY_5 , PAGE_DEMOS , PAGE_SETTINGS , PAGE_NETWORK ,
  PAGE_GHOST , PAGE_LENGTH , SETTINGS_LANGUAGE = 0 , SETTINGS_GENERAL ,
  SETTINGS_PLAYER , SETTINGS_TEE , SETTINGS_APPEARANCE , SETTINGS_CONTROLS ,
  SETTINGS_GRAPHICS , SETTINGS_SOUND , SETTINGS_DDNET , SETTINGS_ASSETS ,
  SETTINGS_LENGTH , BIG_TAB_NEWS = 0 , BIG_TAB_INTERNET , BIG_TAB_LAN ,
  BIG_TAB_FAVORITES , BIT_TAB_FAVORITE_COMMUNITY_1 , BIT_TAB_FAVORITE_COMMUNITY_2 , BIT_TAB_FAVORITE_COMMUNITY_3 ,
  BIT_TAB_FAVORITE_COMMUNITY_4 , BIT_TAB_FAVORITE_COMMUNITY_5 , BIG_TAB_DEMOS , BIG_TAB_LENGTH ,
  SMALL_TAB_HOME = 0 , SMALL_TAB_QUIT , SMALL_TAB_SETTINGS , SMALL_TAB_EDITOR ,
  SMALL_TAB_DEMOBUTTON , SMALL_TAB_SERVER , SMALL_TAB_BROWSER_FILTER , SMALL_TAB_BROWSER_INFO ,
  SMALL_TAB_BROWSER_FRIENDS , SMALL_TAB_LENGTH
}
 
enum  { GHOST_SORT_NONE = -1 , GHOST_SORT_NAME , GHOST_SORT_TIME , GHOST_SORT_DATE }
 
enum  {
  POPUP_NONE = 0 , POPUP_MESSAGE , POPUP_CONFIRM , POPUP_FIRST_LAUNCH ,
  POPUP_POINTS , POPUP_DISCONNECTED , POPUP_LANGUAGE , POPUP_RENAME_DEMO ,
  POPUP_RENDER_DEMO , POPUP_RENDER_DONE , POPUP_PASSWORD , POPUP_QUIT ,
  POPUP_RESTART , POPUP_WARNING , POPUP_SAVE_SKIN , DEMOPLAYER_NONE = 0 ,
  DEMOPLAYER_SLICE_SAVE
}
 

Public Member Functions

void RenderBackground ()
 
 CMenus ()
 
virtual int Sizeof () const override
 
void RenderLoading (const char *pCaption, const char *pContent, int IncreaseCounter, bool RenderLoadingBar=true, bool RenderMenuBackgroundMap=true)
 
bool IsInit ()
 
bool IsActive () const
 
void KillServer ()
 
virtual void OnInit () override
 
void OnConsoleInit () override
 
virtual void OnStateChange (int NewState, int OldState) override
 
virtual void OnWindowResize () override
 
virtual void OnRefreshSkins () override
 
virtual void OnReset () override
 
virtual void OnRender () override
 
virtual bool OnInput (const IInput::CEvent &Event) override
 
virtual bool OnCursorMove (float x, float y, IInput::ECursorType CursorType) override
 
virtual void OnShutdown () override
 
int DoButton_CheckBox_Tristate (const void *pId, const char *pText, TRISTATE Checked, const CUIRect *pRect)
 
void DemolistPopulate ()
 
void RefreshFilteredDemos ()
 
void DemoSeekTick (IDemoPlayer::ETickOffset TickOffset)
 
const char * GetCurrentDemoFolder () const
 
void GhostlistPopulate ()
 
CGhostItemGetOwnGhost ()
 
void UpdateOwnGhost (CGhostItem Item)
 
void DeleteGhostItem (int Index)
 
void SortGhostlist ()
 
bool CanDisplayWarning () const
 
void PopupWarning (const char *pTopic, const char *pBody, const char *pButton, std::chrono::nanoseconds Duration)
 
- Public Member Functions inherited from CComponent
virtual ~CComponent ()
 
virtual int Sizeof () const =0
 
class CGameClientGameClient () const
 
class IClientClient () const
 
virtual void OnStateChange (int NewState, int OldState)
 
virtual void OnConsoleInit ()
 
virtual void OnInit ()
 
virtual void OnShutdown ()
 
virtual void OnReset ()
 
virtual void OnWindowResize ()
 
virtual void OnRefreshSkins ()
 
virtual void OnRender ()
 
virtual void OnNewSnapshot ()
 
virtual void OnRelease ()
 
virtual void OnMapLoad ()
 
virtual void OnMessage (int Msg, void *pRawMsg)
 
virtual bool OnCursorMove (float x, float y, IInput::ECursorType CursorType)
 
virtual bool OnInput (const IInput::CEvent &Event)
 

Public Attributes

SUIAnimator m_aAnimatorsBigPage [BIG_TAB_LENGTH]
 
SUIAnimator m_aAnimatorsSmallPage [SMALL_TAB_LENGTH]
 
SUIAnimator m_aAnimatorsSettingsTab [SETTINGS_LENGTH]
 
std::vector< CDemoItemm_vDemos
 
std::vector< CDemoItem * > m_vpFilteredDemos
 
bool m_Dummy
 
std::vector< CGhostItemm_vGhosts
 
std::chrono::nanoseconds m_GhostPopulateStartTime {0}
 
std::chrono::nanoseconds m_PopupWarningLastTime
 
std::chrono::nanoseconds m_PopupWarningDuration
 
int m_DemoPlayerState
 
char m_aLabel [64]
 
int m_NextPopup
 
FPopupButtonCallback m_pfnCallback
 

Static Public Attributes

static CMenusKeyBinder m_Binder
 

Protected Types

enum  { BUTTON_CONFIRM = 0 , BUTTON_CANCEL , NUM_BUTTONS }
 
enum  { SORT_DEMONAME = 0 , SORT_LENGTH , SORT_DATE }
 
enum  { FRIEND_PLAYER_ON = 0 , FRIEND_CLAN_ON , FRIEND_OFF , NUM_FRIEND_TYPES }
 
typedef void(CMenus::* FPopupButtonCallback) ()
 

Protected Member Functions

void ClearCustomItems (int CurTab)
 
const CMenuImageFindMenuImage (const char *pName)
 
void DefaultButtonCallback ()
 
void PopupMessage (const char *pTitle, const char *pMessage, const char *pButtonLabel, int NextPopup=POPUP_NONE, FPopupButtonCallback pfnButtonCallback=&CMenus::DefaultButtonCallback)
 
void PopupConfirm (const char *pTitle, const char *pMessage, const char *pConfirmButtonLabel, const char *pCancelButtonLabel, FPopupButtonCallback pfnConfirmButtonCallback=&CMenus::DefaultButtonCallback, int ConfirmNextPopup=POPUP_NONE, FPopupButtonCallback pfnCancelButtonCallback=&CMenus::DefaultButtonCallback, int CancelNextPopup=POPUP_NONE)
 
void PopupConfirmDeleteSkin7 ()
 
void DemolistOnUpdate (bool Reset)
 
void Render ()
 
void RenderPopupFullscreen (CUIRect Screen)
 
void RenderPopupConnecting (CUIRect Screen)
 
void RenderPopupLoading (CUIRect Screen)
 
void PopupConfirmDemoReplaceVideo ()
 
void RenderMenubar (CUIRect Box, IClient::EClientState ClientState)
 
void RenderNews (CUIRect MainView)
 
void UpdateMusicState ()
 
bool FetchHeader (CDemoItem &Item)
 
void FetchAllHeaders ()
 
void HandleDemoSeeking (float PositionToSeek, float TimeToSeek)
 
void RenderDemoPlayer (CUIRect MainView)
 
void RenderDemoPlayerSliceSavePopup (CUIRect MainView)
 
void RenderDemoBrowser (CUIRect MainView)
 
void RenderDemoBrowserList (CUIRect ListView, bool &WasListboxItemActivated)
 
void RenderDemoBrowserDetails (CUIRect DetailsView)
 
void RenderDemoBrowserButtons (CUIRect ButtonsView, bool WasListboxItemActivated)
 
void PopupConfirmDeleteDemo ()
 
void PopupConfirmDeleteFolder ()
 
void RenderStartMenu (CUIRect MainView)
 
void RenderGame (CUIRect MainView)
 
void PopupConfirmDisconnect ()
 
void PopupConfirmDisconnectDummy ()
 
void RenderPlayers (CUIRect MainView)
 
void RenderServerInfo (CUIRect MainView)
 
void RenderServerInfoMotd (CUIRect Motd)
 
void RenderServerControl (CUIRect MainView)
 
bool RenderServerControlKick (CUIRect MainView, bool FilterSpectators)
 
bool RenderServerControlServer (CUIRect MainView)
 
void RenderIngameHint ()
 
void RenderServerbrowserServerList (CUIRect View, bool &WasListboxItemActivated)
 
void RenderServerbrowserStatusBox (CUIRect StatusBox, bool WasListboxItemActivated)
 
void Connect (const char *pAddress)
 
void PopupConfirmSwitchServer ()
 
void RenderServerbrowserFilters (CUIRect View)
 
void ResetServerbrowserFilters ()
 
void RenderServerbrowserDDNetFilter (CUIRect View, IFilterList &Filter, float ItemHeight, int MaxItems, int ItemsPerRow, CScrollRegion &ScrollRegion, std::vector< unsigned char > &vItemIds, bool UpdateCommunityCacheOnChange, const std::function< const char *(int ItemIndex)> &GetItemName, const std::function< void(int ItemIndex, CUIRect Item, const void *pItemId, bool Active)> &RenderItem)
 
void RenderServerbrowserCommunitiesFilter (CUIRect View)
 
void RenderServerbrowserCountriesFilter (CUIRect View)
 
void RenderServerbrowserTypesFilter (CUIRect View)
 
void RenderServerbrowserInfo (CUIRect View)
 
void RenderServerbrowserInfoScoreboard (CUIRect View, const CServerInfo *pSelectedServer)
 
void RenderServerbrowserFriends (CUIRect View)
 
void FriendlistOnUpdate ()
 
void PopupConfirmRemoveFriend ()
 
void RenderServerbrowserTabBar (CUIRect TabBar)
 
void RenderServerbrowserToolBox (CUIRect ToolBox)
 
void RenderServerbrowser (CUIRect MainView)
 
template<typename F >
bool PrintHighlighted (const char *pName, F &&PrintFn)
 
CTeeRenderInfo GetTeeRenderInfo (vec2 Size, const char *pSkinName, bool CustomSkinColors, int CustomSkinColorBody, int CustomSkinColorFeet) const
 
void UpdateCommunityCache (bool Force)
 
const SCommunityIconFindCommunityIcon (const char *pCommunityId)
 
bool LoadCommunityIconFile (const char *pPath, int DirType, CImageInfo &Info, SHA256_DIGEST &Sha256)
 
void LoadCommunityIconFinish (const char *pCommunityId, CImageInfo &Info, const SHA256_DIGEST &Sha256)
 
void RenderCommunityIcon (const SCommunityIcon *pIcon, CUIRect Rect, bool Active)
 
void UpdateCommunityIcons ()
 
void OnConfigSave (IConfigManager *pConfigManager)
 
bool RenderLanguageSelection (CUIRect MainView)
 
void RenderThemeSelection (CUIRect MainView)
 
void RenderSettingsGeneral (CUIRect MainView)
 
void RenderSettingsPlayer (CUIRect MainView)
 
void RenderSettingsDummyPlayer (CUIRect MainView)
 
void RenderSettingsTee (CUIRect MainView)
 
void RenderSettingsTee7 (CUIRect MainView)
 
void RenderSettingsTeeCustom7 (CUIRect MainView)
 
void RenderSkinSelection7 (CUIRect MainView)
 
void RenderSkinPartSelection7 (CUIRect MainView)
 
void RenderSettingsControls (CUIRect MainView)
 
void ResetSettingsControls ()
 
void RenderSettingsGraphics (CUIRect MainView)
 
void RenderSettingsSound (CUIRect MainView)
 
void RenderSettings (CUIRect MainView)
 
void RenderSettingsCustom (CUIRect MainView)
 
void SetNeedSendInfo ()
 
void SetActive (bool Active)
 
void UpdateColors ()
 
bool CheckHotKey (int Key) const
 
- Protected Member Functions inherited from CComponent
class IKernelKernel () const
 
class IEngineEngine () const
 
class IGraphicsGraphics () const
 
class ITextRenderTextRender () const
 
class IInputInput () const
 
class IStorageStorage () const
 
class CUiUi () const
 
class ISoundSound () const
 
class CRenderToolsRenderTools () const
 
class IConfigManagerConfigManager () const
 
class CConfigConfig () const
 
class IConsoleConsole () const
 
class IDemoPlayerDemoPlayer () const
 
class IDemoRecorderDemoRecorder (int Recorder) const
 
class IFavoritesFavorites () const
 
class IServerBrowserServerBrowser () const
 
class CLayersLayers () const
 
class CCollisionCollision () const
 
int64_t time () const
 
float LocalTime () const
 
class IHttpHttp () const
 

Static Protected Member Functions

static void LoadEntities (struct SCustomEntities *pEntitiesItem, void *pUser)
 
static int EntitiesScan (const char *pName, int IsDir, int DirType, void *pUser)
 
static int GameScan (const char *pName, int IsDir, int DirType, void *pUser)
 
static int EmoticonsScan (const char *pName, int IsDir, int DirType, void *pUser)
 
static int ParticlesScan (const char *pName, int IsDir, int DirType, void *pUser)
 
static int HudScan (const char *pName, int IsDir, int DirType, void *pUser)
 
static int ExtrasScan (const char *pName, int IsDir, int DirType, void *pUser)
 
static void ConchainAssetsEntities (IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
 
static void ConchainAssetGame (IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
 
static void ConchainAssetParticles (IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
 
static void ConchainAssetEmoticons (IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
 
static void ConchainAssetHud (IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
 
static void ConchainAssetExtras (IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
 
static int MenuImageScan (const char *pName, int IsDir, int DirType, void *pUser)
 
static int DemolistFetchCallback (const CFsFileInfo *pInfo, int IsDir, int StorageType, void *pUser)
 
static void ConchainBackgroundEntities (IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
 
static void ConchainUpdateMusicState (IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
 
static bool DemoFilterChat (const void *pData, int Size, void *pUser)
 
static CUi::EPopupMenuFunctionResult PopupCountrySelection (void *pContext, CUIRect View, bool Active)
 
static void ConchainFriendlistUpdate (IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
 
static void ConchainFavoritesUpdate (IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
 
static void ConchainCommunitiesUpdate (IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
 
static void ConchainUiPageUpdate (IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
 
static int CommunityIconScan (const char *pName, int IsDir, int DirType, void *pUser)
 
static void Con_AddFavoriteSkin (IConsole::IResult *pResult, void *pUserData)
 
static void Con_RemFavoriteSkin (IConsole::IResult *pResult, void *pUserData)
 
static void ConfigSaveCallback (IConfigManager *pConfigManager, void *pUserData)
 
static bool CompareFilenameAscending (const CMapListItem Lhs, const CMapListItem Rhs)
 
static CUi::EPopupMenuFunctionResult PopupMapPicker (void *pContext, CUIRect View, bool Active)
 

Protected Attributes

std::vector< SCustomEntitiesm_vEntitiesList
 
std::vector< SCustomGamem_vGameList
 
std::vector< SCustomEmoticonm_vEmoticonList
 
std::vector< SCustomParticlem_vParticlesList
 
std::vector< SCustomHudm_vHudList
 
std::vector< SCustomExtrasm_vExtrasList
 
bool m_IsInit = false
 
int m_MenuPage
 
int m_GamePage
 
int m_Popup
 
bool m_ShowStart
 
bool m_MenuActive
 
bool m_JoinTutorial = false
 
bool m_CreateDefaultFavoriteCommunities = false
 
bool m_ForceRefreshLanPage = false
 
char m_aNextServer [256]
 
std::vector< CMenuImagem_vMenuImages
 
CLoadingState m_LoadingState
 
char m_aMessageTopic [512]
 
char m_aMessageBody [512]
 
char m_aMessageButton [512]
 
CUIElement m_RefreshButton
 
CUIElement m_ConnectButton
 
char m_aPopupTitle [128]
 
char m_aPopupMessage [IO_MAX_PATH_LENGTH+256]
 
struct {
   char   m_aLabel [64]
 
   int   m_NextPopup
 
   FPopupButtonCallback   m_pfnCallback
 
m_aPopupButtons [NUM_BUTTONS]
 
bool m_NeedRestartGraphics
 
bool m_NeedRestartSound
 
bool m_NeedRestartUpdate
 
bool m_NeedSendinfo
 
bool m_NeedSendDummyinfo
 
int m_SettingPlayerPage
 
bool m_CustomSkinMenu = false
 
int m_TeePartSelected = protocol7::SKINPART_BODY
 
const CSkins7::CSkinm_pSelectedSkin = nullptr
 
CLineInputBuffered< protocol7::MAX_SKIN_ARRAY_SIZE, protocol7::MAX_SKIN_LENGTHm_SkinNameInput
 
bool m_SkinPartListNeedsUpdate = false
 
int64_t m_DownloadLastCheckTime
 
int m_DownloadLastCheckSize
 
float m_DownloadSpeed
 
CLineInput m_PasswordInput
 
int m_CallvoteSelectedOption
 
int m_CallvoteSelectedPlayer
 
CLineInputBuffered< VOTE_REASON_LENGTHm_CallvoteReasonInput
 
CLineInputBuffered< 64 > m_FilterInput
 
bool m_ControlPageOpening
 
char m_aCurrentDemoFolder [IO_MAX_PATH_LENGTH]
 
char m_aCurrentDemoSelectionName [IO_MAX_PATH_LENGTH]
 
CLineInputBuffered< IO_MAX_PATH_LENGTHm_DemoRenameInput
 
CLineInputBuffered< IO_MAX_PATH_LENGTHm_DemoSliceInput
 
CLineInputBuffered< IO_MAX_PATH_LENGTHm_DemoSearchInput
 
CLineInputBuffered< IO_MAX_PATH_LENGTHm_DemoRenderInput
 
int m_DemolistSelectedIndex
 
bool m_DemolistSelectedReveal = false
 
int m_DemolistStorageType
 
bool m_DemolistMultipleStorages = false
 
int m_Speed = 4
 
bool m_StartPaused = false
 
std::chrono::nanoseconds m_DemoPopulateStartTime {0}
 
std::vector< CFriendItemm_avFriends [NUM_FRIEND_TYPES]
 
const CFriendItemm_pRemoveFriend = nullptr
 
vec2 m_DemoControlsPositionOffset = vec2(0.0f, 0.0f)
 
float m_LastPauseChange = -1.0f
 
float m_LastSpeedChange = -1.0f
 
bool m_DemoBrowserListInitialized = false
 
bool m_EditorHotkeyWasPressed = true
 
float m_EditorHotKeyChecktime = 0.0f
 
STextContainerIndex m_MotdTextContainerIndex
 
int m_SelectedIndex
 
bool m_ServerBrowserShouldRevealSelection
 
std::vector< CUIElement * > m_avpServerBrowserUiElements [IServerBrowser::NUM_TYPES]
 
std::vector< SCommunityIconm_vCommunityIcons
 
std::deque< std::shared_ptr< CCommunityIconLoadJob > > m_CommunityIconLoadJobs
 
std::deque< std::shared_ptr< CCommunityIconDownloadJob > > m_CommunityIconDownloadJobs
 
SHA256_DIGEST m_CommunityIconsInfoSha256 = SHA256_ZEROED
 
bool m_SkinFavoritesChanged = false
 
std::unordered_set< std::string > m_SkinFavorites
 
IGraphics::CTextureHandle m_TextureBlob
 
- Protected Attributes inherited from CComponent
CGameClientm_pClient
 

Static Protected Attributes

static float ms_ButtonHeight = 25.0f
 
static float ms_ListheaderHeight = 17.0f
 
static float ms_ListitemAdditionalHeight
 

Private Member Functions

int DoButton_FontIcon (CButtonContainer *pButtonContainer, const char *pText, int Checked, const CUIRect *pRect, int Corners=IGraphics::CORNER_ALL, bool Enabled=true)
 
int DoButton_Toggle (const void *pId, int Checked, const CUIRect *pRect, bool Active)
 
int DoButton_Menu (CButtonContainer *pButtonContainer, const char *pText, int Checked, const CUIRect *pRect, const char *pImageName=nullptr, int Corners=IGraphics::CORNER_ALL, float Rounding=5.0f, float FontFactor=0.0f, ColorRGBA Color=ColorRGBA(1.0f, 1.0f, 1.0f, 0.5f))
 
int DoButton_MenuTab (CButtonContainer *pButtonContainer, const char *pText, int Checked, const CUIRect *pRect, int Corners, SUIAnimator *pAnimator=nullptr, const ColorRGBA *pDefaultColor=nullptr, const ColorRGBA *pActiveColor=nullptr, const ColorRGBA *pHoverColor=nullptr, float EdgeRounding=10.0f, const SCommunityIcon *pCommunityIcon=nullptr)
 
int DoButton_CheckBox_Common (const void *pId, const char *pText, const char *pBoxText, const CUIRect *pRect)
 
int DoButton_CheckBox (const void *pId, const char *pText, int Checked, const CUIRect *pRect)
 
int DoButton_CheckBoxAutoVMarginAndSet (const void *pId, const char *pText, int *pValue, CUIRect *pRect, float VMargin)
 
int DoButton_CheckBox_Number (const void *pId, const char *pText, int Checked, const CUIRect *pRect)
 
ColorHSLA DoLine_ColorPicker (CButtonContainer *pResetId, float LineSize, float LabelSize, float BottomMargin, CUIRect *pMainRect, const char *pText, unsigned int *pColorValue, ColorRGBA DefaultColor, bool CheckBoxSpacing=true, int *pCheckBoxValue=nullptr, bool Alpha=false)
 
ColorHSLA DoButton_ColorPicker (const CUIRect *pRect, unsigned int *pHslaColor, bool Alpha)
 
void DoLaserPreview (const CUIRect *pRect, ColorHSLA OutlineColor, ColorHSLA InnerColor, const int LaserType)
 
int DoButton_GridHeader (const void *pId, const char *pText, int Checked, const CUIRect *pRect)
 
int DoButton_Favorite (const void *pButtonId, const void *pParentId, bool Checked, const CUIRect *pRect)
 
int DoKeyReader (const void *pId, const CUIRect *pRect, int Key, int ModifierCombination, int *pNewModifierCombination)
 
void DoSettingsControlsButtons (int Start, int Stop, CUIRect View)
 
float RenderSettingsControlsJoystick (CUIRect View)
 
void DoJoystickAxisPicker (CUIRect View)
 
void DoJoystickBar (const CUIRect *pRect, float Current, float Tolerance, bool Active)
 
void SetMenuPage (int NewPage)
 
void RefreshBrowserTab (bool Force)
 
void RenderInGameNetwork (CUIRect MainView)
 
void RenderGhost (CUIRect MainView)
 
void RenderSettingsDDNet (CUIRect MainView)
 
void RenderSettingsAppearance (CUIRect MainView)
 
bool RenderHslaScrollbars (CUIRect *pRect, unsigned int *pColor, bool Alpha, float DarkestLight)
 

Static Private Member Functions

static int GhostlistFetchCallback (const CFsFileInfo *pInfo, int IsDir, int StorageType, void *pUser)
 

Private Attributes

bool m_SkinListNeedsUpdate = false
 
bool m_SkinListScrollToSelected = false
 
int m_DirectionQuadContainerIndex
 
CServerProcess m_ServerProcess
 

Static Private Attributes

static ColorRGBA ms_GuiColor
 
static ColorRGBA ms_ColorTabbarInactiveOutgame
 
static ColorRGBA ms_ColorTabbarActiveOutgame
 
static ColorRGBA ms_ColorTabbarHoverOutgame
 
static ColorRGBA ms_ColorTabbarInactiveIngame
 
static ColorRGBA ms_ColorTabbarActiveIngame
 
static ColorRGBA ms_ColorTabbarHoverIngame
 
static ColorRGBA ms_ColorTabbarInactive
 
static ColorRGBA ms_ColorTabbarActive = ColorRGBA(0, 0, 0, 0.5f)
 
static ColorRGBA ms_ColorTabbarHover
 

Member Typedef Documentation

◆ FPopupButtonCallback

typedef void(CMenus::* CMenus::FPopupButtonCallback) ()
protected

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
BUTTON_CONFIRM 
BUTTON_CANCEL 
NUM_BUTTONS 

◆ anonymous enum

anonymous enum
protected
Enumerator
SORT_DEMONAME 
SORT_LENGTH 
SORT_DATE 

◆ anonymous enum

anonymous enum
protected
Enumerator
FRIEND_PLAYER_ON 
FRIEND_CLAN_ON 
FRIEND_OFF 
NUM_FRIEND_TYPES 

◆ anonymous enum

anonymous enum
Enumerator
PAGE_NEWS 
PAGE_GAME 
PAGE_PLAYERS 
PAGE_SERVER_INFO 
PAGE_CALLVOTE 
PAGE_INTERNET 
PAGE_LAN 
PAGE_FAVORITES 
PAGE_FAVORITE_COMMUNITY_1 
PAGE_FAVORITE_COMMUNITY_2 
PAGE_FAVORITE_COMMUNITY_3 
PAGE_FAVORITE_COMMUNITY_4 
PAGE_FAVORITE_COMMUNITY_5 
PAGE_DEMOS 
PAGE_SETTINGS 
PAGE_NETWORK 
PAGE_GHOST 
PAGE_LENGTH 
SETTINGS_LANGUAGE 
SETTINGS_GENERAL 
SETTINGS_PLAYER 
SETTINGS_TEE 
SETTINGS_APPEARANCE 
SETTINGS_CONTROLS 
SETTINGS_GRAPHICS 
SETTINGS_SOUND 
SETTINGS_DDNET 
SETTINGS_ASSETS 
SETTINGS_LENGTH 
BIG_TAB_NEWS 
BIG_TAB_INTERNET 
BIG_TAB_LAN 
BIG_TAB_FAVORITES 
BIT_TAB_FAVORITE_COMMUNITY_1 
BIT_TAB_FAVORITE_COMMUNITY_2 
BIT_TAB_FAVORITE_COMMUNITY_3 
BIT_TAB_FAVORITE_COMMUNITY_4 
BIT_TAB_FAVORITE_COMMUNITY_5 
BIG_TAB_DEMOS 
BIG_TAB_LENGTH 
SMALL_TAB_HOME 
SMALL_TAB_QUIT 
SMALL_TAB_SETTINGS 
SMALL_TAB_EDITOR 
SMALL_TAB_DEMOBUTTON 
SMALL_TAB_SERVER 
SMALL_TAB_BROWSER_FILTER 
SMALL_TAB_BROWSER_INFO 
SMALL_TAB_BROWSER_FRIENDS 
SMALL_TAB_LENGTH 

◆ anonymous enum

anonymous enum
Enumerator
GHOST_SORT_NONE 
GHOST_SORT_NAME 
GHOST_SORT_TIME 
GHOST_SORT_DATE 

◆ anonymous enum

anonymous enum
Enumerator
POPUP_NONE 
POPUP_MESSAGE 
POPUP_CONFIRM 
POPUP_FIRST_LAUNCH 
POPUP_POINTS 
POPUP_DISCONNECTED 
POPUP_LANGUAGE 
POPUP_RENAME_DEMO 
POPUP_RENDER_DEMO 
POPUP_RENDER_DONE 
POPUP_PASSWORD 
POPUP_QUIT 
POPUP_RESTART 
POPUP_WARNING 
POPUP_SAVE_SKIN 
DEMOPLAYER_NONE 
DEMOPLAYER_SLICE_SAVE 

Constructor & Destructor Documentation

◆ CMenus()

CMenus::CMenus ( )

Member Function Documentation

◆ CanDisplayWarning()

bool CMenus::CanDisplayWarning ( ) const

◆ CheckHotKey()

bool CMenus::CheckHotKey ( int  Key) const
protected

◆ ClearCustomItems()

void CMenus::ClearCustomItems ( int  CurTab)
protected

◆ CommunityIconScan()

int CMenus::CommunityIconScan ( const char *  pName,
int  IsDir,
int  DirType,
void *  pUser 
)
staticprotected

◆ CompareFilenameAscending()

static bool CMenus::CompareFilenameAscending ( const CMapListItem  Lhs,
const CMapListItem  Rhs 
)
inlinestaticprotected

◆ Con_AddFavoriteSkin()

void CMenus::Con_AddFavoriteSkin ( IConsole::IResult pResult,
void *  pUserData 
)
staticprotected

◆ Con_RemFavoriteSkin()

void CMenus::Con_RemFavoriteSkin ( IConsole::IResult pResult,
void *  pUserData 
)
staticprotected

◆ ConchainAssetEmoticons()

void CMenus::ConchainAssetEmoticons ( IConsole::IResult pResult,
void *  pUserData,
IConsole::FCommandCallback  pfnCallback,
void *  pCallbackUserData 
)
staticprotected

◆ ConchainAssetExtras()

void CMenus::ConchainAssetExtras ( IConsole::IResult pResult,
void *  pUserData,
IConsole::FCommandCallback  pfnCallback,
void *  pCallbackUserData 
)
staticprotected

◆ ConchainAssetGame()

void CMenus::ConchainAssetGame ( IConsole::IResult pResult,
void *  pUserData,
IConsole::FCommandCallback  pfnCallback,
void *  pCallbackUserData 
)
staticprotected

◆ ConchainAssetHud()

void CMenus::ConchainAssetHud ( IConsole::IResult pResult,
void *  pUserData,
IConsole::FCommandCallback  pfnCallback,
void *  pCallbackUserData 
)
staticprotected

◆ ConchainAssetParticles()

void CMenus::ConchainAssetParticles ( IConsole::IResult pResult,
void *  pUserData,
IConsole::FCommandCallback  pfnCallback,
void *  pCallbackUserData 
)
staticprotected

◆ ConchainAssetsEntities()

void CMenus::ConchainAssetsEntities ( IConsole::IResult pResult,
void *  pUserData,
IConsole::FCommandCallback  pfnCallback,
void *  pCallbackUserData 
)
staticprotected

◆ ConchainBackgroundEntities()

void CMenus::ConchainBackgroundEntities ( IConsole::IResult pResult,
void *  pUserData,
IConsole::FCommandCallback  pfnCallback,
void *  pCallbackUserData 
)
staticprotected

◆ ConchainCommunitiesUpdate()

void CMenus::ConchainCommunitiesUpdate ( IConsole::IResult pResult,
void *  pUserData,
IConsole::FCommandCallback  pfnCallback,
void *  pCallbackUserData 
)
staticprotected

◆ ConchainFavoritesUpdate()

void CMenus::ConchainFavoritesUpdate ( IConsole::IResult pResult,
void *  pUserData,
IConsole::FCommandCallback  pfnCallback,
void *  pCallbackUserData 
)
staticprotected

◆ ConchainFriendlistUpdate()

void CMenus::ConchainFriendlistUpdate ( IConsole::IResult pResult,
void *  pUserData,
IConsole::FCommandCallback  pfnCallback,
void *  pCallbackUserData 
)
staticprotected

◆ ConchainUiPageUpdate()

void CMenus::ConchainUiPageUpdate ( IConsole::IResult pResult,
void *  pUserData,
IConsole::FCommandCallback  pfnCallback,
void *  pCallbackUserData 
)
staticprotected

◆ ConchainUpdateMusicState()

void CMenus::ConchainUpdateMusicState ( IConsole::IResult pResult,
void *  pUserData,
IConsole::FCommandCallback  pfnCallback,
void *  pCallbackUserData 
)
staticprotected

◆ ConfigSaveCallback()

void CMenus::ConfigSaveCallback ( IConfigManager pConfigManager,
void *  pUserData 
)
staticprotected

◆ Connect()

void CMenus::Connect ( const char *  pAddress)
protected

◆ DefaultButtonCallback()

void CMenus::DefaultButtonCallback ( )
inlineprotected

◆ DeleteGhostItem()

void CMenus::DeleteGhostItem ( int  Index)

◆ DemoFilterChat()

bool CMenus::DemoFilterChat ( const void *  pData,
int  Size,
void *  pUser 
)
staticprotected

◆ DemolistFetchCallback()

int CMenus::DemolistFetchCallback ( const CFsFileInfo pInfo,
int  IsDir,
int  StorageType,
void *  pUser 
)
staticprotected

◆ DemolistOnUpdate()

void CMenus::DemolistOnUpdate ( bool  Reset)
protected

◆ DemolistPopulate()

void CMenus::DemolistPopulate ( )

◆ DemoSeekTick()

void CMenus::DemoSeekTick ( IDemoPlayer::ETickOffset  TickOffset)

◆ DoButton_CheckBox()

int CMenus::DoButton_CheckBox ( const void *  pId,
const char *  pText,
int  Checked,
const CUIRect pRect 
)
private

◆ DoButton_CheckBox_Common()

int CMenus::DoButton_CheckBox_Common ( const void *  pId,
const char *  pText,
const char *  pBoxText,
const CUIRect pRect 
)
private

◆ DoButton_CheckBox_Number()

int CMenus::DoButton_CheckBox_Number ( const void *  pId,
const char *  pText,
int  Checked,
const CUIRect pRect 
)
private

◆ DoButton_CheckBox_Tristate()

int CMenus::DoButton_CheckBox_Tristate ( const void *  pId,
const char *  pText,
TRISTATE  Checked,
const CUIRect pRect 
)

◆ DoButton_CheckBoxAutoVMarginAndSet()

int CMenus::DoButton_CheckBoxAutoVMarginAndSet ( const void *  pId,
const char *  pText,
int *  pValue,
CUIRect pRect,
float  VMargin 
)
private

◆ DoButton_ColorPicker()

ColorHSLA CMenus::DoButton_ColorPicker ( const CUIRect pRect,
unsigned int *  pHslaColor,
bool  Alpha 
)
private

◆ DoButton_Favorite()

int CMenus::DoButton_Favorite ( const void *  pButtonId,
const void *  pParentId,
bool  Checked,
const CUIRect pRect 
)
private

◆ DoButton_FontIcon()

int CMenus::DoButton_FontIcon ( CButtonContainer pButtonContainer,
const char *  pText,
int  Checked,
const CUIRect pRect,
int  Corners = IGraphics::CORNER_ALL,
bool  Enabled = true 
)
private

◆ DoButton_GridHeader()

int CMenus::DoButton_GridHeader ( const void *  pId,
const char *  pText,
int  Checked,
const CUIRect pRect 
)
private

◆ DoButton_Menu()

int CMenus::DoButton_Menu ( CButtonContainer pButtonContainer,
const char *  pText,
int  Checked,
const CUIRect pRect,
const char *  pImageName = nullptr,
int  Corners = IGraphics::CORNER_ALL,
float  Rounding = 5.0f,
float  FontFactor = 0.0f,
ColorRGBA  Color = ColorRGBA(1.0f, 1.0f, 1.0f, 0.5f) 
)
private

◆ DoButton_MenuTab()

int CMenus::DoButton_MenuTab ( CButtonContainer pButtonContainer,
const char *  pText,
int  Checked,
const CUIRect pRect,
int  Corners,
SUIAnimator pAnimator = nullptr,
const ColorRGBA pDefaultColor = nullptr,
const ColorRGBA pActiveColor = nullptr,
const ColorRGBA pHoverColor = nullptr,
float  EdgeRounding = 10.0f,
const SCommunityIcon pCommunityIcon = nullptr 
)
private

◆ DoButton_Toggle()

int CMenus::DoButton_Toggle ( const void *  pId,
int  Checked,
const CUIRect pRect,
bool  Active 
)
private

◆ DoJoystickAxisPicker()

void CMenus::DoJoystickAxisPicker ( CUIRect  View)
private

◆ DoJoystickBar()

void CMenus::DoJoystickBar ( const CUIRect pRect,
float  Current,
float  Tolerance,
bool  Active 
)
private

◆ DoKeyReader()

int CMenus::DoKeyReader ( const void *  pId,
const CUIRect pRect,
int  Key,
int  ModifierCombination,
int *  pNewModifierCombination 
)
private

◆ DoLaserPreview()

void CMenus::DoLaserPreview ( const CUIRect pRect,
ColorHSLA  OutlineColor,
ColorHSLA  InnerColor,
const int  LaserType 
)
private

◆ DoLine_ColorPicker()

ColorHSLA CMenus::DoLine_ColorPicker ( CButtonContainer pResetId,
float  LineSize,
float  LabelSize,
float  BottomMargin,
CUIRect pMainRect,
const char *  pText,
unsigned int *  pColorValue,
ColorRGBA  DefaultColor,
bool  CheckBoxSpacing = true,
int *  pCheckBoxValue = nullptr,
bool  Alpha = false 
)
private

◆ DoSettingsControlsButtons()

void CMenus::DoSettingsControlsButtons ( int  Start,
int  Stop,
CUIRect  View 
)
private

◆ EmoticonsScan()

int CMenus::EmoticonsScan ( const char *  pName,
int  IsDir,
int  DirType,
void *  pUser 
)
staticprotected

◆ EntitiesScan()

int CMenus::EntitiesScan ( const char *  pName,
int  IsDir,
int  DirType,
void *  pUser 
)
staticprotected

◆ ExtrasScan()

int CMenus::ExtrasScan ( const char *  pName,
int  IsDir,
int  DirType,
void *  pUser 
)
staticprotected

◆ FetchAllHeaders()

void CMenus::FetchAllHeaders ( )
protected

◆ FetchHeader()

bool CMenus::FetchHeader ( CDemoItem Item)
protected

◆ FindCommunityIcon()

const SCommunityIcon * CMenus::FindCommunityIcon ( const char *  pCommunityId)
protected

◆ FindMenuImage()

const CMenus::CMenuImage * CMenus::FindMenuImage ( const char *  pName)
protected

◆ FriendlistOnUpdate()

void CMenus::FriendlistOnUpdate ( )
protected

◆ GameScan()

int CMenus::GameScan ( const char *  pName,
int  IsDir,
int  DirType,
void *  pUser 
)
staticprotected

◆ GetCurrentDemoFolder()

const char * CMenus::GetCurrentDemoFolder ( ) const
inline

◆ GetOwnGhost()

CMenus::CGhostItem * CMenus::GetOwnGhost ( )

◆ GetTeeRenderInfo()

CTeeRenderInfo CMenus::GetTeeRenderInfo ( vec2  Size,
const char *  pSkinName,
bool  CustomSkinColors,
int  CustomSkinColorBody,
int  CustomSkinColorFeet 
) const
protected

◆ GhostlistFetchCallback()

int CMenus::GhostlistFetchCallback ( const CFsFileInfo pInfo,
int  IsDir,
int  StorageType,
void *  pUser 
)
staticprivate

◆ GhostlistPopulate()

void CMenus::GhostlistPopulate ( )

◆ HandleDemoSeeking()

void CMenus::HandleDemoSeeking ( float  PositionToSeek,
float  TimeToSeek 
)
protected

◆ HudScan()

int CMenus::HudScan ( const char *  pName,
int  IsDir,
int  DirType,
void *  pUser 
)
staticprotected

◆ IsActive()

bool CMenus::IsActive ( ) const
inline

◆ IsInit()

bool CMenus::IsInit ( )
inline

◆ KillServer()

void CMenus::KillServer ( )

◆ LoadCommunityIconFile()

bool CMenus::LoadCommunityIconFile ( const char *  pPath,
int  DirType,
CImageInfo Info,
SHA256_DIGEST Sha256 
)
protected

◆ LoadCommunityIconFinish()

void CMenus::LoadCommunityIconFinish ( const char *  pCommunityId,
CImageInfo Info,
const SHA256_DIGEST Sha256 
)
protected

◆ LoadEntities()

void CMenus::LoadEntities ( struct SCustomEntities pEntitiesItem,
void *  pUser 
)
staticprotected

◆ MenuImageScan()

int CMenus::MenuImageScan ( const char *  pName,
int  IsDir,
int  DirType,
void *  pUser 
)
staticprotected

◆ OnConfigSave()

void CMenus::OnConfigSave ( IConfigManager pConfigManager)
protected

◆ OnConsoleInit()

void CMenus::OnConsoleInit ( )
overridevirtual

Called to let the components register their console commands.

Reimplemented from CComponent.

◆ OnCursorMove()

bool CMenus::OnCursorMove ( float  x,
float  y,
IInput::ECursorType  CursorType 
)
overridevirtual

Called on mouse movement, where the x and y values are deltas.

Parameters
xThe amount of change in the x coordinate since the last call.
yThe amount of change in the y coordinate since the last call.
CursorTypeThe type of cursor that caused the movement.

Reimplemented from CComponent.

◆ OnInit()

void CMenus::OnInit ( )
overridevirtual

Called to let the components run initialization code.

Reimplemented from CComponent.

◆ OnInput()

bool CMenus::OnInput ( const IInput::CEvent Event)
overridevirtual

Called on a input event.

Parameters
EventThe input event.

Reimplemented from CComponent.

◆ OnRefreshSkins()

void CMenus::OnRefreshSkins ( )
overridevirtual

Called when skins have been invalidated and must be updated.

Reimplemented from CComponent.

◆ OnRender()

void CMenus::OnRender ( )
overridevirtual

Called when the component should get rendered.

The render order depends on the component insertion order.

Reimplemented from CComponent.

◆ OnReset()

void CMenus::OnReset ( )
overridevirtual

Called to reset the component. This method is usually called on your component constructor to avoid code duplication.

See also
CHud::CHud()
CHud::OnReset()

Reimplemented from CComponent.

◆ OnShutdown()

void CMenus::OnShutdown ( )
overridevirtual

Called to cleanup the component. This method is called when the client is closed.

Reimplemented from CComponent.

◆ OnStateChange()

void CMenus::OnStateChange ( int  NewState,
int  OldState 
)
overridevirtual

This method is called when the client changes state, e.g from offline to online.

See also
IClient::STATE_CONNECTING
IClient::STATE_LOADING
IClient::STATE_ONLINE

Reimplemented from CComponent.

◆ OnWindowResize()

void CMenus::OnWindowResize ( )
overridevirtual

Called when the window has been resized.

Reimplemented from CComponent.

◆ ParticlesScan()

int CMenus::ParticlesScan ( const char *  pName,
int  IsDir,
int  DirType,
void *  pUser 
)
staticprotected

◆ PopupConfirm()

void CMenus::PopupConfirm ( const char *  pTitle,
const char *  pMessage,
const char *  pConfirmButtonLabel,
const char *  pCancelButtonLabel,
FPopupButtonCallback  pfnConfirmButtonCallback = &CMenus::DefaultButtonCallback,
int  ConfirmNextPopup = POPUP_NONE,
FPopupButtonCallback  pfnCancelButtonCallback = &CMenus::DefaultButtonCallback,
int  CancelNextPopup = POPUP_NONE 
)
protected

◆ PopupConfirmDeleteDemo()

void CMenus::PopupConfirmDeleteDemo ( )
protected

◆ PopupConfirmDeleteFolder()

void CMenus::PopupConfirmDeleteFolder ( )
protected

◆ PopupConfirmDeleteSkin7()

void CMenus::PopupConfirmDeleteSkin7 ( )
protected

◆ PopupConfirmDemoReplaceVideo()

void CMenus::PopupConfirmDemoReplaceVideo ( )
protected

◆ PopupConfirmDisconnect()

void CMenus::PopupConfirmDisconnect ( )
protected

◆ PopupConfirmDisconnectDummy()

void CMenus::PopupConfirmDisconnectDummy ( )
protected

◆ PopupConfirmRemoveFriend()

void CMenus::PopupConfirmRemoveFriend ( )
protected

◆ PopupConfirmSwitchServer()

void CMenus::PopupConfirmSwitchServer ( )
protected

◆ PopupCountrySelection()

CUi::EPopupMenuFunctionResult CMenus::PopupCountrySelection ( void *  pContext,
CUIRect  View,
bool  Active 
)
staticprotected

◆ PopupMapPicker()

CUi::EPopupMenuFunctionResult CMenus::PopupMapPicker ( void *  pContext,
CUIRect  View,
bool  Active 
)
staticprotected

◆ PopupMessage()

void CMenus::PopupMessage ( const char *  pTitle,
const char *  pMessage,
const char *  pButtonLabel,
int  NextPopup = POPUP_NONE,
FPopupButtonCallback  pfnButtonCallback = &CMenus::DefaultButtonCallback 
)
protected

◆ PopupWarning()

void CMenus::PopupWarning ( const char *  pTopic,
const char *  pBody,
const char *  pButton,
std::chrono::nanoseconds  Duration 
)

◆ PrintHighlighted()

template<typename F >
bool CMenus::PrintHighlighted ( const char *  pName,
F &&  PrintFn 
)
protected

◆ RefreshBrowserTab()

void CMenus::RefreshBrowserTab ( bool  Force)
private

◆ RefreshFilteredDemos()

void CMenus::RefreshFilteredDemos ( )

◆ Render()

void CMenus::Render ( )
protected

◆ RenderBackground()

void CMenus::RenderBackground ( )

◆ RenderCommunityIcon()

void CMenus::RenderCommunityIcon ( const SCommunityIcon pIcon,
CUIRect  Rect,
bool  Active 
)
protected

◆ RenderDemoBrowser()

void CMenus::RenderDemoBrowser ( CUIRect  MainView)
protected

◆ RenderDemoBrowserButtons()

void CMenus::RenderDemoBrowserButtons ( CUIRect  ButtonsView,
bool  WasListboxItemActivated 
)
protected

◆ RenderDemoBrowserDetails()

void CMenus::RenderDemoBrowserDetails ( CUIRect  DetailsView)
protected

◆ RenderDemoBrowserList()

void CMenus::RenderDemoBrowserList ( CUIRect  ListView,
bool &  WasListboxItemActivated 
)
protected

◆ RenderDemoPlayer()

void CMenus::RenderDemoPlayer ( CUIRect  MainView)
protected

◆ RenderDemoPlayerSliceSavePopup()

void CMenus::RenderDemoPlayerSliceSavePopup ( CUIRect  MainView)
protected

◆ RenderGame()

void CMenus::RenderGame ( CUIRect  MainView)
protected

◆ RenderGhost()

void CMenus::RenderGhost ( CUIRect  MainView)
private

◆ RenderHslaScrollbars()

bool CMenus::RenderHslaScrollbars ( CUIRect pRect,
unsigned int *  pColor,
bool  Alpha,
float  DarkestLight 
)
private

◆ RenderIngameHint()

void CMenus::RenderIngameHint ( )
protected

◆ RenderInGameNetwork()

void CMenus::RenderInGameNetwork ( CUIRect  MainView)
private

◆ RenderLanguageSelection()

bool CMenus::RenderLanguageSelection ( CUIRect  MainView)
protected

◆ RenderLoading()

void CMenus::RenderLoading ( const char *  pCaption,
const char *  pContent,
int  IncreaseCounter,
bool  RenderLoadingBar = true,
bool  RenderMenuBackgroundMap = true 
)

◆ RenderMenubar()

void CMenus::RenderMenubar ( CUIRect  Box,
IClient::EClientState  ClientState 
)
protected

◆ RenderNews()

void CMenus::RenderNews ( CUIRect  MainView)
protected

◆ RenderPlayers()

void CMenus::RenderPlayers ( CUIRect  MainView)
protected

◆ RenderPopupConnecting()

void CMenus::RenderPopupConnecting ( CUIRect  Screen)
protected

◆ RenderPopupFullscreen()

void CMenus::RenderPopupFullscreen ( CUIRect  Screen)
protected

◆ RenderPopupLoading()

void CMenus::RenderPopupLoading ( CUIRect  Screen)
protected

◆ RenderServerbrowser()

void CMenus::RenderServerbrowser ( CUIRect  MainView)
protected

◆ RenderServerbrowserCommunitiesFilter()

void CMenus::RenderServerbrowserCommunitiesFilter ( CUIRect  View)
protected

◆ RenderServerbrowserCountriesFilter()

void CMenus::RenderServerbrowserCountriesFilter ( CUIRect  View)
protected

◆ RenderServerbrowserDDNetFilter()

void CMenus::RenderServerbrowserDDNetFilter ( CUIRect  View,
IFilterList Filter,
float  ItemHeight,
int  MaxItems,
int  ItemsPerRow,
CScrollRegion ScrollRegion,
std::vector< unsigned char > &  vItemIds,
bool  UpdateCommunityCacheOnChange,
const std::function< const char *(int ItemIndex)> &  GetItemName,
const std::function< void(int ItemIndex, CUIRect Item, const void *pItemId, bool Active)> &  RenderItem 
)
protected

◆ RenderServerbrowserFilters()

void CMenus::RenderServerbrowserFilters ( CUIRect  View)
protected

◆ RenderServerbrowserFriends()

void CMenus::RenderServerbrowserFriends ( CUIRect  View)
protected

◆ RenderServerbrowserInfo()

void CMenus::RenderServerbrowserInfo ( CUIRect  View)
protected

◆ RenderServerbrowserInfoScoreboard()

void CMenus::RenderServerbrowserInfoScoreboard ( CUIRect  View,
const CServerInfo pSelectedServer 
)
protected

◆ RenderServerbrowserServerList()

void CMenus::RenderServerbrowserServerList ( CUIRect  View,
bool &  WasListboxItemActivated 
)
protected

◆ RenderServerbrowserStatusBox()

void CMenus::RenderServerbrowserStatusBox ( CUIRect  StatusBox,
bool  WasListboxItemActivated 
)
protected

◆ RenderServerbrowserTabBar()

void CMenus::RenderServerbrowserTabBar ( CUIRect  TabBar)
protected

◆ RenderServerbrowserToolBox()

void CMenus::RenderServerbrowserToolBox ( CUIRect  ToolBox)
protected

◆ RenderServerbrowserTypesFilter()

void CMenus::RenderServerbrowserTypesFilter ( CUIRect  View)
protected

◆ RenderServerControl()

void CMenus::RenderServerControl ( CUIRect  MainView)
protected

◆ RenderServerControlKick()

bool CMenus::RenderServerControlKick ( CUIRect  MainView,
bool  FilterSpectators 
)
protected

◆ RenderServerControlServer()

bool CMenus::RenderServerControlServer ( CUIRect  MainView)
protected

◆ RenderServerInfo()

void CMenus::RenderServerInfo ( CUIRect  MainView)
protected

◆ RenderServerInfoMotd()

void CMenus::RenderServerInfoMotd ( CUIRect  Motd)
protected

◆ RenderSettings()

void CMenus::RenderSettings ( CUIRect  MainView)
protected

◆ RenderSettingsAppearance()

void CMenus::RenderSettingsAppearance ( CUIRect  MainView)
private

◆ RenderSettingsControls()

void CMenus::RenderSettingsControls ( CUIRect  MainView)
protected

◆ RenderSettingsControlsJoystick()

float CMenus::RenderSettingsControlsJoystick ( CUIRect  View)
private

◆ RenderSettingsCustom()

void CMenus::RenderSettingsCustom ( CUIRect  MainView)
protected

◆ RenderSettingsDDNet()

void CMenus::RenderSettingsDDNet ( CUIRect  MainView)
private

◆ RenderSettingsDummyPlayer()

void CMenus::RenderSettingsDummyPlayer ( CUIRect  MainView)
protected

◆ RenderSettingsGeneral()

void CMenus::RenderSettingsGeneral ( CUIRect  MainView)
protected

◆ RenderSettingsGraphics()

void CMenus::RenderSettingsGraphics ( CUIRect  MainView)
protected

◆ RenderSettingsPlayer()

void CMenus::RenderSettingsPlayer ( CUIRect  MainView)
protected

◆ RenderSettingsSound()

void CMenus::RenderSettingsSound ( CUIRect  MainView)
protected

◆ RenderSettingsTee()

void CMenus::RenderSettingsTee ( CUIRect  MainView)
protected

◆ RenderSettingsTee7()

void CMenus::RenderSettingsTee7 ( CUIRect  MainView)
protected

◆ RenderSettingsTeeCustom7()

void CMenus::RenderSettingsTeeCustom7 ( CUIRect  MainView)
protected

◆ RenderSkinPartSelection7()

void CMenus::RenderSkinPartSelection7 ( CUIRect  MainView)
protected

◆ RenderSkinSelection7()

void CMenus::RenderSkinSelection7 ( CUIRect  MainView)
protected

◆ RenderStartMenu()

void CMenus::RenderStartMenu ( CUIRect  MainView)
protected

◆ RenderThemeSelection()

void CMenus::RenderThemeSelection ( CUIRect  MainView)
protected

◆ ResetServerbrowserFilters()

void CMenus::ResetServerbrowserFilters ( )
protected

◆ ResetSettingsControls()

void CMenus::ResetSettingsControls ( )
protected

◆ SetActive()

void CMenus::SetActive ( bool  Active)
protected

◆ SetMenuPage()

void CMenus::SetMenuPage ( int  NewPage)
private

◆ SetNeedSendInfo()

void CMenus::SetNeedSendInfo ( )
protected

◆ Sizeof()

virtual int CMenus::Sizeof ( ) const
inlineoverridevirtual

Gets the size of the non-abstract component.

Implements CComponent.

◆ SortGhostlist()

void CMenus::SortGhostlist ( )

◆ UpdateColors()

void CMenus::UpdateColors ( )
protected

◆ UpdateCommunityCache()

void CMenus::UpdateCommunityCache ( bool  Force)
protected

◆ UpdateCommunityIcons()

void CMenus::UpdateCommunityIcons ( )
protected

◆ UpdateMusicState()

void CMenus::UpdateMusicState ( )
protected

◆ UpdateOwnGhost()

void CMenus::UpdateOwnGhost ( CGhostItem  Item)

Member Data Documentation

◆ m_aAnimatorsBigPage

SUIAnimator CMenus::m_aAnimatorsBigPage[BIG_TAB_LENGTH]

◆ m_aAnimatorsSettingsTab

SUIAnimator CMenus::m_aAnimatorsSettingsTab[SETTINGS_LENGTH]

◆ m_aAnimatorsSmallPage

SUIAnimator CMenus::m_aAnimatorsSmallPage[SMALL_TAB_LENGTH]

◆ m_aCurrentDemoFolder

char CMenus::m_aCurrentDemoFolder[IO_MAX_PATH_LENGTH]
protected

◆ m_aCurrentDemoSelectionName

char CMenus::m_aCurrentDemoSelectionName[IO_MAX_PATH_LENGTH]
protected

◆ m_aLabel

char CMenus::m_aLabel[64]

◆ m_aMessageBody

char CMenus::m_aMessageBody[512]
protected

◆ m_aMessageButton

char CMenus::m_aMessageButton[512]
protected

◆ m_aMessageTopic

char CMenus::m_aMessageTopic[512]
protected

◆ m_aNextServer

char CMenus::m_aNextServer[256]
protected

◆ 

struct { ... } CMenus::m_aPopupButtons[NUM_BUTTONS]

◆ m_aPopupMessage

char CMenus::m_aPopupMessage[IO_MAX_PATH_LENGTH+256]
protected

◆ m_aPopupTitle

char CMenus::m_aPopupTitle[128]
protected

◆ m_avFriends

std::vector<CFriendItem> CMenus::m_avFriends[NUM_FRIEND_TYPES]
protected

◆ m_avpServerBrowserUiElements

std::vector<CUIElement *> CMenus::m_avpServerBrowserUiElements[IServerBrowser::NUM_TYPES]
protected

◆ m_Binder

CMenusKeyBinder CMenus::m_Binder
static

◆ m_CallvoteReasonInput

CLineInputBuffered<VOTE_REASON_LENGTH> CMenus::m_CallvoteReasonInput
protected

◆ m_CallvoteSelectedOption

int CMenus::m_CallvoteSelectedOption
protected

◆ m_CallvoteSelectedPlayer

int CMenus::m_CallvoteSelectedPlayer
protected

◆ m_CommunityIconDownloadJobs

std::deque<std::shared_ptr<CCommunityIconDownloadJob> > CMenus::m_CommunityIconDownloadJobs
protected

◆ m_CommunityIconLoadJobs

std::deque<std::shared_ptr<CCommunityIconLoadJob> > CMenus::m_CommunityIconLoadJobs
protected

◆ m_CommunityIconsInfoSha256

SHA256_DIGEST CMenus::m_CommunityIconsInfoSha256 = SHA256_ZEROED
protected

◆ m_ConnectButton

CUIElement CMenus::m_ConnectButton
protected

◆ m_ControlPageOpening

bool CMenus::m_ControlPageOpening
protected

◆ m_CreateDefaultFavoriteCommunities

bool CMenus::m_CreateDefaultFavoriteCommunities = false
protected

◆ m_CustomSkinMenu

bool CMenus::m_CustomSkinMenu = false
protected

◆ m_DemoBrowserListInitialized

bool CMenus::m_DemoBrowserListInitialized = false
protected

◆ m_DemoControlsPositionOffset

vec2 CMenus::m_DemoControlsPositionOffset = vec2(0.0f, 0.0f)
protected

◆ m_DemolistMultipleStorages

bool CMenus::m_DemolistMultipleStorages = false
protected

◆ m_DemolistSelectedIndex

int CMenus::m_DemolistSelectedIndex
protected

◆ m_DemolistSelectedReveal

bool CMenus::m_DemolistSelectedReveal = false
protected

◆ m_DemolistStorageType

int CMenus::m_DemolistStorageType
protected

◆ m_DemoPlayerState

int CMenus::m_DemoPlayerState

◆ m_DemoPopulateStartTime

std::chrono::nanoseconds CMenus::m_DemoPopulateStartTime {0}
protected

◆ m_DemoRenameInput

CLineInputBuffered<IO_MAX_PATH_LENGTH> CMenus::m_DemoRenameInput
protected

◆ m_DemoRenderInput

CLineInputBuffered<IO_MAX_PATH_LENGTH> CMenus::m_DemoRenderInput
protected

◆ m_DemoSearchInput

CLineInputBuffered<IO_MAX_PATH_LENGTH> CMenus::m_DemoSearchInput
protected

◆ m_DemoSliceInput

CLineInputBuffered<IO_MAX_PATH_LENGTH> CMenus::m_DemoSliceInput
protected

◆ m_DirectionQuadContainerIndex

int CMenus::m_DirectionQuadContainerIndex
private

◆ m_DownloadLastCheckSize

int CMenus::m_DownloadLastCheckSize
protected

◆ m_DownloadLastCheckTime

int64_t CMenus::m_DownloadLastCheckTime
protected

◆ m_DownloadSpeed

float CMenus::m_DownloadSpeed
protected

◆ m_Dummy

bool CMenus::m_Dummy

◆ m_EditorHotKeyChecktime

float CMenus::m_EditorHotKeyChecktime = 0.0f
protected

◆ m_EditorHotkeyWasPressed

bool CMenus::m_EditorHotkeyWasPressed = true
protected

◆ m_FilterInput

CLineInputBuffered<64> CMenus::m_FilterInput
protected

◆ m_ForceRefreshLanPage

bool CMenus::m_ForceRefreshLanPage = false
protected

◆ m_GamePage

int CMenus::m_GamePage
protected

◆ m_GhostPopulateStartTime

std::chrono::nanoseconds CMenus::m_GhostPopulateStartTime {0}

◆ m_IsInit

bool CMenus::m_IsInit = false
protected

◆ m_JoinTutorial

bool CMenus::m_JoinTutorial = false
protected

◆ m_LastPauseChange

float CMenus::m_LastPauseChange = -1.0f
protected

◆ m_LastSpeedChange

float CMenus::m_LastSpeedChange = -1.0f
protected

◆ m_LoadingState

CLoadingState CMenus::m_LoadingState
protected

◆ m_MenuActive

bool CMenus::m_MenuActive
protected

◆ m_MenuPage

int CMenus::m_MenuPage
protected

◆ m_MotdTextContainerIndex

STextContainerIndex CMenus::m_MotdTextContainerIndex
protected

◆ m_NeedRestartGraphics

bool CMenus::m_NeedRestartGraphics
protected

◆ m_NeedRestartSound

bool CMenus::m_NeedRestartSound
protected

◆ m_NeedRestartUpdate

bool CMenus::m_NeedRestartUpdate
protected

◆ m_NeedSendDummyinfo

bool CMenus::m_NeedSendDummyinfo
protected

◆ m_NeedSendinfo

bool CMenus::m_NeedSendinfo
protected

◆ m_NextPopup

int CMenus::m_NextPopup

◆ m_PasswordInput

CLineInput CMenus::m_PasswordInput
protected

◆ m_pfnCallback

FPopupButtonCallback CMenus::m_pfnCallback

◆ m_Popup

int CMenus::m_Popup
protected

◆ m_PopupWarningDuration

std::chrono::nanoseconds CMenus::m_PopupWarningDuration

◆ m_PopupWarningLastTime

std::chrono::nanoseconds CMenus::m_PopupWarningLastTime

◆ m_pRemoveFriend

const CFriendItem* CMenus::m_pRemoveFriend = nullptr
protected

◆ m_pSelectedSkin

const CSkins7::CSkin* CMenus::m_pSelectedSkin = nullptr
protected

◆ m_RefreshButton

CUIElement CMenus::m_RefreshButton
protected

◆ m_SelectedIndex

int CMenus::m_SelectedIndex
protected

◆ m_ServerBrowserShouldRevealSelection

bool CMenus::m_ServerBrowserShouldRevealSelection
protected

◆ m_ServerProcess

CServerProcess CMenus::m_ServerProcess
private

◆ m_SettingPlayerPage

int CMenus::m_SettingPlayerPage
protected

◆ m_ShowStart

bool CMenus::m_ShowStart
protected

◆ m_SkinFavorites

std::unordered_set<std::string> CMenus::m_SkinFavorites
protected

◆ m_SkinFavoritesChanged

bool CMenus::m_SkinFavoritesChanged = false
protected

◆ m_SkinListNeedsUpdate

bool CMenus::m_SkinListNeedsUpdate = false
private

◆ m_SkinListScrollToSelected

bool CMenus::m_SkinListScrollToSelected = false
private

◆ m_SkinNameInput

◆ m_SkinPartListNeedsUpdate

bool CMenus::m_SkinPartListNeedsUpdate = false
protected

◆ m_Speed

int CMenus::m_Speed = 4
protected

◆ m_StartPaused

bool CMenus::m_StartPaused = false
protected

◆ m_TeePartSelected

int CMenus::m_TeePartSelected = protocol7::SKINPART_BODY
protected

◆ m_TextureBlob

IGraphics::CTextureHandle CMenus::m_TextureBlob
protected

◆ m_vCommunityIcons

std::vector<SCommunityIcon> CMenus::m_vCommunityIcons
protected

◆ m_vDemos

std::vector<CDemoItem> CMenus::m_vDemos

◆ m_vEmoticonList

std::vector<SCustomEmoticon> CMenus::m_vEmoticonList
protected

◆ m_vEntitiesList

std::vector<SCustomEntities> CMenus::m_vEntitiesList
protected

◆ m_vExtrasList

std::vector<SCustomExtras> CMenus::m_vExtrasList
protected

◆ m_vGameList

std::vector<SCustomGame> CMenus::m_vGameList
protected

◆ m_vGhosts

std::vector<CGhostItem> CMenus::m_vGhosts

◆ m_vHudList

std::vector<SCustomHud> CMenus::m_vHudList
protected

◆ m_vMenuImages

std::vector<CMenuImage> CMenus::m_vMenuImages
protected

◆ m_vParticlesList

std::vector<SCustomParticle> CMenus::m_vParticlesList
protected

◆ m_vpFilteredDemos

std::vector<CDemoItem *> CMenus::m_vpFilteredDemos

◆ ms_ButtonHeight

float CMenus::ms_ButtonHeight = 25.0f
staticprotected

◆ ms_ColorTabbarActive

ColorRGBA CMenus::ms_ColorTabbarActive = ColorRGBA(0, 0, 0, 0.5f)
staticprivate

◆ ms_ColorTabbarActiveIngame

ColorRGBA CMenus::ms_ColorTabbarActiveIngame
staticprivate

◆ ms_ColorTabbarActiveOutgame

ColorRGBA CMenus::ms_ColorTabbarActiveOutgame
staticprivate

◆ ms_ColorTabbarHover

ColorRGBA CMenus::ms_ColorTabbarHover
staticprivate

◆ ms_ColorTabbarHoverIngame

ColorRGBA CMenus::ms_ColorTabbarHoverIngame
staticprivate

◆ ms_ColorTabbarHoverOutgame

ColorRGBA CMenus::ms_ColorTabbarHoverOutgame
staticprivate

◆ ms_ColorTabbarInactive

ColorRGBA CMenus::ms_ColorTabbarInactive
staticprivate

◆ ms_ColorTabbarInactiveIngame

ColorRGBA CMenus::ms_ColorTabbarInactiveIngame
staticprivate

◆ ms_ColorTabbarInactiveOutgame

ColorRGBA CMenus::ms_ColorTabbarInactiveOutgame
staticprivate

◆ ms_GuiColor

ColorRGBA CMenus::ms_GuiColor
staticprivate

◆ ms_ListheaderHeight

float CMenus::ms_ListheaderHeight = 17.0f
staticprotected

◆ ms_ListitemAdditionalHeight

float CMenus::ms_ListitemAdditionalHeight
staticprotected

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