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

Go to the source code of this file.
Data Structures | |
| struct | specifyleague_t |
| struct | table_t |
Defines | |
| #define | GLOBALRANKINGS_LETTERS "menu/art/gr/grletters" |
| #define | GLOBALRANKINGS_LOGO "menu/art/gr/grlogo" |
| #define | ID_SPECIFYLEAGUEBACK 104 |
| #define | ID_SPECIFYLEAGUEDOWN 103 |
| #define | ID_SPECIFYLEAGUELIST 101 |
| #define | ID_SPECIFYLEAGUENAME 100 |
| #define | ID_SPECIFYLEAGUEUP 102 |
| #define | MAX_LEAGUENAME 80 |
| #define | MAX_LISTBOXITEMS 128 |
| #define | MAX_LISTBOXWIDTH 40 |
| #define | SPECIFYLEAGUE_ARROWS0 "menu/art/arrows_vert_0" |
| #define | SPECIFYLEAGUE_BACK0 "menu/art/back_0" |
| #define | SPECIFYLEAGUE_BACK1 "menu/art/back_1" |
| #define | SPECIFYLEAGUE_DOWN "menu/art/arrows_vert_bot" |
| #define | SPECIFYLEAGUE_FRAMEL "menu/art/frame2_l" |
| #define | SPECIFYLEAGUE_FRAMER "menu/art/frame1_r" |
| #define | SPECIFYLEAGUE_UP "menu/art/arrows_vert_top" |
Functions | |
| void | SpecifyLeague_Cache (void) |
| void | SpecifyLeague_Event (void *ptr, int event) |
| void | SpecifyLeague_GetList () |
| void | SpecifyLeague_MenuInit (void) |
| void | UI_SpecifyLeagueMenu (void) |
Variables | |
| table_t | league_table [MAX_LISTBOXITEMS] |
| char * | leaguename_items [MAX_LISTBOXITEMS] |
| char | playername [80] |
| specifyleague_t | s_specifyleague |
| char * | specifyleague_artlist [] |
|
|
Definition at line 41 of file ui_specifyleague.c. |
|
|
Definition at line 40 of file ui_specifyleague.c. |
|
|
Definition at line 47 of file ui_specifyleague.c. Referenced by SpecifyLeague_Event(). |
|
|
Definition at line 46 of file ui_specifyleague.c. Referenced by SpecifyLeague_Event(). |
|
|
Definition at line 44 of file ui_specifyleague.c. Referenced by SpecifyLeague_Event(). |
|
|
Definition at line 43 of file ui_specifyleague.c. Referenced by SpecifyLeague_Event(). |
|
|
Definition at line 45 of file ui_specifyleague.c. Referenced by SpecifyLeague_Event(). |
|
|
Definition at line 31 of file ui_specifyleague.c. |
|
|
Definition at line 29 of file ui_specifyleague.c. |
|
|
Definition at line 30 of file ui_specifyleague.c. |
|
|
Definition at line 37 of file ui_specifyleague.c. |
|
|
Definition at line 35 of file ui_specifyleague.c. |
|
|
Definition at line 36 of file ui_specifyleague.c. |
|
|
Definition at line 39 of file ui_specifyleague.c. |
|
|
Definition at line 33 of file ui_specifyleague.c. |
|
|
Definition at line 34 of file ui_specifyleague.c. |
|
|
Definition at line 38 of file ui_specifyleague.c. |
|
|
Definition at line 310 of file ui_specifyleague.c. References i, specifyleague_artlist, and trap_R_RegisterShaderNoMip(). 00311 {
00312 int i;
00313
00314 // touch all our pics
00315 for (i=0; ;i++)
00316 {
00317 if (!specifyleague_artlist[i])
00318 break;
00319 trap_R_RegisterShaderNoMip(specifyleague_artlist[i]);
00320 }
00321 }
|
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 122 of file ui_specifyleague.c. References mfield_t::buffer, menulist_s::curvalue, menufield_s::field, ID_SPECIFYLEAGUEBACK, ID_SPECIFYLEAGUEDOWN, ID_SPECIFYLEAGUELIST, ID_SPECIFYLEAGUENAME, ID_SPECIFYLEAGUEUP, K_DOWNARROW, K_UPARROW, league_table, specifyleague_t::list, playername, Q_strncmp(), specifyleague_t::rankname, s_specifyleague, ScrollList_Key(), SpecifyLeague_GetList(), strlen(), trap_Cvar_Set(), and UI_PopMenu(). 00123 {
00124 int id;
00125 id = ((menucommon_s*)ptr)->id;
00126 //if( event != QM_ACTIVATED && id != ID_SPECIFYLEAGUELIST ) {
00127 // return;
00128 //}
00129
00130 switch (id)
00131 {
00132 case ID_SPECIFYLEAGUELIST:
00133 if( event == QM_GOTFOCUS ) {
00134 //ArenaServers_UpdatePicture();
00135 }
00136 break;
00137
00138 case ID_SPECIFYLEAGUEUP:
00139 if( event == QM_ACTIVATED )
00140 ScrollList_Key( &s_specifyleague.list, K_UPARROW );
00141 break;
00142
00143 case ID_SPECIFYLEAGUEDOWN:
00144 if( event == QM_ACTIVATED )
00145 ScrollList_Key( &s_specifyleague.list, K_DOWNARROW );
00146 break;
00147
00148 case ID_SPECIFYLEAGUENAME:
00149 if( (event == QM_LOSTFOCUS) &&
00150 (Q_strncmp(playername,
00151 s_specifyleague.rankname.field.buffer,
00152 strlen(s_specifyleague.rankname.field.buffer)) != 0))
00153 {
00154 SpecifyLeague_GetList();
00155 }
00156 break;
00157
00158 case ID_SPECIFYLEAGUEBACK:
00159 if( event == QM_ACTIVATED )
00160 {
00161 trap_Cvar_Set( "sv_leagueName", league_table[s_specifyleague.list.curvalue].leaguename);
00162 UI_PopMenu();
00163 }
00164 break;
00165 }
00166 }
|
Here is the call graph for this function:

