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

Go to the source code of this file.
Data Structures | |
| struct | levelMenuInfo_t |
Defines | |
| #define | ART_ARROW "menu/art/narrow_0" |
| #define | ART_ARROW_FOCUS "menu/art/narrow_1" |
| #define | ART_BACK0 "menu/art/back_0" |
| #define | ART_BACK1 "menu/art/back_1" |
| #define | ART_CUSTOM0 "menu/art/skirmish_0" |
| #define | ART_CUSTOM1 "menu/art/skirmish_1" |
| #define | ART_FIGHT0 "menu/art/fight_0" |
| #define | ART_FIGHT1 "menu/art/fight_1" |
| #define | ART_LEVELFRAME_FOCUS "menu/art/maps_select" |
| #define | ART_LEVELFRAME_SELECTED "menu/art/maps_selected" |
| #define | ART_MAP_COMPLETE1 "menu/art/level_complete1" |
| #define | ART_MAP_COMPLETE2 "menu/art/level_complete2" |
| #define | ART_MAP_COMPLETE3 "menu/art/level_complete3" |
| #define | ART_MAP_COMPLETE4 "menu/art/level_complete4" |
| #define | ART_MAP_COMPLETE5 "menu/art/level_complete5" |
| #define | ART_MAP_UNKNOWN "menu/art/unknownmap" |
| #define | ART_RESET0 "menu/art/reset_0" |
| #define | ART_RESET1 "menu/art/reset_1" |
| #define | AWARDS_Y (PLAYER_Y + 26) |
| #define | ID_AWARD1 17 |
| #define | ID_AWARD2 18 |
| #define | ID_AWARD3 19 |
| #define | ID_AWARD4 20 |
| #define | ID_AWARD5 21 |
| #define | ID_AWARD6 22 |
| #define | ID_BACK 23 |
| #define | ID_CUSTOM 25 |
| #define | ID_LEFTARROW 10 |
| #define | ID_NEXT 26 |
| #define | ID_PICTURE0 11 |
| #define | ID_PICTURE1 12 |
| #define | ID_PICTURE2 13 |
| #define | ID_PICTURE3 14 |
| #define | ID_PLAYERPIC 16 |
| #define | ID_RESET 24 |
| #define | ID_RIGHTARROW 15 |
| #define | LEVEL_DESC_LEFT_MARGIN 332 |
| #define | PLAYER_Y 314 |
Functions | |
| void | PlayerIcon (const char *modelAndSkin, char *iconName, int iconNameMaxSize) |
| qhandle_t | PlayerIconHandle (const char *modelAndSkin) |
| void | UI_SPLevelMenu (void) |
| void | UI_SPLevelMenu_AwardEvent (void *ptr, int notification) |
| void | UI_SPLevelMenu_BackEvent (void *ptr, int notification) |
| void | UI_SPLevelMenu_Cache (void) |
| void | UI_SPLevelMenu_CustomEvent (void *ptr, int notification) |
| void | UI_SPLevelMenu_f (void) |
| void | UI_SPLevelMenu_Init (void) |
| void | UI_SPLevelMenu_LeftArrowEvent (void *ptr, int notification) |
| void | UI_SPLevelMenu_LevelEvent (void *ptr, int notification) |
| void | UI_SPLevelMenu_MenuDraw (void) |
| void | UI_SPLevelMenu_NextEvent (void *ptr, int notification) |
| void | UI_SPLevelMenu_PlayerEvent (void *ptr, int notification) |
| void | UI_SPLevelMenu_ReInit (void) |
| void | UI_SPLevelMenu_ResetAction (qboolean result) |
| void | UI_SPLevelMenu_ResetDraw (void) |
| void | UI_SPLevelMenu_ResetEvent (void *ptr, int event) |
| void | UI_SPLevelMenu_RightArrowEvent (void *ptr, int notification) |
| void | UI_SPLevelMenu_SetBots (void) |
| void | UI_SPLevelMenu_SetMenuArena (int n, int level, const char *arenaInfo) |
| void | UI_SPLevelMenu_SetMenuItems (void) |
Variables | |
| int | currentGame |
| int | currentSet |
| int | finalTier |
| levelMenuInfo_t | levelMenuInfo |
| int | maxTier |
| int | minTier |
| int | selectedArena |
| int | selectedArenaSet |
| int | trainingTier |
|
|
Definition at line 36 of file ui_splevel.c. Referenced by UI_SPLevelMenu_Cache(). |
|
|
Definition at line 37 of file ui_splevel.c. Referenced by UI_SPLevelMenu_Cache(). |
|
|
Definition at line 44 of file ui_splevel.c. |
|
|
Definition at line 45 of file ui_splevel.c. |
|
|
Definition at line 50 of file ui_splevel.c. Referenced by UI_SPLevelMenu_Cache(). |
|
|
Definition at line 51 of file ui_splevel.c. Referenced by UI_SPLevelMenu_Cache(). |
|
|
Definition at line 46 of file ui_splevel.c. |
|
|
Definition at line 47 of file ui_splevel.c. |
|
|
Definition at line 34 of file ui_splevel.c. Referenced by UI_SPLevelMenu_Cache(). |
|
|
Definition at line 35 of file ui_splevel.c. Referenced by UI_SPLevelMenu_Cache(). |
|
|
Definition at line 39 of file ui_splevel.c. Referenced by UI_SPLevelMenu_Cache(), and UI_SPSkillMenu_Cache(). |
|
|
Definition at line 40 of file ui_splevel.c. Referenced by UI_SPLevelMenu_Cache(), and UI_SPSkillMenu_Cache(). |
|
|
Definition at line 41 of file ui_splevel.c. Referenced by UI_SPLevelMenu_Cache(), and UI_SPSkillMenu_Cache(). |
|
|
Definition at line 42 of file ui_splevel.c. Referenced by UI_SPLevelMenu_Cache(), and UI_SPSkillMenu_Cache(). |
|
|
Definition at line 43 of file ui_splevel.c. Referenced by UI_SPLevelMenu_Cache(), and UI_SPSkillMenu_Cache(). |
|
|
Definition at line 38 of file ui_splevel.c. Referenced by UI_SPLevelMenu_Cache(), and UI_SPLevelMenu_SetMenuArena(). |
|
|
Definition at line 48 of file ui_splevel.c. Referenced by UI_SPLevelMenu_Cache(). |
|
|
Definition at line 49 of file ui_splevel.c. Referenced by UI_SPLevelMenu_Cache(). |
|
|
Definition at line 72 of file ui_splevel.c. |
|
|
Definition at line 60 of file ui_splevel.c. Referenced by UI_SPLevelMenu_Init(). |
|
|
Definition at line 61 of file ui_splevel.c. |
|
|
Definition at line 62 of file ui_splevel.c. |
|
|
Definition at line 63 of file ui_splevel.c. |
|
|
Definition at line 64 of file ui_splevel.c. |
|
|
Definition at line 65 of file ui_splevel.c. |
|
|
Definition at line 66 of file ui_splevel.c. |
|
|
Definition at line 68 of file ui_splevel.c. |
|
|
Definition at line 53 of file ui_splevel.c. |
|
|
Definition at line 69 of file ui_splevel.c. |
|
|
Definition at line 54 of file ui_splevel.c. |
|
|
Definition at line 55 of file ui_splevel.c. |
|
|
Definition at line 56 of file ui_splevel.c. |
|
|
Definition at line 57 of file ui_splevel.c. |
|
|
Definition at line 59 of file ui_splevel.c. |
|
|
Definition at line 67 of file ui_splevel.c. |
|
|
Definition at line 58 of file ui_splevel.c. |
|
|
Definition at line 533 of file ui_splevel.c. |
|
|
Definition at line 71 of file ui_splevel.c. Referenced by UI_SPLevelMenu_MenuDraw(). |
|
||||||||||||||||
|
Definition at line 128 of file ui_splevel.c. References Com_sprintf(), Q_stricmp(), Q_strncpyz(), Q_strrchr(), and trap_R_RegisterShaderNoMip(). Referenced by PlayerIconHandle(), UI_SPLevelMenu_Init(), and UI_SPLevelMenu_MenuDraw(). 00128 {
00129 char *skin;
00130 char model[MAX_QPATH];
00131
00132 Q_strncpyz( model, modelAndSkin, sizeof(model));
00133 skin = Q_strrchr( model, '/' );
00134 if ( skin ) {
00135 *skin++ = '\0';
00136 }
00137 else {
00138 skin = "default";
00139 }
00140
00141 Com_sprintf(iconName, iconNameMaxSize, "models/players/%s/icon_%s.tga", model, skin );
00142
00143 if( !trap_R_RegisterShaderNoMip( iconName ) && Q_stricmp( skin, "default" ) != 0 ) {
00144 Com_sprintf(iconName, iconNameMaxSize, "models/players/%s/icon_default.tga", model );
00145 }
00146 }
|
Here is the call graph for this function:

