#include "ui_local.h"
Include dependency graph for ui_sound.c:

Go to the source code of this file.
Data Structures | |
| struct | soundOptionsInfo_t |
Defines | |
| #define | ART_BACK0 "menu/art/back_0" |
| #define | ART_BACK1 "menu/art/back_1" |
| #define | ART_FRAMEL "menu/art/frame2_l" |
| #define | ART_FRAMER "menu/art/frame1_r" |
| #define | ID_BACK 18 |
| #define | ID_DISPLAY 11 |
| #define | ID_EFFECTSVOLUME 14 |
| #define | ID_GRAPHICS 10 |
| #define | ID_MUSICVOLUME 15 |
| #define | ID_NETWORK 13 |
| #define | ID_QUALITY 16 |
| #define | ID_SOUND 12 |
Functions | |
| void | UI_SoundOptionsMenu (void) |
| void | UI_SoundOptionsMenu_Cache (void) |
| void | UI_SoundOptionsMenu_Event (void *ptr, int event) |
| void | UI_SoundOptionsMenu_Init (void) |
Variables | |
| const char * | quality_items [] |
| soundOptionsInfo_t | soundOptionsInfo |
|
|
Definition at line 36 of file ui_sound.c. |
|
|
Definition at line 37 of file ui_sound.c. |
|
|
Definition at line 34 of file ui_sound.c. |
|
|
Definition at line 35 of file ui_sound.c. |
|
|
Definition at line 47 of file ui_sound.c. |
|
|
Definition at line 40 of file ui_sound.c. |
|
|
Definition at line 43 of file ui_sound.c. Referenced by UI_SoundOptionsMenu_Event(). |
|
|
Definition at line 39 of file ui_sound.c. |
|
|
Definition at line 44 of file ui_sound.c. Referenced by UI_SoundOptionsMenu_Event(). |
|
|
Definition at line 42 of file ui_sound.c. |
|
|
Definition at line 45 of file ui_sound.c. Referenced by UI_SoundOptionsMenu_Event(). |
|
|
Definition at line 41 of file ui_sound.c. |
|
|
Definition at line 312 of file ui_sound.c. References soundOptionsInfo_t::menu, Menu_SetCursorToItem(), soundOptionsInfo_t::sound, soundOptionsInfo, UI_PushMenu(), and UI_SoundOptionsMenu_Init(). 00312 {
00313 UI_SoundOptionsMenu_Init();
00314 UI_PushMenu( &soundOptionsInfo.menu );
00315 Menu_SetCursorToItem( &soundOptionsInfo.menu, &soundOptionsInfo.sound );
00316 }
|
Here is the call graph for this function:

|
|
Definition at line 299 of file ui_sound.c. References ART_BACK0, ART_BACK1, ART_FRAMEL, ART_FRAMER, and trap_R_RegisterShaderNoMip(). 00299 {
00300 trap_R_RegisterShaderNoMip( ART_FRAMEL );
00301 trap_R_RegisterShaderNoMip( ART_FRAMER );
00302 trap_R_RegisterShaderNoMip( ART_BACK0 );
00303 trap_R_RegisterShaderNoMip( ART_BACK1 );
00304 }
|
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 82 of file ui_sound.c. References menulist_s::curvalue, menuslider_s::curvalue, EXEC_APPEND, ID_BACK, ID_DISPLAY, ID_EFFECTSVOLUME, ID_GRAPHICS, ID_MUSICVOLUME, ID_NETWORK, ID_QUALITY, ID_SOUND, soundOptionsInfo_t::musicvolume, soundOptionsInfo_t::quality, soundOptionsInfo_t::sfxvolume, soundOptionsInfo, trap_Cmd_ExecuteText(), trap_Cvar_SetValue(), UI_DisplayOptionsMenu(), UI_ForceMenuOff(), UI_GraphicsOptionsMenu(), UI_NetworkOptionsMenu(), and UI_PopMenu(). 00082 {
00083 if( event != QM_ACTIVATED ) {
00084 return;
00085 }
00086
00087 switch( ((menucommon_s*)ptr)->id ) {
00088 case ID_GRAPHICS:
00089 UI_PopMenu();
00090 UI_GraphicsOptionsMenu();
00091 break;
00092
00093 case ID_DISPLAY:
00094 UI_PopMenu();
00095 UI_DisplayOptionsMenu();
00096 break;
00097
00098 case ID_SOUND:
00099 break;
00100
00101 case ID_NETWORK:
00102 UI_PopMenu();
00103 UI_NetworkOptionsMenu();
00104 break;
00105
00106 case ID_EFFECTSVOLUME:
00107 trap_Cvar_SetValue( "s_volume", soundOptionsInfo.sfxvolume.curvalue / 10 );
00108 break;
00109
00110 case ID_MUSICVOLUME:
00111 trap_Cvar_SetValue( "s_musicvolume", soundOptionsInfo.musicvolume.curvalue / 10 );
00112 break;
00113
00114 case ID_QUALITY:
00115 if( soundOptionsInfo.quality.curvalue ) {
00116 trap_Cvar_SetValue( "s_khz", 22 );
00117 trap_Cvar_SetValue( "s_compression", 0 );
00118 }
00119 else {
00120 trap_Cvar_SetValue( "s_khz", 11 );
00121 trap_Cvar_SetValue( "s_compression", 1 );
00122 }
00123 UI_ForceMenuOff();
00124 trap_Cmd_ExecuteText( EXEC_APPEND, "snd_restart\n" );
00125 break;
00126 /*
00127 case ID_A3D:
00128 if( soundOptionsInfo.a3d.curvalue ) {
00129 trap_Cmd_ExecuteText( EXEC_NOW, "s_enable_a3d\n" );
00130 }
00131 else {
00132 trap_Cmd_ExecuteText( EXEC_NOW, "s_disable_a3d\n" );
00133 }
00134 soundOptionsInfo.a3d.curvalue = (int)trap_Cvar_VariableValue( "s_usingA3D" );
00135 break;
00136 */
00137 case ID_BACK:
00138 UI_PopMenu();
00139 break;
00140 }
00141 }
|
Here is the call graph for this function:

|
Here is the call graph for this function:

|
|
Initial value: {
"Low", "High", 0
}
Definition at line 50 of file ui_sound.c. |
|
|
Definition at line 74 of file ui_sound.c. Referenced by UI_SoundOptionsMenu(), UI_SoundOptionsMenu_Event(), and UI_SoundOptionsMenu_Init(). |
1.3.9.1