|
|
Definition at line 93 of file ui_specifyleague.c. References mfield_t::buffer, count, menufield_s::field, i, league_table, specifyleague_t::list, menulist_s::numitems, playername, Q_strncpyz(), specifyleague_t::rankname, s, s_specifyleague, trap_Cvar_VariableStringBuffer(), and va(). Referenced by SpecifyLeague_Event(), and SpecifyLeague_MenuInit(). 00094 {
00095 int count = 0;
00096 int i;
00097 /* The Player Name has changed. We need to perform another search */
00098 Q_strncpyz( playername,
00099 s_specifyleague.rankname.field.buffer,
00100 sizeof(playername) );
00101
00102 count = trap_CL_UI_RankGetLeauges( playername );
00103
00104 for(i = 0; i < count; i++)
00105 {
00106 char s[MAX_LEAGUENAME];
00107 const char *var;
00108 var = va( "leaguename%i", i+1 );
00109 trap_Cvar_VariableStringBuffer( var, s, sizeof(s) );
00110 Q_strncpyz(league_table[i].leaguename, s, sizeof(league_table[i].leaguename) );
00111 Q_strncpyz(league_table[i].buff, league_table[i].leaguename, sizeof(league_table[i].buff) );
00112 }
00113
00114 s_specifyleague.list.numitems = count;
00115 }
|
Here is the call graph for this function:

|
Here is the call graph for this function:

|
|
Definition at line 328 of file ui_specifyleague.c. References specifyleague_t::menu, s_specifyleague, SpecifyLeague_MenuInit(), and UI_PushMenu(). 00329 {
00330 SpecifyLeague_MenuInit();
00331 UI_PushMenu( &s_specifyleague.menu );
00332 }
|
Here is the call graph for this function:

|
|
Definition at line 89 of file ui_specifyleague.c. Referenced by SpecifyLeague_Event(), SpecifyLeague_GetList(), and SpecifyLeague_MenuInit(). |
|
|
Definition at line 90 of file ui_specifyleague.c. Referenced by SpecifyLeague_MenuInit(). |
|
|
Definition at line 63 of file ui_specifyleague.c. Referenced by SpecifyLeague_Event(), SpecifyLeague_GetList(), and SpecifyLeague_MenuInit(). |
|
|
Definition at line 81 of file ui_specifyleague.c. Referenced by SpecifyLeague_Event(), SpecifyLeague_GetList(), SpecifyLeague_MenuInit(), and UI_SpecifyLeagueMenu(). |
|
|
Initial value:
{
SPECIFYLEAGUE_FRAMEL,
SPECIFYLEAGUE_FRAMER,
SPECIFYLEAGUE_ARROWS0,
SPECIFYLEAGUE_UP,
SPECIFYLEAGUE_DOWN,
SPECIFYLEAGUE_BACK0,
SPECIFYLEAGUE_BACK1,
GLOBALRANKINGS_LOGO,
GLOBALRANKINGS_LETTERS,
NULL
}
Definition at line 49 of file ui_specifyleague.c. Referenced by SpecifyLeague_Cache(). |
1.3.9.1