|
|
Definition at line 154 of file ui_splevel.c. References PlayerIcon(), qhandle_t, and trap_R_RegisterShaderNoMip(). Referenced by UI_SPLevelMenu_SetBots(). 00154 {
00155 char iconName[MAX_QPATH];
00156
00157 PlayerIcon( modelAndSkin, iconName, sizeof(iconName) );
00158 return trap_R_RegisterShaderNoMip( iconName );
00159 }
|
Here is the call graph for this function:

|
|
Definition at line 938 of file ui_splevel.c. References atoi, currentGame, currentSet, finalTier, Info_ValueForKey(), levelMenuInfo_t::item_next, level, levelMenuInfo, maxTier, levelMenuInfo_t::menu, Menu_SetCursorToItem(), minTier, trainingTier, UI_GetCurrentGame(), UI_GetNumSPArenas(), UI_GetNumSPTiers(), UI_GetSpecialArenaInfo(), UI_PushMenu(), and UI_SPLevelMenu_Init(). 00938 {
00939 int level;
00940 int trainingLevel;
00941 const char *arenaInfo;
00942
00943 trainingTier = -1;
00944 arenaInfo = UI_GetSpecialArenaInfo( "training" );
00945 if( arenaInfo ) {
00946 minTier = trainingTier;
00947 trainingLevel = atoi( Info_ValueForKey( arenaInfo, "num" ) );
00948 }
00949 else {
00950 minTier = 0;
00951 trainingLevel = -2;
00952 }
00953
00954 finalTier = UI_GetNumSPTiers();
00955 arenaInfo = UI_GetSpecialArenaInfo( "final" );
00956 if( arenaInfo ) {
00957 maxTier = finalTier;
00958 }
00959 else {
00960 maxTier = finalTier - 1;
00961 if( maxTier < minTier ) {
00962 maxTier = minTier;
00963 }
00964 }
00965
00966 level = UI_GetCurrentGame();
00967 if ( level == -1 ) {
00968 level = UI_GetNumSPArenas() - 1;
00969 if( maxTier == finalTier ) {
00970 level++;
00971 }
00972 }
00973
00974 if( level == trainingLevel ) {
00975 currentSet = -1;
00976 currentGame = 0;
00977 }
00978 else {
00979 currentSet = level / ARENAS_PER_TIER;
00980 currentGame = level % ARENAS_PER_TIER;
00981 }
00982
00983 UI_SPLevelMenu_Init();
00984 UI_PushMenu( &levelMenuInfo.menu );
00985 Menu_SetCursorToItem( &levelMenuInfo.menu, &levelMenuInfo.item_next );
00986 }
|
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 462 of file ui_splevel.c. References levelMenuInfo_t::awardSounds, CHAN_ANNOUNCER, levelMenuInfo, n, and trap_S_StartLocalSound(). 00462 {
00463 int n;
00464
00465 if (notification != QM_ACTIVATED) {
00466 return;
00467 }
00468
00469 n = ((menucommon_s*)ptr)->id - ID_AWARD1;
00470 trap_S_StartLocalSound( levelMenuInfo.awardSounds[n], CHAN_ANNOUNCER );
00471 }
|
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 501 of file ui_splevel.c. References selectedArena, and UI_PopMenu(). 00501 {
00502 if (notification != QM_ACTIVATED) {
00503 return;
00504 }
00505
00506 if ( selectedArena == -1 ) {
00507 selectedArena = 0;
00508 }
00509
00510 UI_PopMenu();
00511 }
|
Here is the call graph for this function:

|
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 519 of file ui_splevel.c. References qfalse, and UI_StartServerMenu(). 00519 {
00520 if (notification != QM_ACTIVATED) {
00521 return;
00522 }
00523
00524 UI_StartServerMenu( qfalse );
00525 }
|
Here is the call graph for this function:

|
|
Definition at line 994 of file ui_splevel.c. References KEYCATCH_UI, uiStatic_t::menusp, trap_Key_SetCatcher(), UI_SPLevelMenu(), and uis. 00994 {
00995 trap_Key_SetCatcher( KEYCATCH_UI );
00996 uis.menusp = 0;
00997 UI_SPLevelMenu();
00998 }
|
Here is the call graph for this function:

|