Quake II RTX doxygen
1.0 dev
|
|
Go to the documentation of this file.
20 #include "shared/shared.h"
21 #include "shared/list.h"
22 #include "common/cmd.h"
23 #include "common/common.h"
24 #include "common/cvar.h"
25 #include "common/field.h"
26 #include "common/zone.h"
27 #include "client/keys.h"
30 #include "client/ui.h"
31 #include "refresh/refresh.h"
33 #define UI_Malloc(s) Z_TagMalloc(s, TAG_UI)
34 #define UI_Mallocz(s) Z_TagMallocz(s, TAG_UI)
35 #define UI_CopyString(s) Z_TagCopyString(s, TAG_UI)
37 #define MAXMENUITEMS 64
59 #define QMF_LEFT_JUSTIFY 0x00000001
60 #define QMF_GRAYED 0x00000002
61 #define QMF_NUMBERSONLY 0x00000004
62 #define QMF_HASFOCUS 0x00000008
63 #define QMF_HIDDEN 0x00000010
64 #define QMF_DISABLED 0x00000020
65 #define QMF_CUSTOM_COLOR 0x00000040
76 #define RCOLUMN_OFFSET (CHAR_WIDTH * 2)
77 #define LCOLUMN_OFFSET -RCOLUMN_OFFSET
79 #define GENERIC_SPACING(x) ((x) + (x) / 4)
81 #define MENU_SPACING GENERIC_SPACING(CHAR_HEIGHT)
83 #define DOUBLE_CLICK_DELAY 300
85 #define UI_IsItemSelectable(item) \
86 ((item)->type != MTYPE_SEPARATOR && \
87 (item)->type != MTYPE_STATIC && \
88 !((item)->flags & (QMF_GRAYED | QMF_HIDDEN | QMF_DISABLED)))
170 #define SLIDER_RANGE 10
185 #define MAX_COLUMNS 8
187 #define MLIST_SPACING GENERIC_SPACING(CHAR_HEIGHT)
188 #define MLIST_BORDER_WIDTH 1
189 #define MLIST_SCROLLBAR_WIDTH GENERIC_SPACING(CHAR_WIDTH)
190 #define MLIST_PRESTEP 3
191 #define MLIST_PADDING (MLIST_PRESTEP*2)
193 #define MLF_HEADER 0x00000001
194 #define MLF_SCROLLBAR 0x00000002
195 #define MLF_COLOR 0x00000004
270 #define MAX_PLAYERMODELS 1024
281 #define MAX_MENU_DEPTH 8
284 #define CURSOR_WIDTH 32
285 #define CURSOR_OFFSET 25
287 #define NUM_CURSOR_FRAMES 15
304 char weaponModel[32];
336 void UI_DrawString(
int x,
int y,
int flags, const
char *
string);
362 int (*cmpfunc)(const
void *, const
void *));
struct menuBitmap_s menuBitmap_t
menuCommon_t * mouseTracker
char * UI_GetColumn(char *s, int n)
void M_Menu_PlayerConfig(void)
void * UI_FormatColumns(int extrasize,...) q_sentinel
menuSound_t Menu_KeyEvent(menuCommon_t *item, int key)
menuFrameWork_t * UI_FindMenu(const char *name)
void Menu_SetFocus(menuCommon_t *item)
qboolean UI_CursorInRect(vrect_t *rect)
struct menuSpinControl_s menuSpinControl_t
void UI_ForceMenuOff(void)
void UI_DrawString(int x, int y, int flags, const char *string)
menuSound_t Menu_SlideItem(menuFrameWork_t *menu, int dir)
void Menu_Size(menuFrameWork_t *menu)
struct menuStatic_s menuStatic_t
void SpinControl_Init(menuSpinControl_t *s)
menuCommon_t * Menu_HitTest(menuFrameWork_t *menu)
struct menuField_s menuField_t
menuSound_t Menu_CharEvent(menuCommon_t *item, int key)
void UI_PushMenu(menuFrameWork_t *menu)
struct uiStatic_s uiStatic_t
menuSound_t Menu_SelectItem(menuFrameWork_t *menu)
void UI_DrawRect8(const vrect_t *rect, int border, int c)
void Menu_AddItem(menuFrameWork_t *menu, void *item)
struct menuList_s menuList_t
void Menu_Draw(menuFrameWork_t *menu)
void Menu_Free(menuFrameWork_t *menu)
menuFrameWork_t * activeMenu
struct menuKeybind_s menuKeybind_t
void MenuList_Sort(menuList_t *l, int offset, int(*cmpfunc)(const void *, const void *))
void(APIENTRY *qwglDrawBuffer)(GLenum mode)
void PlayerModel_Free(void)
menuSound_t Menu_MouseMove(menuCommon_t *item)
struct menuFrameWork_s menuFrameWork_t
qboolean Menu_Push(menuFrameWork_t *menu)
void Menu_Pop(menuFrameWork_t *menu)
void PlayerModel_Load(void)
struct menuSeparator_s menuSeparator_t
struct menuCommon_s menuCommon_t
void MenuList_SetValue(menuList_t *l, int value)
menuSound_t Menu_AdjustCursor(menuFrameWork_t *menu, int dir)
struct menuAction_s menuAction_t
void UI_StringDimensions(vrect_t *rc, int flags, const char *string)
void MenuList_Init(menuList_t *l)
void(* confirmAction_t)(qboolean)
struct menuCondition_s menuCondition_t
void Menu_Init(menuFrameWork_t *menu)
qboolean UI_DoHitTest(void)
menuSound_t Menu_Keydown(menuFrameWork_t *menu, int key)
menuCommon_t * Menu_ItemAtCursor(menuFrameWork_t *menu)
qhandle_t backgroundHandle
#define NUM_CURSOR_FRAMES
void UI_DrawChar(int x, int y, int flags, int ch)
CONST PIXELFORMATDESCRIPTOR int
struct menuListColumn_s menuListColumn_t
void M_Menu_Servers(void)
void UI_StartSound(menuSound_t sound)
struct menuSlider_s menuSlider_t
struct playerModelInfo_s playerModelInfo_t