#include <string.h>
#include <ctype.h>
#include "client.h"
#include "qmenu.h"
Go to the source code of this file.
|
static void | Action_DoEnter (menuaction_s *a) |
|
static void | Action_Draw (menuaction_s *a) |
|
static void | Menu_DrawStatusBar (const char *string) |
|
static void | Menulist_DoEnter (menulist_s *l) |
|
static void | MenuList_Draw (menulist_s *l) |
|
static void | Separator_Draw (menuseparator_s *s) |
|
static void | Slider_DoSlide (menuslider_s *s, int dir) |
|
static void | Slider_Draw (menuslider_s *s) |
|
static void | SpinControl_DoEnter (menulist_s *s) |
|
static void | SpinControl_Draw (menulist_s *s) |
|
static void | SpinControl_DoSlide (menulist_s *s, int dir) |
|
qboolean | Field_DoEnter (menufield_s *f) |
|
void | Field_Draw (menufield_s *f) |
|
qboolean | Field_Key (menufield_s *f, int key) |
|
void | Menu_AddItem (menuframework_s *menu, void *item) |
|
void | Menu_AdjustCursor (menuframework_s *m, int dir) |
|
void | Menu_Center (menuframework_s *menu) |
|
void | Menu_Draw (menuframework_s *menu) |
|
void | Menu_DrawString (int x, int y, const char *string) |
|
void | Menu_DrawStringDark (int x, int y, const char *string) |
|
void | Menu_DrawStringR2L (int x, int y, const char *string) |
|
void | Menu_DrawStringR2LDark (int x, int y, const char *string) |
|
void * | Menu_ItemAtCursor (menuframework_s *m) |
|
qboolean | Menu_SelectItem (menuframework_s *s) |
|
void | Menu_SetStatusBar (menuframework_s *m, const char *string) |
|
void | Menu_SlideItem (menuframework_s *s, int dir) |
|
int | Menu_TallySlots (menuframework_s *menu) |
|
◆ Draw_Char
#define Draw_Char re.DrawChar |
◆ Draw_Fill
#define Draw_Fill re.DrawFill |
◆ LCOLUMN_OFFSET
◆ RCOLUMN_OFFSET
◆ SLIDER_RANGE
◆ VID_HEIGHT
◆ VID_WIDTH
◆ Action_DoEnter()
◆ Action_Draw()
◆ Field_DoEnter()
◆ Field_Draw()
◆ Field_Key()
◆ Menu_AddItem()
Definition at line 266 of file qmenu.c.
Referenced by AddressBook_MenuInit(), DMOptions_MenuInit(), DownloadOptions_MenuInit(), Game_MenuInit(), JoinServer_MenuInit(), Keys_MenuInit(), LoadGame_MenuInit(), Multiplayer_MenuInit(), Options_MenuInit(), PlayerConfig_MenuInit(), SaveGame_MenuInit(), StartServer_MenuInit(), and VID_MenuInit().
◆ Menu_AdjustCursor()
◆ Menu_Center()
◆ Menu_Draw()
Definition at line 346 of file qmenu.c.
403 if (
item->statusbarfunc )
404 item->statusbarfunc( (
void * )
item );
405 else if (
item->statusbar )
Referenced by AddressBook_MenuDraw(), DMOptions_MenuDraw(), DownloadOptions_MenuDraw(), Game_MenuDraw(), JoinServer_MenuDraw(), Keys_MenuDraw(), LoadGame_MenuDraw(), Multiplayer_MenuDraw(), Options_MenuDraw(), PlayerConfig_MenuDraw(), SaveGame_MenuDraw(), StartServer_MenuDraw(), and VID_MenuDraw().
◆ Menu_DrawStatusBar()
void Menu_DrawStatusBar |
( |
const char * |
string | ) |
|
|
static |
Definition at line 417 of file qmenu.c.
421 int l = (
int)strlen(
string );
423 int col = maxcol / 2 - l / 2;
Referenced by Menu_Draw().
◆ Menu_DrawString()
void Menu_DrawString |
( |
int |
x, |
|
|
int |
y, |
|
|
const char * |
string |
|
) |
| |
◆ Menu_DrawStringDark()
void Menu_DrawStringDark |
( |
int |
x, |
|
|
int |
y, |
|
|
const char * |
string |
|
) |
| |
◆ Menu_DrawStringR2L()
void Menu_DrawStringR2L |
( |
int |
x, |
|
|
int |
y, |
|
|
const char * |
string |
|
) |
| |
◆ Menu_DrawStringR2LDark()
void Menu_DrawStringR2LDark |
( |
int |
x, |
|
|
int |
y, |
|
|
const char * |
string |
|
) |
| |
◆ Menu_ItemAtCursor()
◆ Menu_SelectItem()
◆ Menu_SetStatusBar()
◆ Menu_SlideItem()
◆ Menu_TallySlots()
◆ Menulist_DoEnter()
◆ MenuList_Draw()
◆ Separator_Draw()
◆ Slider_DoSlide()
Definition at line 592 of file qmenu.c.
596 if (
s->curvalue >
s->maxvalue )
597 s->curvalue =
s->maxvalue;
598 else if (
s->curvalue <
s->minvalue )
599 s->curvalue =
s->minvalue;
601 if (
s->generic.callback )
602 s->generic.callback(
s );
Referenced by Menu_SlideItem().
◆ Slider_Draw()
Definition at line 607 of file qmenu.c.
612 s->generic.y +
s->generic.parent->y,
615 s->range = (
s->curvalue -
s->minvalue ) / (
float ) (
s->maxvalue -
s->minvalue );
Referenced by Menu_Draw().
◆ SpinControl_DoEnter()
Definition at line 628 of file qmenu.c.
631 if (
s->itemnames[
s->curvalue] == 0 )
634 if (
s->generic.callback )
635 s->generic.callback(
s );
◆ SpinControl_DoSlide()
Definition at line 638 of file qmenu.c.
642 if (
s->curvalue < 0 )
644 else if (
s->itemnames[
s->curvalue] == 0 )
647 if (
s->generic.callback )
648 s->generic.callback(
s );
Referenced by Menu_SlideItem().
◆ SpinControl_Draw()
Definition at line 651 of file qmenu.c.
655 if (
s->generic.name )
658 s->generic.y +
s->generic.parent->y,
661 if ( !strchr(
s->itemnames[
s->curvalue],
'\n' ) )
667 strcpy(
buffer,
s->itemnames[
s->curvalue] );
668 *strchr(
buffer,
'\n' ) = 0;
670 strcpy(
buffer, strchr(
s->itemnames[
s->curvalue],
'\n' ) + 1 );
Referenced by Menu_Draw().
◆ re
Definition at line 32 of file vid_dll.c.
Referenced by CL_AddPacketEntities(), CL_Disconnect(), CL_DrawInventory(), CL_LoadClientinfo(), CL_ParseConfigString(), CL_PrepRefresh(), CL_RegisterTEntModels(), Con_DrawConsole(), Con_DrawInput(), Con_DrawNotify(), DrawAltString(), DrawHUDString(), DrawString(), GetRefAPI(), Inv_DrawString(), KeyCursorDrawFunc(), M_Banner(), M_Credits_MenuDraw(), M_Draw(), M_DrawCharacter(), M_DrawCursor(), M_DrawPic(), M_Main_Draw(), M_Quit_Draw(), MainWndProc(), PlayerConfig_MenuDraw(), S_RegisterSexedModel(), SCR_DrawCenterString(), SCR_DrawCinematic(), SCR_DrawConsole(), SCR_DrawCrosshair(), SCR_DrawDebugGraph(), SCR_DrawField(), SCR_DrawLoading(), SCR_DrawNet(), SCR_DrawPause(), SCR_ExecuteLayoutString(), SCR_Sky_f(), SCR_StopCinematic(), SCR_TileClear(), SCR_TimeRefresh_f(), SCR_TouchPics(), SCR_UpdateScreen(), V_Gun_Model_f(), V_RenderView(), VID_FreeReflib(), VID_LoadRefresh(), VID_MenuDraw(), and VID_Shutdown().
◆ vid_hudscale
◆ viddef