#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_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_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
#define LCOLUMN_OFFSET -16 |
◆ RCOLUMN_OFFSET
#define RCOLUMN_OFFSET 16 |
◆ SLIDER_RANGE
◆ VID_HEIGHT
◆ VID_WIDTH
◆ Action_DoEnter()
◆ Action_Draw()
◆ Field_DoEnter()
◆ Field_Draw()
◆ Field_Key()
◆ Menu_AddItem()
Definition at line 270 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 350 of file qmenu.c.
407 if (
item->statusbarfunc )
408 item->statusbarfunc( (
void * )
item );
409 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 421 of file qmenu.c.
425 int l = strlen(
string );
427 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_Draw()
◆ Separator_Draw()
◆ Slider_DoSlide()
Definition at line 598 of file qmenu.c.
602 if (
s->curvalue >
s->maxvalue )
603 s->curvalue =
s->maxvalue;
604 else if (
s->curvalue <
s->minvalue )
605 s->curvalue =
s->minvalue;
607 if (
s->generic.callback )
608 s->generic.callback(
s );
Referenced by Menu_SlideItem().
◆ Slider_Draw()
Definition at line 613 of file qmenu.c.
618 s->generic.y +
s->generic.parent->y,
621 s->range = (
s->curvalue -
s->minvalue ) / (
float ) (
s->maxvalue -
s->minvalue );
Referenced by Menu_Draw().
◆ SpinControl_DoSlide()
Definition at line 646 of file qmenu.c.
650 if (
s->curvalue < 0 )
652 else if (
s->itemnames[
s->curvalue] == 0 )
655 if (
s->generic.callback )
656 s->generic.callback(
s );
Referenced by Menu_SlideItem().
◆ SpinControl_Draw()
Definition at line 659 of file qmenu.c.
663 if (
s->generic.name )
666 s->generic.y +
s->generic.parent->y,
669 if ( !strchr(
s->itemnames[
s->curvalue],
'\n' ) )
675 strcpy(
buffer,
s->itemnames[
s->curvalue] );
676 *strchr(
buffer,
'\n' ) = 0;
678 strcpy(
buffer, strchr(
s->itemnames[
s->curvalue],
'\n' ) + 1 );
Referenced by Menu_Draw().
◆ re
Definition at line 31 of file vid_dll.c.
Referenced by CL_AddPacketEntities(), CL_Disconnect(), CL_Disruptor_Explosion_Particle(), CL_DrawInventory(), CL_Explosion_Particle(), CL_FireEntityEvents(), CL_LoadClientinfo(), CL_ParseConfigString(), CL_ParseTEnt(), 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(), pBloodThink(), 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(), SearchLocalGames(), SetParticleImages(), UpdateSoundQualityFunc(), V_Gun_Model_f(), V_RenderView(), VID_FreeReflib(), VID_LoadRefresh(), VID_MenuDraw(), and VID_Shutdown().
◆ viddef