3#ifndef GAME_CLIENT_COMPONENTS_MENUS_H
4#define GAME_CLIENT_COMPONENTS_MENUS_H
12#include <unordered_set>
36#if !defined(CONF_PLATFORM_ANDROID)
51 virtual int Sizeof()
const override {
return sizeof(*this); }
78 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));
79 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);
86 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);
92 int DoKeyReader(
const void *pId,
const CUIRect *pRect,
int Key,
int ModifierCombination,
int *pNewModifierCombination);
158 static int EntitiesScan(
const char *pName,
int IsDir,
int DirType,
void *pUser);
160 static int GameScan(
const char *pName,
int IsDir,
int DirType,
void *pUser);
161 static int EmoticonsScan(
const char *pName,
int IsDir,
int DirType,
void *pUser);
162 static int ParticlesScan(
const char *pName,
int IsDir,
int DirType,
void *pUser);
163 static int HudScan(
const char *pName,
int IsDir,
int DirType,
void *pUser);
164 static int ExtrasScan(
const char *pName,
int IsDir,
int DirType,
void *pUser);
195 static int MenuImageScan(
const char *pName,
int IsDir,
int DirType,
void *pUser);
237 void PopupMessage(
const char *pTitle,
const char *pMessage,
239 void PopupConfirm(
const char *pTitle,
const char *pMessage,
240 const char *pConfirmButtonLabel,
const char *pCancelButtonLabel,
355#if defined(CONF_VIDEORECORDER)
452#if defined(CONF_VIDEORECORDER)
465 static bool DemoFilterChat(
const void *pData,
int Size,
void *pUser);
505 void Connect(
const char *pAddress);
511 float ItemHeight,
int MaxItems,
int ItemsPerRow,
512 CScrollRegion &ScrollRegion, std::vector<unsigned char> &vItemIds,
513 bool UpdateCommunityCacheOnChange,
514 const std::function<
const char *(
int ItemIndex)> &GetItemName,
515 const std::function<
void(
int ItemIndex,
CUIRect Item,
const void *pItemId,
bool Active)> &RenderItem);
587 static int CommunityIconScan(
const char *pName,
int IsDir,
int DirType,
void *pUser);
662 virtual int Sizeof()
const override {
return sizeof(*this); }
664 void RenderLoading(
const char *pCaption,
const char *pContent,
int IncreaseCounter);
676 virtual void OnInit()
override;
679 virtual void OnStateChange(
int NewState,
int OldState)
override;
681 virtual void OnReset()
override;
804 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:94
ETickOffset
Definition: demo.h:78
Definition: serverbrowser.h:241
@ FRIEND_CLAN
Definition: friends.h:25
@ FRIEND_PLAYER
Definition: friends.h:26
Definition: graphics.h:201
@ CORNER_ALL
Definition: graphics.h:416
@ 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
constexpr PROCESS INVALID_PROCESS
Definition: system.h:2617
pid_t PROCESS
Definition: system.h:2611
int str_comp_filenames(const char *a, const char *b)
Definition: system.cpp:2984
int str_comp_nocase(const char *a, const char *b)
Definition: system.cpp:2956
int str_comp(const char *a, const char *b)
Definition: system.cpp:2974
int str_copy(char *dst, const char *src, int dst_size)
Definition: system.cpp:2761
@ 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:37
unsigned char m_aNumTimelineMarkers[sizeof(int32_t)]
Definition: demo.h:47
Definition: textrender.h:295
unsigned bytes_be_to_uint(const unsigned char *bytes)
Definition: system.cpp:4126
TRISTATE
Definition: types.h:7
@ IO_MAX_PATH_LENGTH
Definition: types.h:43
vector2_base< float > vec2
Definition: vmath.h:158