Skip to content

Commit

Permalink
UI: Implement changes for better VoiP UI support
Browse files Browse the repository at this point in the history
See #143
  • Loading branch information
kai-li-wop committed Apr 8, 2022
1 parent e6ecb4c commit dd7bf03
Show file tree
Hide file tree
Showing 11 changed files with 351 additions and 195 deletions.
2 changes: 1 addition & 1 deletion code/client/cl_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3367,7 +3367,7 @@ void CL_Init(void) {
cl_voipSend = Cvar_Get("cl_voipSend", "0", 0);
cl_voipSendTarget = Cvar_Get("cl_voipSendTarget", "spatial", 0);
cl_voipGainDuringCapture = Cvar_Get("cl_voipGainDuringCapture", "0.2", CVAR_ARCHIVE);
cl_voipCaptureMult = Cvar_Get("cl_voipCaptureMult", "4.0", CVAR_ARCHIVE);
cl_voipCaptureMult = Cvar_Get("cl_voipCaptureMult", "2.0", CVAR_ARCHIVE);
cl_voipUseVAD = Cvar_Get("cl_voipUseVAD", "0", CVAR_ARCHIVE);
cl_voipVADThreshold = Cvar_Get("cl_voipVADThreshold", "0.25", CVAR_ARCHIVE);
cl_voipShowMeter = Cvar_Get("cl_voipShowMeter", "1", CVAR_ARCHIVE);
Expand Down
10 changes: 5 additions & 5 deletions code/ui/ui_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ DISPLAY OPTIONS MENU
#define BACK0 "menu/buttons/back0"
#define BACK1 "menu/buttons/back1"
#define GRAPHICS0 "menu/buttons/graphics0"
#define GRASHICS1 "menu/buttons/graphics1"
#define GRAPHICS1 "menu/buttons/graphics1"
#define DISPLAY0 "menu/buttons/display0"
#define DISPLAY1 "menu/buttons/display1"
#define SOUND0 "menu/buttons/sound0"
#define SOUND1 "menu/buttons/sound1"
#define NETWORK0 "menu/buttons/network0"
#define NETWORK1 "menu/buttons/network1"
#define NETWORK0 "menu/buttons/netvoip0"
#define NETWORK1 "menu/buttons/netvoip1"
#define ACCEPT0 "menu/buttons/accept"
#define ACCEPT1 "menu/buttons/accept"

Expand Down Expand Up @@ -235,7 +235,7 @@ static void UI_DisplayOptionsMenu_Init(void) {
displayOptionsInfo.graphics.generic.y = 37;
displayOptionsInfo.graphics.width = 160;
displayOptionsInfo.graphics.height = 40;
displayOptionsInfo.graphics.focuspic = GRASHICS1;
displayOptionsInfo.graphics.focuspic = GRAPHICS1;
displayOptionsInfo.graphics.focuspicinstead = qtrue;

displayOptionsInfo.display.generic.type = MTYPE_BITMAP;
Expand Down Expand Up @@ -484,7 +484,7 @@ void UI_DisplayOptionsMenu_Cache(void) {
trap_R_RegisterShaderNoMip(BACK0);
trap_R_RegisterShaderNoMip(BACK1);
trap_R_RegisterShaderNoMip(GRAPHICS0);
trap_R_RegisterShaderNoMip(GRASHICS1);
trap_R_RegisterShaderNoMip(GRAPHICS1);
trap_R_RegisterShaderNoMip(DISPLAY0);
trap_R_RegisterShaderNoMip(DISPLAY1);
trap_R_RegisterShaderNoMip(SOUND0);
Expand Down
1 change: 1 addition & 0 deletions code/ui/ui_local.h
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ extern void Menu_SetCursor(menuframework_s *s, int cursor);
extern void Menu_SetCursorToItem(menuframework_s *m, void *ptr);
extern sfxHandle_t Menu_DefaultKey(menuframework_s *s, int key);
extern sfxHandle_t ScrollList_Key(menulist_s *l, int key);
extern void SpinControl_Init(menulist_s *s);

extern sfxHandle_t menu_move_sound;
extern sfxHandle_t menu_switch_sound;
Expand Down
Loading

0 comments on commit dd7bf03

Please sign in to comment.