Quake II RTX doxygen  1.0 dev
ui.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 1997-2001 Id Software, Inc.
3 Copyright (C) 2019, NVIDIA CORPORATION. All rights reserved.
4 
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9 
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14 
15 You should have received a copy of the GNU General Public License along
16 with this program; if not, write to the Free Software Foundation, Inc.,
17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19 
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"
28 #include "client/sound/sound.h"
29 #include "client/client.h"
30 #include "client/ui.h"
31 #include "refresh/refresh.h"
32 
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)
36 
37 #define MAXMENUITEMS 64
38 
39 typedef enum {
57 } menuType_t;
58 
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
66 
67 typedef enum {
74 } menuSound_t;
75 
76 #define RCOLUMN_OFFSET (CHAR_WIDTH * 2)
77 #define LCOLUMN_OFFSET -RCOLUMN_OFFSET
78 
79 #define GENERIC_SPACING(x) ((x) + (x) / 4)
80 
81 #define MENU_SPACING GENERIC_SPACING(CHAR_HEIGHT)
82 
83 #define DOUBLE_CLICK_DELAY 300
84 
85 #define UI_IsItemSelectable(item) \
86  ((item)->type != MTYPE_SEPARATOR && \
87  (item)->type != MTYPE_STATIC && \
88  !((item)->flags & (QMF_GRAYED | QMF_HIDDEN | QMF_DISABLED)))
89 
90 typedef void (*confirmAction_t)(qboolean);
91 
92 typedef struct menuCondition_s {
93  cvar_t *cvar;
94  int value;
95  qboolean equals;
97 
98 typedef struct menuFrameWork_s {
99  list_t entry;
100 
101  char *name, *title, *status;
102 
103  int nitems;
105 
106  qboolean compact;
107  qboolean transparent;
108  qboolean keywait;
109 
110  qhandle_t image;
111  color_t color;
112  int y1, y2;
113 
114  int mins[2];
115  int maxs[2];
116 
117  qhandle_t banner;
118  vrect_t banner_rc;
119 
120  qhandle_t plaque;
121  vrect_t plaque_rc;
122 
123  qhandle_t logo;
124  vrect_t logo_rc;
125 
126  qhandle_t footer;
127  vrect_t footer_rc;
128 
130 
131  qboolean (*push)(struct menuFrameWork_s *);
132  void (*pop)(struct menuFrameWork_s *);
134  void (*draw)(struct menuFrameWork_s *);
135  void (*size)(struct menuFrameWork_s *);
136  void (*free)(struct menuFrameWork_s *);
139 
140 typedef struct menuCommon_s {
142  int id;
143  char *name;
145  color_t color;
146  vrect_t rect;
147  char *status;
148 
149  int x, y;
150  int width, height;
151 
152  int flags;
153  int uiFlags;
154 
156 
159  menuSound_t (*keydown)(struct menuCommon_s *, int key);
160  menuSound_t (*focus)(struct menuCommon_s *, qboolean gain);
161 } menuCommon_t;
162 
163 typedef struct menuField_s {
164  menuCommon_t generic;
165  inputField_t field;
166  cvar_t *cvar;
167  int width;
168 } menuField_t;
169 
170 #define SLIDER_RANGE 10
171 
172 typedef struct menuSlider_s {
173  menuCommon_t generic;
174  cvar_t *cvar;
175  qboolean modified;
176 
177  float minvalue;
178  float maxvalue;
179  float curvalue;
180  float step;
181  char* format;
182  qboolean percentage;
183 } menuSlider_t;
184 
185 #define MAX_COLUMNS 8
186 
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)
192 
193 #define MLF_HEADER 0x00000001
194 #define MLF_SCROLLBAR 0x00000002
195 #define MLF_COLOR 0x00000004
196 
197 typedef struct menuListColumn_s {
198  char *name;
199  int width;
200  int uiFlags;
202 
203 typedef struct menuList_s {
204  menuCommon_t generic;
205 
206  void **items;
207  int numItems;
208  int maxItems;
209  int mlFlags;
211 
212  int prestep;
213  int curvalue;
215 
216  char scratch[8];
219 
220  int drag_y;
221 
224  int sortdir, sortcol;
225 
226  menuSound_t (*sort)(struct menuList_s *);
227 } menuList_t;
228 
229 typedef struct menuSpinControl_s {
230  menuCommon_t generic;
231  cvar_t *cvar;
232 
233  char **itemnames;
234  char **itemvalues;
235  int numItems;
236  int curvalue;
237 
238  int mask;
239  qboolean negate;
241 
242 typedef struct menuAction_s {
243  menuCommon_t generic;
244  char *cmd;
245 } menuAction_t;
246 
247 typedef struct menuSeparator_s {
248  menuCommon_t generic;
250 
251 typedef struct menuStatic_s {
252  menuCommon_t generic;
253  int maxChars;
254 } menuStatic_t;
255 
256 typedef struct menuBitmap_s {
257  menuCommon_t generic;
258  qhandle_t pics[2];
259  char *cmd;
260 } menuBitmap_t;
261 
262 typedef struct menuKeybind_s {
263  menuCommon_t generic;
264  char binding[32];
265  char altbinding[32];
266  char *cmd;
267  char *altstatus;
268 } menuKeybind_t;
269 
270 #define MAX_PLAYERMODELS 1024
271 
272 typedef struct playerModelInfo_s {
273  int nskins;
275  char *directory;
277 
278 void PlayerModel_Load(void);
279 void PlayerModel_Free(void);
280 
281 #define MAX_MENU_DEPTH 8
282 
283 // animated menu cursor
284 #define CURSOR_WIDTH 32
285 #define CURSOR_OFFSET 25
286 
287 #define NUM_CURSOR_FRAMES 15
288 
289 typedef struct uiStatic_s {
290  qboolean initialized;
291  int realtime;
292  int width, height; // scaled
293  float scale;
298  int mouseCoords[2];
299  qboolean entersound; // play after drawing a frame, so caching
300  // won't disrupt the sound
301  qboolean transparent;
304  char weaponModel[32];
305 
306  qhandle_t backgroundHandle;
307  qhandle_t fontHandle;
308  qhandle_t cursorHandle;
309  int cursorWidth, cursorHeight;
310 
311  qhandle_t bitmapCursors[NUM_CURSOR_FRAMES];
312 
313  struct {
314  color_t background;
315  color_t normal;
316  color_t active;
317  color_t selection;
318  color_t disabled;
319  } color;
320 } uiStatic_t;
321 
322 extern uiStatic_t uis;
323 
324 extern list_t ui_menus;
325 
326 extern cvar_t *ui_debug;
327 
328 void UI_PushMenu(menuFrameWork_t *menu);
329 void UI_ForceMenuOff(void);
330 void UI_PopMenu(void);
331 void UI_StartSound(menuSound_t sound);
332 qboolean UI_DoHitTest(void);
333 qboolean UI_CursorInRect(vrect_t *rect);
334 void *UI_FormatColumns(int extrasize, ...) q_sentinel;
335 char *UI_GetColumn(char *s, int n);
336 void UI_DrawString(int x, int y, int flags, const char *string);
337 void UI_DrawChar(int x, int y, int flags, int ch);
338 void UI_DrawRect8(const vrect_t *rect, int border, int c);
339 //void UI_DrawRect32(const vrect_t *rect, int border, uint32_t color);
340 void UI_StringDimensions(vrect_t *rc, int flags, const char *string);
341 
342 void UI_LoadScript(void);
343 menuFrameWork_t *UI_FindMenu(const char *name);
344 
345 void Menu_Init(menuFrameWork_t *menu);
346 void Menu_Size(menuFrameWork_t *menu);
347 void Menu_Draw(menuFrameWork_t *menu);
348 void Menu_AddItem(menuFrameWork_t *menu, void *item);
351 menuSound_t Menu_KeyEvent(menuCommon_t *item, int key);
352 menuSound_t Menu_CharEvent(menuCommon_t *item, int key);
355 void Menu_SetFocus(menuCommon_t *item);
359 void MenuList_Init(menuList_t *l);
360 void MenuList_SetValue(menuList_t *l, int value);
361 void MenuList_Sort(menuList_t *l, int offset,
362  int (*cmpfunc)(const void *, const void *));
364 qboolean Menu_Push(menuFrameWork_t *menu);
365 void Menu_Pop(menuFrameWork_t *menu);
366 void Menu_Free(menuFrameWork_t *menu);
367 
368 void M_Menu_PlayerConfig(void);
369 void M_Menu_Demos(void);
370 void M_Menu_Servers(void);
371 
menuCondition_s::value
int value
Definition: ui.h:94
menuBitmap_t
struct menuBitmap_s menuBitmap_t
menuCommon_s
Definition: ui.h:140
MTYPE_TOGGLE
@ MTYPE_TOGGLE
Definition: ui.h:51
menuFrameWork_s::title
char * title
Definition: ui.h:101
uiStatic_s::transparent
qboolean transparent
Definition: ui.h:301
uiStatic_s::fontHandle
qhandle_t fontHandle
Definition: ui.h:307
QMS_NOTHANDLED
@ QMS_NOTHANDLED
Definition: ui.h:68
menuFrameWork_s::mins
int mins[2]
Definition: ui.h:114
menuCommon_s::change
menuSound_t(* change)(struct menuCommon_s *)
Definition: ui.h:158
uiStatic_s::mouseTracker
menuCommon_t * mouseTracker
Definition: ui.h:297
menuFrameWork_s::status
char * status
Definition: ui.h:101
MTYPE_SEPARATOR
@ MTYPE_SEPARATOR
Definition: ui.h:45
menuStatic_s
Definition: ui.h:251
menuCommon_s::type
menuType_t type
Definition: ui.h:141
menuCommon_s::keydown
menuSound_t(* keydown)(struct menuCommon_s *, int key)
Definition: ui.h:159
menuCommon_s::focus
menuSound_t(* focus)(struct menuCommon_s *, qboolean gain)
Definition: ui.h:160
UI_GetColumn
char * UI_GetColumn(char *s, int n)
Definition: ui.c:281
M_Menu_PlayerConfig
void M_Menu_PlayerConfig(void)
Definition: playerconfig.c:322
ui_debug
cvar_t * ui_debug
Definition: ui.c:28
menuKeybind_s::cmd
char * cmd
Definition: ui.h:266
menuFrameWork_s::name
char * name
Definition: ui.h:101
menuAction_s::cmd
char * cmd
Definition: ui.h:244
height
static int height
Definition: physical_sky.c:39
UI_FormatColumns
void * UI_FormatColumns(int extrasize,...) q_sentinel
Definition: ui.c:251
MTYPE_STRINGS
@ MTYPE_STRINGS
Definition: ui.h:49
menuCondition_s::cvar
cvar_t * cvar
Definition: ui.h:93
MTYPE_VALUES
@ MTYPE_VALUES
Definition: ui.h:50
MTYPE_KEYBIND
@ MTYPE_KEYBIND
Definition: ui.h:53
menuFrameWork_s::size
void(* size)(struct menuFrameWork_s *)
Definition: ui.h:135
menuCommon_s::activate
menuSound_t(* activate)(struct menuCommon_s *)
Definition: ui.h:157
menuCommon_s::height
int height
Definition: ui.h:150
menuSlider_s::modified
qboolean modified
Definition: ui.h:175
menuSpinControl_s::cvar
cvar_t * cvar
Definition: ui.h:231
Menu_KeyEvent
menuSound_t Menu_KeyEvent(menuCommon_t *item, int key)
Definition: menu.c:2353
menuFrameWork_s::logo_rc
vrect_t logo_rc
Definition: ui.h:124
menuFrameWork_s::free
void(* free)(struct menuFrameWork_s *)
Definition: ui.h:136
menuFrameWork_s::push
qboolean(* push)(struct menuFrameWork_s *)
Definition: ui.h:131
UI_FindMenu
menuFrameWork_t * UI_FindMenu(const char *name)
Definition: ui.c:190
Menu_SetFocus
void Menu_SetFocus(menuCommon_t *item)
Definition: menu.c:2057
menuType_t
menuType_t
Definition: ui.h:39
menuFrameWork_s::expose
void(* expose)(struct menuFrameWork_s *)
Definition: ui.h:133
menuKeybind_s
Definition: ui.h:262
M_Menu_Demos
void M_Menu_Demos(void)
Definition: demos.c:636
menuList_s::numcolumns
int numcolumns
Definition: ui.h:223
menuFrameWork_s::logo
qhandle_t logo
Definition: ui.h:123
UI_CursorInRect
qboolean UI_CursorInRect(vrect_t *rect)
Definition: ui.c:297
uiStatic_s::initialized
qboolean initialized
Definition: ui.h:290
MTYPE_SAVEGAME
@ MTYPE_SAVEGAME
Definition: ui.h:55
playerModelInfo_s
Definition: ui.h:272
menuSpinControl_t
struct menuSpinControl_s menuSpinControl_t
menuCommon_s::id
int id
Definition: ui.h:142
UI_ForceMenuOff
void UI_ForceMenuOff(void)
Definition: ui.c:119
menuFrameWork_s::image
qhandle_t image
Definition: ui.h:110
menuField_s::cvar
cvar_t * cvar
Definition: ui.h:166
menuCommon_s::parent
menuFrameWork_t * parent
Definition: ui.h:144
MTYPE_BAD
@ MTYPE_BAD
Definition: ui.h:40
menuSlider_s::minvalue
float minvalue
Definition: ui.h:177
menuKeybind_s::altstatus
char * altstatus
Definition: ui.h:267
QMS_SILENT
@ QMS_SILENT
Definition: ui.h:69
menuSlider_s::cvar
cvar_t * cvar
Definition: ui.h:174
menuCommon_s::rect
vrect_t rect
Definition: ui.h:146
menuFrameWork_s::footer_rc
vrect_t footer_rc
Definition: ui.h:127
menuFrameWork_s
Definition: ui.h:98
UI_DrawString
void UI_DrawString(int x, int y, int flags, const char *string)
Definition: ui.c:314
menuFrameWork_s::banner
qhandle_t banner
Definition: ui.h:117
menuFrameWork_s::nitems
int nitems
Definition: ui.h:103
menuList_s::maxItems
int maxItems
Definition: ui.h:208
menuList_s::mlFlags
int mlFlags
Definition: ui.h:209
MTYPE_BITMAP
@ MTYPE_BITMAP
Definition: ui.h:54
Menu_SlideItem
menuSound_t Menu_SlideItem(menuFrameWork_t *menu, int dir)
Definition: menu.c:2330
menuList_s::items
void ** items
Definition: ui.h:206
Menu_Size
void Menu_Size(menuFrameWork_t *menu)
Definition: menu.c:1928
menuListColumn_s
Definition: ui.h:197
MTYPE_STATIC
@ MTYPE_STATIC
Definition: ui.h:52
menuSlider_s::format
char * format
Definition: ui.h:181
menuStatic_t
struct menuStatic_s menuStatic_t
menuCommon_s::condition
menuCondition_t condition
Definition: ui.h:155
menuAction_s
Definition: ui.h:242
SpinControl_Init
void SpinControl_Init(menuSpinControl_t *s)
Definition: menu.c:543
Menu_HitTest
menuCommon_t * Menu_HitTest(menuFrameWork_t *menu)
Definition: menu.c:2480
MTYPE_SPINCONTROL
@ MTYPE_SPINCONTROL
Definition: ui.h:44
menuField_t
struct menuField_s menuField_t
uiStatic_s
Definition: ui.h:289
Menu_CharEvent
menuSound_t Menu_CharEvent(menuCommon_t *item, int key)
Definition: menu.c:2376
menuFrameWork_s::maxs
int maxs[2]
Definition: ui.h:115
menuCommon_s::width
int width
Definition: ui.h:150
UI_PushMenu
void UI_PushMenu(menuFrameWork_t *menu)
Definition: ui.c:39
UI_LoadScript
void UI_LoadScript(void)
Definition: script.c:789
QMS_MOVE
@ QMS_MOVE
Definition: ui.h:71
menuStatic_s::maxChars
int maxChars
Definition: ui.h:253
menuListColumn_s::uiFlags
int uiFlags
Definition: ui.h:200
uiStatic_s::scale
float scale
Definition: ui.h:293
menuCondition_s
Definition: ui.h:92
menuListColumn_s::width
int width
Definition: ui.h:199
uiStatic_t
struct uiStatic_s uiStatic_t
Menu_SelectItem
menuSound_t Menu_SelectItem(menuFrameWork_t *menu)
Definition: menu.c:2298
menuSlider_s::step
float step
Definition: ui.h:180
menuList_s::clickTime
int clickTime
Definition: ui.h:214
UI_DrawRect8
void UI_DrawRect8(const vrect_t *rect, int border, int c)
Definition: ui.c:342
Menu_AddItem
void Menu_AddItem(menuFrameWork_t *menu, void *item)
Definition: menu.c:1785
menuList_s::drag_y
int drag_y
Definition: ui.h:220
menuSlider_s::curvalue
float curvalue
Definition: ui.h:179
menuCommon_s::x
int x
Definition: ui.h:149
menuList_t
struct menuList_s menuList_t
uiStatic_s::entersound
qboolean entersound
Definition: ui.h:299
playerModelInfo_s::directory
char * directory
Definition: ui.h:275
uiStatic_s::cursorHandle
qhandle_t cursorHandle
Definition: ui.h:308
menuList_s::sortdir
int sortdir
Definition: ui.h:224
QMS_OUT
@ QMS_OUT
Definition: ui.h:72
MTYPE_ACTION
@ MTYPE_ACTION
Definition: ui.h:43
Menu_Draw
void Menu_Draw(menuFrameWork_t *menu)
Definition: menu.c:2196
Menu_Free
void Menu_Free(menuFrameWork_t *menu)
Definition: menu.c:2586
uiStatic_s::activeMenu
menuFrameWork_t * activeMenu
Definition: ui.h:296
menuKeybind_t
struct menuKeybind_s menuKeybind_t
menuFrameWork_s::footer
qhandle_t footer
Definition: ui.h:126
menuField_s::width
int width
Definition: ui.h:167
MenuList_Sort
void MenuList_Sort(menuList_t *l, int offset, int(*cmpfunc)(const void *, const void *))
Definition: menu.c:1465
menuFrameWork_s::compact
qboolean compact
Definition: ui.h:106
menuSound_t
menuSound_t
Definition: ui.h:67
void
void(APIENTRY *qwglDrawBuffer)(GLenum mode)
menuFrameWork_s::plaque_rc
vrect_t plaque_rc
Definition: ui.h:121
menuFrameWork_s::plaque
qhandle_t plaque
Definition: ui.h:120
PlayerModel_Free
void PlayerModel_Free(void)
Definition: playermodels.c:186
menuList_s::numItems
int numItems
Definition: ui.h:207
menuList_s::scratchCount
int scratchCount
Definition: ui.h:217
Menu_MouseMove
menuSound_t Menu_MouseMove(menuCommon_t *item)
Definition: menu.c:2386
MTYPE_PAIRS
@ MTYPE_PAIRS
Definition: ui.h:48
MAXMENUITEMS
#define MAXMENUITEMS
Definition: ui.h:37
uiStatic_s::menuDepth
int menuDepth
Definition: ui.h:294
menuList_s::extrasize
int extrasize
Definition: ui.h:210
menuCondition_s::equals
qboolean equals
Definition: ui.h:95
menuSpinControl_s::itemnames
char ** itemnames
Definition: ui.h:233
menuSpinControl_s::itemvalues
char ** itemvalues
Definition: ui.h:234
menuSeparator_s
Definition: ui.h:247
ui_menus
list_t ui_menus
menuFrameWork_t
struct menuFrameWork_s menuFrameWork_t
Menu_Push
qboolean Menu_Push(menuFrameWork_t *menu)
Definition: menu.c:2503
Menu_Pop
void Menu_Pop(menuFrameWork_t *menu)
Definition: menu.c:2547
playerModelInfo_s::skindisplaynames
char ** skindisplaynames
Definition: ui.h:274
PlayerModel_Load
void PlayerModel_Load(void)
Definition: playermodels.c:67
menuSeparator_t
struct menuSeparator_s menuSeparator_t
menuCommon_s::y
int y
Definition: ui.h:149
menuFrameWork_s::color
color_t color
Definition: ui.h:111
menuCommon_t
struct menuCommon_s menuCommon_t
QMS_BEEP
@ QMS_BEEP
Definition: ui.h:73
uiStatic_s::selection
color_t selection
Definition: ui.h:317
MenuList_SetValue
void MenuList_SetValue(menuList_t *l, int value)
Definition: menu.c:860
MTYPE_LOADGAME
@ MTYPE_LOADGAME
Definition: ui.h:56
Menu_AdjustCursor
menuSound_t Menu_AdjustCursor(menuFrameWork_t *menu, int dir)
Definition: menu.c:2101
c
statCounters_t c
Definition: main.c:30
menuAction_t
struct menuAction_s menuAction_t
menuSpinControl_s
Definition: ui.h:229
menuCommon_s::flags
int flags
Definition: ui.h:152
menuFrameWork_s::y1
int y1
Definition: ui.h:112
UI_StringDimensions
void UI_StringDimensions(vrect_t *rc, int flags, const char *string)
Definition: ui.c:330
MenuList_Init
void MenuList_Init(menuList_t *l)
Definition: menu.c:820
uiStatic_s::disabled
color_t disabled
Definition: ui.h:318
confirmAction_t
void(* confirmAction_t)(qboolean)
Definition: ui.h:90
menuListColumn_s::name
char * name
Definition: ui.h:198
menuCommon_s::name
char * name
Definition: ui.h:143
menuSlider_s::percentage
qboolean percentage
Definition: ui.h:182
uiStatic_s::normal
color_t normal
Definition: ui.h:315
MAX_COLUMNS
#define MAX_COLUMNS
Definition: ui.h:185
menuCondition_t
struct menuCondition_s menuCondition_t
uiStatic_s::width
int width
Definition: ui.h:292
menuFrameWork_s::banner_rc
vrect_t banner_rc
Definition: ui.h:118
menuFrameWork_s::items
void * items[MAXMENUITEMS]
Definition: ui.h:104
uiStatic_s::background
color_t background
Definition: ui.h:314
menuList_s
Definition: ui.h:203
uiStatic_s::active
color_t active
Definition: ui.h:316
uiStatic_s::realtime
int realtime
Definition: ui.h:291
Menu_Init
void Menu_Init(menuFrameWork_t *menu)
Definition: menu.c:1817
client.h
UI_PopMenu
void UI_PopMenu(void)
Definition: ui.c:143
MTYPE_FIELD
@ MTYPE_FIELD
Definition: ui.h:46
UI_DoHitTest
qboolean UI_DoHitTest(void)
Definition: ui.c:368
Menu_Keydown
menuSound_t Menu_Keydown(menuFrameWork_t *menu, int key)
Definition: menu.c:2452
Menu_ItemAtCursor
menuCommon_t * Menu_ItemAtCursor(menuFrameWork_t *menu)
Definition: menu.c:2042
uiStatic_s::backgroundHandle
qhandle_t backgroundHandle
Definition: ui.h:306
uis
uiStatic_t uis
Definition: ui.c:24
menuSpinControl_s::numItems
int numItems
Definition: ui.h:235
menuFrameWork_s::entry
list_t entry
Definition: ui.h:99
QMS_IN
@ QMS_IN
Definition: ui.h:70
uiStatic_s::cursorWidth
int cursorWidth
Definition: ui.h:309
MTYPE_LIST
@ MTYPE_LIST
Definition: ui.h:42
NUM_CURSOR_FRAMES
#define NUM_CURSOR_FRAMES
Definition: ui.h:287
menuSlider_s
Definition: ui.h:172
UI_DrawChar
void UI_DrawChar(int x, int y, int flags, int ch)
Definition: ui.c:325
menuFrameWork_s::draw
void(* draw)(struct menuFrameWork_s *)
Definition: ui.h:134
color
static vec4_t color
Definition: mesh.c:33
menuFrameWork_s::current_condition
menuCondition_t current_condition
Definition: ui.h:129
playerModelInfo_s::nskins
int nskins
Definition: ui.h:273
MTYPE_BITFIELD
@ MTYPE_BITFIELD
Definition: ui.h:47
menuCommon_s::status
char * status
Definition: ui.h:147
menuList_s::prestep
int prestep
Definition: ui.h:212
int
CONST PIXELFORMATDESCRIPTOR int
Definition: wgl.c:26
menuListColumn_t
struct menuListColumn_s menuListColumn_t
M_Menu_Servers
void M_Menu_Servers(void)
Definition: servers.c:1073
UI_StartSound
void UI_StartSound(menuSound_t sound)
Definition: ui.c:478
menuSpinControl_s::mask
int mask
Definition: ui.h:238
menuBitmap_s
Definition: ui.h:256
menuFrameWork_s::pop
void(* pop)(struct menuFrameWork_s *)
Definition: ui.h:132
MTYPE_SLIDER
@ MTYPE_SLIDER
Definition: ui.h:41
menuFrameWork_s::y2
int y2
Definition: ui.h:112
menuCommon_s::color
color_t color
Definition: ui.h:145
menuCommon_s::uiFlags
int uiFlags
Definition: ui.h:153
menuFrameWork_s::transparent
qboolean transparent
Definition: ui.h:107
menuSlider_s::maxvalue
float maxvalue
Definition: ui.h:178
uiStatic_s::numPlayerModels
int numPlayerModels
Definition: ui.h:302
menuSpinControl_s::curvalue
int curvalue
Definition: ui.h:236
sound.h
menuList_s::scratchTime
int scratchTime
Definition: ui.h:218
menuFrameWork_s::keydown
menuSound_t(* keydown)(struct menuFrameWork_s *, int)
Definition: ui.h:137
menuList_s::curvalue
int curvalue
Definition: ui.h:213
menuSlider_t
struct menuSlider_s menuSlider_t
MAX_MENU_DEPTH
#define MAX_MENU_DEPTH
Definition: ui.h:281
MAX_PLAYERMODELS
#define MAX_PLAYERMODELS
Definition: ui.h:270
menuBitmap_s::cmd
char * cmd
Definition: ui.h:259
menuFrameWork_s::keywait
qboolean keywait
Definition: ui.h:108
playerModelInfo_t
struct playerModelInfo_s playerModelInfo_t
menuSpinControl_s::negate
qboolean negate
Definition: ui.h:239
menuField_s
Definition: ui.h:163
menuField_s::field
inputField_t field
Definition: ui.h:165