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

Go to the source code of this file.
Data Structures | |
| struct | networkOptionsInfo_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 15 |
| #define | ID_DISPLAY 11 |
| #define | ID_GRAPHICS 10 |
| #define | ID_NETWORK 13 |
| #define | ID_RATE 14 |
| #define | ID_SOUND 12 |
Functions | |
| void | UI_NetworkOptionsMenu (void) |
| void | UI_NetworkOptionsMenu_Cache (void) |
| void | UI_NetworkOptionsMenu_Event (void *ptr, int event) |
| void | UI_NetworkOptionsMenu_Init (void) |
Variables | |
| networkOptionsInfo_t | networkOptionsInfo |
| const char * | rate_items [] |
|
|
Definition at line 36 of file ui_network.c. |
|
|
Definition at line 37 of file ui_network.c. |
|
|
Definition at line 34 of file ui_network.c. |
|
|
Definition at line 35 of file ui_network.c. |
|
|
Definition at line 44 of file ui_network.c. |
|
|
Definition at line 40 of file ui_network.c. |
|
|
Definition at line 39 of file ui_network.c. |
|
|
Definition at line 42 of file ui_network.c. |
|
|
Definition at line 43 of file ui_network.c. Referenced by UI_NetworkOptionsMenu_Event(). |
|
|
Definition at line 41 of file ui_network.c. |
|
|
Definition at line 277 of file ui_network.c. References networkOptionsInfo_t::menu, Menu_SetCursorToItem(), networkOptionsInfo_t::network, networkOptionsInfo, UI_NetworkOptionsMenu_Init(), and UI_PushMenu(). 00277 {
00278 UI_NetworkOptionsMenu_Init();
00279 UI_PushMenu( &networkOptionsInfo.menu );
00280 Menu_SetCursorToItem( &networkOptionsInfo.menu, &networkOptionsInfo.network );
00281 }
|
Here is the call graph for this function:

|
|
Definition at line 264 of file ui_network.c. References ART_BACK0, ART_BACK1, ART_FRAMEL, ART_FRAMER, and trap_R_RegisterShaderNoMip(). 00264 {
00265 trap_R_RegisterShaderNoMip( ART_FRAMEL );
00266 trap_R_RegisterShaderNoMip( ART_FRAMER );
00267 trap_R_RegisterShaderNoMip( ART_BACK0 );
00268 trap_R_RegisterShaderNoMip( ART_BACK1 );
00269 }
|
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 81 of file ui_network.c. References menulist_s::curvalue, ID_BACK, ID_DISPLAY, ID_GRAPHICS, ID_NETWORK, ID_RATE, ID_SOUND, networkOptionsInfo, networkOptionsInfo_t::rate, trap_Cvar_SetValue(), UI_DisplayOptionsMenu(), UI_GraphicsOptionsMenu(), UI_PopMenu(), and UI_SoundOptionsMenu(). 00081 {
00082 if( event != QM_ACTIVATED ) {
00083 return;
00084 }
00085
00086 switch( ((menucommon_s*)ptr)->id ) {
00087 case ID_GRAPHICS:
00088 UI_PopMenu();
00089 UI_GraphicsOptionsMenu();
00090 break;
00091
00092 case ID_DISPLAY:
00093 UI_PopMenu();
00094 UI_DisplayOptionsMenu();
00095 break;
00096
00097 case ID_SOUND:
00098 UI_PopMenu();
00099 UI_SoundOptionsMenu();
00100 break;
00101
00102 case ID_NETWORK:
00103 break;
00104
00105 case ID_RATE:
00106 if( networkOptionsInfo.rate.curvalue == 0 ) {
00107 trap_Cvar_SetValue( "rate", 2500 );
00108 }
00109 else if( networkOptionsInfo.rate.curvalue == 1 ) {
00110 trap_Cvar_SetValue( "rate", 3000 );
00111 }
00112 else if( networkOptionsInfo.rate.curvalue == 2 ) {
00113 trap_Cvar_SetValue( "rate", 4000 );
00114 }
00115 else if( networkOptionsInfo.rate.curvalue == 3 ) {
00116 trap_Cvar_SetValue( "rate", 5000 );
00117 }
00118 else if( networkOptionsInfo.rate.curvalue == 4 ) {
00119 trap_Cvar_SetValue( "rate", 25000 );
00120 }
00121 break;
00122
00123 case ID_BACK:
00124 UI_PopMenu();
00125 break;
00126 }
00127 }
|
Here is the call graph for this function:

|
Here is the call graph for this function:

|
|
Definition at line 73 of file ui_network.c. Referenced by UI_NetworkOptionsMenu(), UI_NetworkOptionsMenu_Event(), and UI_NetworkOptionsMenu_Init(). |
|
|
Initial value: {
"<= 28.8K",
"33.6K",
"56K",
"ISDN",
"LAN/Cable/xDSL",
0
}
Definition at line 47 of file ui_network.c. |
1.3.9.1