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

Go to the source code of this file.
Data Structures | |
| struct | resetMenu_t |
Defines | |
| #define | ART_FRAME "menu/art/cut_frame" |
| #define | ID_NO 100 |
| #define | ID_YES 101 |
Functions | |
| void | Reset_Cache (void) |
| void | Reset_MenuDraw (void) |
| void | Reset_MenuEvent (void *ptr, int event) |
| sfxHandle_t | Reset_MenuKey (int key) |
| void | UI_ResetMenu (void) |
Variables | |
| resetMenu_t | s_reset |
|
|
Definition at line 33 of file ui_spreset.c. |
|
|
Definition at line 35 of file ui_spreset.c. |
|
|
Definition at line 36 of file ui_spreset.c. |
|
|
Definition at line 125 of file ui_spreset.c. References ART_FRAME, and trap_R_RegisterShaderNoMip(). Referenced by UI_ResetMenu(). 00125 {
00126 trap_R_RegisterShaderNoMip( ART_FRAME );
00127 }
|
Here is the call graph for this function:

|
|
Definition at line 107 of file ui_spreset.c. References ART_FRAME, color_red, color_yellow, resetMenu_t::menu, Menu_Draw(), PROP_HEIGHT, s_reset, SCREEN_WIDTH, resetMenu_t::slashX, UI_CENTER, UI_DrawNamedPic(), UI_DrawProportionalString(), UI_INVERSE, UI_LEFT, and UI_SMALLFONT. 00107 {
00108 UI_DrawNamedPic( 142, 118, 359, 256, ART_FRAME );
00109 UI_DrawProportionalString( 320, 194 + 10, "RESET GAME?", UI_CENTER|UI_INVERSE, color_red );
00110 UI_DrawProportionalString( s_reset.slashX, 265, "/", UI_LEFT|UI_INVERSE, color_red );
00111 Menu_Draw( &s_reset.menu );
00112
00113 UI_DrawProportionalString( SCREEN_WIDTH/2, 356 + PROP_HEIGHT * 0, "WARNING: This resets all of the", UI_CENTER|UI_SMALLFONT, color_yellow );
00114 UI_DrawProportionalString( SCREEN_WIDTH/2, 356 + PROP_HEIGHT * 1, "single player game variables.", UI_CENTER|UI_SMALLFONT, color_yellow );
00115 UI_DrawProportionalString( SCREEN_WIDTH/2, 356 + PROP_HEIGHT * 2, "Do this only if you want to", UI_CENTER|UI_SMALLFONT, color_yellow );
00116 UI_DrawProportionalString( SCREEN_WIDTH/2, 356 + PROP_HEIGHT * 3, "start over from the beginning.", UI_CENTER|UI_SMALLFONT, color_yellow );
00117 }
|
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 54 of file ui_spreset.c. References trap_Cvar_SetValue(), UI_NewGame(), UI_PopMenu(), and UI_SPLevelMenu(). Referenced by Reset_MenuKey(). 00054 {
00055 if( event != QM_ACTIVATED ) {
00056 return;
00057 }
00058
00059 UI_PopMenu();
00060
00061 if( ((menucommon_s*)ptr)->id == ID_NO ) {
00062 return;
00063 }
00064
00065 // reset the game, pop the level menu and restart it so it updates
00066 UI_NewGame();
00067 trap_Cvar_SetValue( "ui_spSelection", 0 );
00068 UI_PopMenu();
00069 UI_SPLevelMenu();
00070 }
|
Here is the call graph for this function:

|
|
Definition at line 78 of file ui_spreset.c. References K_KP_LEFTARROW, K_KP_RIGHTARROW, K_LEFTARROW, K_RIGHTARROW, resetMenu_t::menu, Menu_DefaultKey(), resetMenu_t::no, QM_ACTIVATED, Reset_MenuEvent(), s_reset, sfxHandle_t, and resetMenu_t::yes. 00078 {
00079 switch ( key ) {
00080 case K_KP_LEFTARROW:
00081 case K_LEFTARROW:
00082 case K_KP_RIGHTARROW:
00083 case K_RIGHTARROW:
00084 key = K_TAB;
00085 break;
00086
00087 case 'n':
00088 case 'N':
00089 Reset_MenuEvent( &s_reset.no, QM_ACTIVATED );
00090 break;
00091
00092 case 'y':
00093 case 'Y':
00094 Reset_MenuEvent( &s_reset.yes, QM_ACTIVATED );
00095 break;
00096 }
00097
00098 return Menu_DefaultKey( &s_reset.menu, key );
00099 }
|
Here is the call graph for this function:

|
Here is the call graph for this function:

|
|
Definition at line 46 of file ui_spreset.c. Referenced by Reset_MenuDraw(), Reset_MenuKey(), and UI_ResetMenu(). |
1.3.9.1