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

Go to the source code of this file.
Data Structures | |
| struct | rankstatus_t |
Defines | |
| #define | ID_MESSAGE 100 |
| #define | ID_OK 101 |
| #define | RANKSTATUS_FRAME "menu/art/cut_frame" |
Functions | |
| void | RankStatus_Cache (void) |
| void | RankStatus_MenuEvent (void *ptr, int event) |
| void | RankStatus_MenuInit (void) |
| void | UI_RankStatusMenu (void) |
Variables | |
| vec4_t | s_rankingstatus_color_prompt = {1.00, 0.43, 0.00, 1.00} |
| rankstatus_t | s_rankstatus |
| menuframework_s | s_rankstatus_menu |
| char * | s_rankstatus_message = NULL |
| menuaction_s | s_rankstatus_ok |
| grank_status_t | s_status = 0 |
|
|
Definition at line 32 of file ui_rankstatus.c. |
|
|
Definition at line 33 of file ui_rankstatus.c. Referenced by RankStatus_MenuEvent(). |
|
|
Definition at line 30 of file ui_rankstatus.c. Referenced by RankStatus_Cache(). |
|
|
Definition at line 158 of file ui_rankstatus.c. References RANKSTATUS_FRAME, and trap_R_RegisterShaderNoMip(). 00158 {
00159 trap_R_RegisterShaderNoMip( RANKSTATUS_FRAME );
00160 }
|
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 59 of file ui_rankstatus.c. References ID_OK, UI_LoginMenu(), UI_PopMenu(), UI_RankingsMenu(), and UI_SignupMenu(). 00059 {
00060 if( event != QM_ACTIVATED ) {
00061 return;
00062 }
00063
00064 switch( ((menucommon_s*)ptr)->id ) {
00065 case ID_OK:
00066 UI_PopMenu();
00067
00068 switch( s_status )
00069 {
00070 case QGR_STATUS_NO_USER:
00071 UI_RankingsMenu();
00072 break;
00073 case QGR_STATUS_BAD_PASSWORD:
00074 UI_RankingsMenu();
00075 UI_LoginMenu();
00076 break;
00077 case QGR_STATUS_USER_EXISTS:
00078 UI_RankingsMenu();
00079 UI_SignupMenu();
00080 break;
00081 case QGR_STATUS_NO_MEMBERSHIP:
00082 UI_RankingsMenu();
00083 break;
00084 case QGR_STATUS_TIMEOUT:
00085 UI_RankingsMenu();
00086 break;
00087 case QGR_STATUS_INVALIDUSER:
00088 UI_RankingsMenu();
00089 break;
00090 case QGR_STATUS_ERROR:
00091 UI_RankingsMenu();
00092 break;
00093 default:
00094 break;
00095 }
00096
00097 break;
00098 }
00099 }
|
Here is the call graph for this function:

|
Here is the call graph for this function:

|
|
Definition at line 168 of file ui_rankstatus.c. References rankstatus_t::menu, RankStatus_MenuInit(), s_rankstatus, s_rankstatus_message, s_status, trap_Cvar_VariableValue(), UI_ForceMenuOff(), and UI_PushMenu(). 00168 {
00169
00170 s_status = (grank_status_t)trap_Cvar_VariableValue("client_status");
00171
00172 switch( s_status )
00173 {
00174 case QGR_STATUS_NEW:
00175 return;
00176 case QGR_STATUS_PENDING:
00177 // GRANK_FIXME
00178 return;
00179 case QGR_STATUS_NO_USER:
00180 // GRANK_FIXME - get this when user exists
00181 s_rankstatus_message = "Username unavailable";
00182 break;
00183 case QGR_STATUS_BAD_PASSWORD:
00184 s_rankstatus_message = "Invalid password";
00185 break;
00186 case QGR_STATUS_TIMEOUT:
00187 s_rankstatus_message = "Timed out";
00188 break;
00189 case QGR_STATUS_NO_MEMBERSHIP:
00190 s_rankstatus_message = "No membership";
00191 break;
00192 case QGR_STATUS_INVALIDUSER:
00193 s_rankstatus_message = "Validation failed";
00194 break;
00195 case QGR_STATUS_ERROR:
00196 s_rankstatus_message = "Error";
00197 break;
00198 case QGR_STATUS_SPECTATOR:
00199 case QGR_STATUS_ACTIVE:
00200 UI_ForceMenuOff();
00201 return;
00202 default:
00203 return;
00204 }
00205 RankStatus_MenuInit();
00206 trap_CL_UI_RankUserReset();
00207 UI_PushMenu ( &s_rankstatus.menu );
00208 }
|
Here is the call graph for this function:

|
|
Definition at line 52 of file ui_rankstatus.c. |
|
|
Definition at line 44 of file ui_rankstatus.c. Referenced by RankStatus_MenuInit(), and UI_RankStatusMenu(). |
|
|
Definition at line 46 of file ui_rankstatus.c. |
|
|
Definition at line 50 of file ui_rankstatus.c. Referenced by UI_RankStatusMenu(). |
|
|
Definition at line 47 of file ui_rankstatus.c. |
|
|
Definition at line 49 of file ui_rankstatus.c. Referenced by UI_RankStatusMenu(). |
1.3.9.1