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

Go to the source code of this file.
Data Structures | |
| struct | saveConfig_t |
Defines | |
| #define | ART_BACK0 "menu/art/back_0" |
| #define | ART_BACK1 "menu/art/back_1" |
| #define | ART_BACKGROUND "menu/art/cut_frame" |
| #define | ART_SAVE0 "menu/art/save_0" |
| #define | ART_SAVE1 "menu/art/save_1" |
| #define | ID_BACK 11 |
| #define | ID_NAME 10 |
| #define | ID_SAVE 12 |
Functions | |
| void | UI_SaveConfigMenu (void) |
| void | UI_SaveConfigMenu_BackEvent (void *ptr, int event) |
| void | UI_SaveConfigMenu_Cache (void) |
| void | UI_SaveConfigMenu_Init (void) |
| void | UI_SaveConfigMenu_SaveEvent (void *ptr, int event) |
| void | UI_SaveConfigMenu_SavenameDraw (void *self) |
Variables | |
| saveConfig_t | saveConfig |
|
|
Definition at line 34 of file ui_saveconfig.c. |
|
|
Definition at line 35 of file ui_saveconfig.c. |
|
|
Definition at line 38 of file ui_saveconfig.c. |
|
|
Definition at line 36 of file ui_saveconfig.c. Referenced by UI_SaveConfigMenu_Cache(). |
|
|
Definition at line 37 of file ui_saveconfig.c. Referenced by UI_SaveConfigMenu_Cache(). |
|
|
Definition at line 41 of file ui_saveconfig.c. |
|
|
Definition at line 40 of file ui_saveconfig.c. |
|
|
Definition at line 42 of file ui_saveconfig.c. |
|
|
Definition at line 209 of file ui_saveconfig.c. References saveConfig_t::menu, saveConfig, UI_PushMenu(), and UI_SaveConfigMenu_Init(). 00209 {
00210 UI_SaveConfigMenu_Init();
00211 UI_PushMenu( &saveConfig.menu );
00212 }
|
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 63 of file ui_saveconfig.c. References UI_PopMenu(). 00063 {
00064 if( event != QM_ACTIVATED ) {
00065 return;
00066 }
00067
00068 UI_PopMenu();
00069 }
|
Here is the call graph for this function:

|
|
Definition at line 195 of file ui_saveconfig.c. References ART_BACK0, ART_BACK1, ART_BACKGROUND, ART_SAVE0, ART_SAVE1, and trap_R_RegisterShaderNoMip(). 00195 {
00196 trap_R_RegisterShaderNoMip( ART_BACK0 );
00197 trap_R_RegisterShaderNoMip( ART_BACK1 );
00198 trap_R_RegisterShaderNoMip( ART_SAVE0 );
00199 trap_R_RegisterShaderNoMip( ART_SAVE1 );
00200 trap_R_RegisterShaderNoMip( ART_BACKGROUND );
00201 }
|
Here is the call graph for this function:

|
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 77 of file ui_saveconfig.c. References mfield_t::buffer, COM_StripExtension(), EXEC_APPEND, menufield_s::field, saveConfig, saveConfig_t::savename, trap_Cmd_ExecuteText(), UI_PopMenu(), and va(). 00077 {
00078 char configname[MAX_QPATH];
00079
00080 if( event != QM_ACTIVATED ) {
00081 return;
00082 }
00083
00084 if( !saveConfig.savename.field.buffer[0] ) {
00085 return;
00086 }
00087
00088 COM_StripExtension(saveConfig.savename.field.buffer, configname );
00089 trap_Cmd_ExecuteText( EXEC_APPEND, va( "writeconfig %s.cfg\n", configname ) );
00090 UI_PopMenu();
00091 }
|
Here is the call graph for this function:

|
|
Definition at line 99 of file ui_saveconfig.c. References color_orange, colorBlack, f, menufield_s::field, menufield_s::generic, saveConfig_t::menu, Menu_ItemAtCursor(), MField_Draw(), saveConfig, SMALLCHAR_HEIGHT, SMALLCHAR_WIDTH, UI_CENTER, UI_DrawProportionalString(), UI_FillRect(), UI_LEFT, UI_PULSE, UI_SMALLFONT, mfield_t::widthInChars, menucommon_s::x, and menucommon_s::y. 00099 {
00100 menufield_s *f;
00101 int style;
00102 float *color;
00103
00104 f = (menufield_s *)self;
00105
00106 if( f == Menu_ItemAtCursor( &saveConfig.menu ) ) {
00107 style = UI_LEFT|UI_PULSE|UI_SMALLFONT;
00108 color = text_color_highlight;
00109 }
00110 else {
00111 style = UI_LEFT|UI_SMALLFONT;
00112 color = colorRed;
00113 }
00114
00115 UI_DrawProportionalString( 320, 192, "Enter filename:", UI_CENTER|UI_SMALLFONT, color_orange );
00116 UI_FillRect( f->generic.x, f->generic.y, f->field.widthInChars*SMALLCHAR_WIDTH, SMALLCHAR_HEIGHT, colorBlack );
00117 MField_Draw( &f->field, f->generic.x, f->generic.y, style, color );
00118 }
|
Here is the call graph for this function:

|
|
Definition at line 55 of file ui_saveconfig.c. Referenced by UI_SaveConfigMenu(), UI_SaveConfigMenu_Init(), UI_SaveConfigMenu_SaveEvent(), and UI_SaveConfigMenu_SavenameDraw(). |
1.3.9.1