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

Go to the source code of this file.
Data Structures | |
| struct | confirmMenu_t |
Defines | |
| #define | ART_CONFIRM_FRAME "menu/art/cut_frame" |
| #define | ID_CONFIRM_NO 10 |
| #define | ID_CONFIRM_YES 11 |
Functions | |
| void | ConfirmMenu_Cache (void) |
| void | ConfirmMenu_Draw (void) |
| void | ConfirmMenu_Event (void *ptr, int event) |
| sfxHandle_t | ConfirmMenu_Key (int key) |
| void | MessageMenu_Draw (void) |
| void | UI_ConfirmMenu (const char *question, void(*draw)(void), void(*action)(qboolean result)) |
| void | UI_ConfirmMenu_Style (const char *question, int style, void(*draw)(void), void(*action)(qboolean result)) |
| void | UI_Message (const char **lines) |
Variables | |
| confirmMenu_t | s_confirm |
|
|
Definition at line 35 of file ui_confirm.c. Referenced by ConfirmMenu_Cache(), ConfirmMenu_Draw(), and MessageMenu_Draw(). |
|
|
Definition at line 37 of file ui_confirm.c. |
|
|
Definition at line 38 of file ui_confirm.c. |
|
|
Definition at line 163 of file ui_confirm.c. References ART_CONFIRM_FRAME, and trap_R_RegisterShaderNoMip(). Referenced by UI_Cache_f(), UI_ConfirmMenu_Style(), and UI_Message(). 00163 {
00164 trap_R_RegisterShaderNoMip( ART_CONFIRM_FRAME );
00165 }
|
Here is the call graph for this function:

|
|
Definition at line 145 of file ui_confirm.c. References ART_CONFIRM_FRAME, color_red, confirmMenu_t::draw, confirmMenu_t::menu, Menu_Draw(), confirmMenu_t::question, s_confirm, confirmMenu_t::slashX, confirmMenu_t::style, UI_DrawNamedPic(), UI_DrawProportionalString(), UI_INVERSE, and UI_LEFT. 00145 {
00146 UI_DrawNamedPic( 142, 118, 359, 256, ART_CONFIRM_FRAME );
00147 UI_DrawProportionalString( 320, 204, s_confirm.question, s_confirm.style, color_red );
00148 UI_DrawProportionalString( s_confirm.slashX, 265, "/", UI_LEFT|UI_INVERSE, color_red );
00149
00150 Menu_Draw( &s_confirm.menu );
00151
00152 if( s_confirm.draw ) {
00153 s_confirm.draw();
00154 }
00155 }
|
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 65 of file ui_confirm.c. References confirmMenu_t::action, qboolean, s_confirm, and UI_PopMenu(). Referenced by ConfirmMenu_Key(). 00065 {
00066 qboolean result;
00067
00068 if( event != QM_ACTIVATED ) {
00069 return;
00070 }
00071
00072 UI_PopMenu();
00073
00074 if( ((menucommon_s*)ptr)->id == ID_CONFIRM_NO ) {
00075 result = qfalse;
00076 }
00077 else {
00078 result = qtrue;
00079 }
00080
00081 if( s_confirm.action ) {
00082 s_confirm.action( result );
00083 }
00084 }
|
Here is the call graph for this function:

|
|
Definition at line 92 of file ui_confirm.c. References ConfirmMenu_Event(), K_KP_LEFTARROW, K_KP_RIGHTARROW, K_LEFTARROW, K_RIGHTARROW, confirmMenu_t::menu, Menu_DefaultKey(), confirmMenu_t::no, QM_ACTIVATED, s_confirm, sfxHandle_t, and confirmMenu_t::yes. 00092 {
00093 switch ( key ) {
00094 case K_KP_LEFTARROW:
00095 case K_LEFTARROW:
00096 case K_KP_RIGHTARROW:
00097 case K_RIGHTARROW:
00098 key = K_TAB;
00099 break;
00100
00101 case 'n':
00102 case 'N':
00103 ConfirmMenu_Event( &s_confirm.no, QM_ACTIVATED );
00104 break;
00105
00106 case 'y':
00107 case 'Y':
00108 ConfirmMenu_Event( &s_confirm.yes, QM_ACTIVATED );
00109 break;
00110 }
00111
00112 return Menu_DefaultKey( &s_confirm.menu, key );
00113 }
|
Here is the call graph for this function:

|
|
Definition at line 121 of file ui_confirm.c. References ART_CONFIRM_FRAME, color_red, confirmMenu_t::draw, i, confirmMenu_t::lines, confirmMenu_t::menu, Menu_Draw(), s_confirm, confirmMenu_t::style, UI_DrawNamedPic(), UI_DrawProportionalString(), and y. 00121 {
00122 int i,y;
00123
00124 UI_DrawNamedPic( 142, 118, 359, 256, ART_CONFIRM_FRAME );
00125
00126 y = 188;
00127 for(i=0; s_confirm.lines[i]; i++)
00128 {
00129 UI_DrawProportionalString( 320, y, s_confirm.lines[i], s_confirm.style, color_red );
00130 y += 18;
00131 }
00132
00133 Menu_Draw( &s_confirm.menu );
00134
00135 if( s_confirm.draw ) {
00136 s_confirm.draw();
00137 }
00138 }
|
Here is the call graph for this function:

|
||||||||||||||||
|
Definition at line 241 of file ui_confirm.c. References UI_CENTER, UI_ConfirmMenu_Style(), and UI_INVERSE. Referenced by Controls_MenuEvent(), InGame_Event(), Main_MenuEvent(), UI_SetActiveMenu(), UI_SetupMenu_Event(), and UI_SPLevelMenu_ResetEvent(). 00241 {
00242 UI_ConfirmMenu_Style(question, UI_CENTER|UI_INVERSE, draw, action);
00243 }
|
Here is the call graph for this function:

|
||||||||||||||||||||
Here is the call graph for this function:

|
Here is the call graph for this function:

|
|
Definition at line 57 of file ui_confirm.c. Referenced by ConfirmMenu_Draw(), ConfirmMenu_Event(), ConfirmMenu_Key(), MessageMenu_Draw(), UI_ConfirmMenu_Style(), and UI_Message(). |
1.3.9.1