3#ifndef GAME_CLIENT_COMPONENTS_MENUS_H
4#define GAME_CLIENT_COMPONENTS_MENUS_H
11#include <unordered_set>
48 virtual int Sizeof()
const override {
return sizeof(*this); }
75 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));
76 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);
83 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);
89 int DoKeyReader(
const void *pId,
const CUIRect *pRect,
int Key,
int ModifierCombination,
int *pNewModifierCombination);
153 static int EntitiesScan(
const char *pName,
int IsDir,
int DirType,
void *pUser);
155 static int GameScan(
const char *pName,
int IsDir,
int DirType,
void *pUser);
156 static int EmoticonsScan(
const char *pName,
int IsDir,
int DirType,
void *pUser);
157 static int ParticlesScan(
const char *pName,
int IsDir,
int DirType,
void *pUser);
158 static int HudScan(
const char *pName,
int IsDir,
int DirType,
void *pUser);
159 static int ExtrasScan(
const char *pName,
int IsDir,
int DirType,
void *pUser);
190 static int MenuImageScan(
const char *pName,
int IsDir,
int DirType,
void *pUser);
232 void PopupMessage(
const char *pTitle,
const char *pMessage,
234 void PopupConfirm(
const char *pTitle,
const char *pMessage,
235 const char *pConfirmButtonLabel,
const char *pCancelButtonLabel,
350#if defined(CONF_VIDEORECORDER)
447#if defined(CONF_VIDEORECORDER)
460 static bool DemoFilterChat(
const void *pData,
int Size,
void *pUser);
498 void Connect(
const char *pAddress);
504 float ItemHeight,
int MaxItems,
int ItemsPerRow,
505 CScrollRegion &ScrollRegion, std::vector<unsigned char> &vItemIds,
506 bool UpdateCommunityCacheOnChange,
507 const std::function<
const char *(
int ItemIndex)> &GetItemName,
508 const std::function<
void(
int ItemIndex,
CUIRect Item,
const void *pItemId,
bool Active)> &RenderItem);
580 static int CommunityIconScan(
const char *pName,
int IsDir,
int DirType,
void *pUser);
657 virtual int Sizeof()
const override {
return sizeof(*this); }
659 void RenderLoading(
const char *pCaption,
const char *pContent,
int IncreaseCounter,
bool RenderLoadingBar =
true,
bool RenderMenuBackgroundMap =
true);
666 virtual void OnInit()
override;
669 virtual void OnStateChange(
int NewState,
int OldState)
override;
672 virtual void OnReset()
override;
795 void PopupWarning(
const char *pTopic,
const char *pBody,
const char *pButton, std::chrono::nanoseconds Duration);
const SHA256_DIGEST SHA256_ZEROED
Definition: hash.cpp:6
Definition: component.h:20
Definition: serverbrowser.h:65
char m_aSkin[MAX_SKIN_LENGTH]
Definition: serverbrowser.h:75
char m_aName[MAX_NAME_LENGTH]
Definition: serverbrowser.h:67
char m_aClan[MAX_CLAN_LENGTH]
Definition: serverbrowser.h:68
Definition: serverbrowser.h:23
@ MAX_COMMUNITY_ID_LENGTH
Definition: serverbrowser.h:59
EPopupMenuFunctionResult
Definition: ui.h:289
EClientState
Definition: client.h:49
void(* FCommandCallback)(IResult *pResult, void *pUserData)
Definition: console.h:92
ETickOffset
Definition: demo.h:78
Definition: serverbrowser.h:241
@ FRIEND_CLAN
Definition: friends.h:25
@ FRIEND_PLAYER
Definition: friends.h:26
Definition: graphics.h:200
@ CORNER_ALL
Definition: graphics.h:430
@ NUM_TYPES
Definition: serverbrowser.h:295
CConfig g_Config
Definition: config.cpp:12
@ MAX_TIMELINE_MARKERS
Definition: demo.h:15
@ MAX_CLAN_LENGTH
Definition: protocol.h:98
@ MAX_SKIN_LENGTH
Definition: protocol.h:99
@ MAX_NAME_LENGTH
Definition: protocol.h:97
pid_t PROCESS
Definition: system.h:2599
int str_comp_filenames(const char *a, const char *b)
Definition: system.cpp:2943
int str_comp_nocase(const char *a, const char *b)
Definition: system.cpp:2915
int str_comp(const char *a, const char *b)
Definition: system.cpp:2933
int str_copy(char *dst, const char *src, int dst_size)
Definition: system.cpp:2720
@ MAP_IMAGE_MOD_TYPE_COUNT
Definition: mapimages.h:30
@ SKINPART_BODY
Definition: protocol7.h:30
char m_aClan[MAX_CLAN_LENGTH]
Definition: friends.h:13
char m_aName[MAX_NAME_LENGTH]
Definition: friends.h:12
PROCESS m_Process
Definition: menus.h:35
unsigned char m_aNumTimelineMarkers[sizeof(int32_t)]
Definition: demo.h:47
Definition: textrender.h:293
unsigned bytes_be_to_uint(const unsigned char *bytes)
Definition: system.cpp:4085
TRISTATE
Definition: types.h:7
@ IO_MAX_PATH_LENGTH
Definition: types.h:43
vector2_base< float > vec2
Definition: vmath.h:158