#include "../game/q_shared.h"#include "../cgame/tr_types.h"#include "ui_public.h"#include "keycodes.h"#include "../game/bg_public.h"#include "ui_shared.h"#include "../namespace_begin.h"#include "../namespace_end.h"Go to the source code of this file.
|
|
Definition at line 1122 of file ui_local.h. |
|
|
Definition at line 582 of file ui_local.h. |
|
|
Definition at line 587 of file ui_local.h. |
|
|
Definition at line 583 of file ui_local.h. |
|
|
Definition at line 584 of file ui_local.h. |
|
|
Definition at line 585 of file ui_local.h. |
|
|
Definition at line 586 of file ui_local.h. |
|
|
Definition at line 95 of file ui_local.h. |
|
|
Definition at line 588 of file ui_local.h. |
|
|
Definition at line 571 of file ui_local.h. |
|
|
Definition at line 563 of file ui_local.h. |
|
|
Definition at line 591 of file ui_local.h. |
|
|
Definition at line 577 of file ui_local.h. |
|
|
Definition at line 98 of file ui_local.h. |
|
|
Definition at line 429 of file ui_local.h. |
|
|
Definition at line 103 of file ui_local.h. Referenced by UI_LoadForceConfig_List(). |
|
|
Definition at line 580 of file ui_local.h. |
|
|
Definition at line 566 of file ui_local.h. |
|
|
Definition at line 564 of file ui_local.h. |
|
|
Definition at line 562 of file ui_local.h. |
|
|
Definition at line 572 of file ui_local.h. |
|
|
Definition at line 575 of file ui_local.h. |
|
|
Definition at line 573 of file ui_local.h. |
|
|
Definition at line 567 of file ui_local.h. Referenced by UI_LoadArenas(). |
|
|
Definition at line 100 of file ui_local.h. |
|
|
Definition at line 101 of file ui_local.h. Referenced by MenuParse_itemDef(). |
|
|
Definition at line 590 of file ui_local.h. |
|
|
Definition at line 592 of file ui_local.h. |
|
|
Definition at line 570 of file ui_local.h. |
|
|
Definition at line 594 of file ui_local.h. |
|
|
Definition at line 593 of file ui_local.h. |
|
|
Definition at line 597 of file ui_local.h. |
|
|
Definition at line 596 of file ui_local.h. |
|
|
Definition at line 578 of file ui_local.h. |
|
|
Definition at line 579 of file ui_local.h. |
|
|
Definition at line 568 of file ui_local.h. |
|
|
Definition at line 574 of file ui_local.h. |
|
|
Definition at line 565 of file ui_local.h. |
|
|
Definition at line 589 of file ui_local.h. |
|
|
Definition at line 107 of file ui_local.h. |
|
|
Definition at line 111 of file ui_local.h. |
|
|
Definition at line 115 of file ui_local.h. |
|
|
Definition at line 109 of file ui_local.h. |
|
|
Definition at line 105 of file ui_local.h. |
|
|
Definition at line 114 of file ui_local.h. |
|
|
Definition at line 110 of file ui_local.h. |
|
|
Definition at line 113 of file ui_local.h. |
|
|
Definition at line 106 of file ui_local.h. |
|
|
Definition at line 108 of file ui_local.h. |
|
|
Definition at line 112 of file ui_local.h. |
|
|
Definition at line 569 of file ui_local.h. |
|
|
Definition at line 142 of file ui_local.h. |
|
|
Definition at line 140 of file ui_local.h. |
|
|
Definition at line 141 of file ui_local.h. |
|
|
Definition at line 117 of file ui_local.h. |
|
|
Definition at line 120 of file ui_local.h. |
|
|
Definition at line 130 of file ui_local.h. |
|
|
Definition at line 126 of file ui_local.h. |
|
|
Definition at line 129 of file ui_local.h. |
|
|
Definition at line 123 of file ui_local.h. |
|
|
Definition at line 124 of file ui_local.h. |
|
|
Definition at line 131 of file ui_local.h. |
|
|
Definition at line 119 of file ui_local.h. |
|
|
Definition at line 135 of file ui_local.h. |
|
|
Definition at line 128 of file ui_local.h. |
|
|
Definition at line 132 of file ui_local.h. |
|
|
Definition at line 127 of file ui_local.h. |
|
|
Definition at line 122 of file ui_local.h. |
|
|
Definition at line 133 of file ui_local.h. |
|
|
Definition at line 134 of file ui_local.h. |
|
|
Definition at line 125 of file ui_local.h. |
|
|
Definition at line 121 of file ui_local.h. |
|
|
Definition at line 137 of file ui_local.h. |
|
|
Definition at line 118 of file ui_local.h. |
|
|
Definition at line 136 of file ui_local.h. |
|
|
Definition at line 94 of file ui_local.h. |
|
|
Definition at line 97 of file ui_local.h. |
|
|
Definition at line 581 of file ui_local.h. |
|
|
Definition at line 576 of file ui_local.h. |
|
|
Definition at line 561 of file ui_local.h. |
|
|
|
|
|
Referenced by UI_ClearScores(), UI_LoadBestScores(), and UI_SetBestScores(). |
|
|
|
|
|
|
|
|
Definition at line 1064 of file ui_local.h.
01064 {
01065 AWARD_ACCURACY,
01066 AWARD_IMPRESSIVE,
01067 AWARD_EXCELLENT,
01068 AWARD_GAUNTLET,
01069 AWARD_FRAGS,
01070 AWARD_PERFECT
01071 } awardType_t;
|
|
|
Definition at line 10406 of file ui_main.c. References GT_TEAM, uiInfo_t::inGameLoad, vmCvar_t::integer, KEYCATCH_UI, Menu_Count(), Menus_ActivateByName(), Menus_CloseAll(), qboolean, qfalse, qtrue, trap_Cvar_Set(), trap_Cvar_VariableStringBuffer(), trap_Cvar_VariableValue(), trap_Key_ClearStates(), trap_Key_GetCatcher(), trap_Key_SetCatcher(), ui_singlePlayerActive, uiInfo, UIMENU_CLASSSEL, UIMENU_CLOSEALL, UIMENU_INGAME, UIMENU_MAIN, UIMENU_NONE, UIMENU_PLAYERCONFIG, UIMENU_PLAYERFORCE, UIMENU_POSTGAME, UIMENU_SIEGEMESSAGE, UIMENU_SIEGEOBJECTIVES, UIMENU_TEAM, UIMENU_VOICECHAT, uiMenuCommand_t, UpdateForceUsed(), and vec3_t. Referenced by UI_ShowPostGame(), and vmMain().
10406 {
10407 char buf[256];
10408
10409 // this should be the ONLY way the menu system is brought up
10410 // enusure minumum menu data is cached
10411 if (Menu_Count() > 0) {
10412 vec3_t v;
10413 v[0] = v[1] = v[2] = 0;
10414 switch ( menu ) {
10415 case UIMENU_NONE:
10416 trap_Key_SetCatcher( trap_Key_GetCatcher() & ~KEYCATCH_UI );
10417 trap_Key_ClearStates();
10418 trap_Cvar_Set( "cl_paused", "0" );
10419 Menus_CloseAll();
10420
10421 return;
10422 case UIMENU_MAIN:
10423 {
10424 qboolean active = qfalse;
10425
10426 //trap_Cvar_Set( "sv_killserver", "1" );
10427 trap_Key_SetCatcher( KEYCATCH_UI );
10428 //trap_S_StartLocalSound( trap_S_RegisterSound("sound/misc/menu_background.wav", qfalse) , CHAN_LOCAL_SOUND );
10429 //trap_S_StartBackgroundTrack("sound/misc/menu_background.wav", NULL);
10430 if (uiInfo.inGameLoad)
10431 {
10432 // UI_LoadNonIngame();
10433 }
10434
10435 Menus_CloseAll();
10436 Menus_ActivateByName("main");
10437 trap_Cvar_VariableStringBuffer("com_errorMessage", buf, sizeof(buf));
10438
10439 if (buf[0])
10440 {
10441 if (!ui_singlePlayerActive.integer)
10442 {
10443 #ifdef _XBOX
10444 // Display Xbox popups after an ERR_DROP?
10445 UI_xboxErrorPopup( XB_POPUP_COM_ERROR );
10446 #else
10447 Menus_ActivateByName("error_popmenu");
10448 #endif
10449 active = qtrue;
10450 }
10451 else
10452 {
10453 trap_Cvar_Set("com_errorMessage", "");
10454 }
10455 }
10456 return;
10457 }
10458
10459 case UIMENU_TEAM:
10460 trap_Key_SetCatcher( KEYCATCH_UI );
10461 Menus_ActivateByName("team");
10462 return;
10463 case UIMENU_POSTGAME:
10464 //trap_Cvar_Set( "sv_killserver", "1" );
10465 trap_Key_SetCatcher( KEYCATCH_UI );
10466 if (uiInfo.inGameLoad) {
10467 // UI_LoadNonIngame();
10468 }
10469 Menus_CloseAll();
10470 Menus_ActivateByName("endofgame");
10471 //UI_ConfirmMenu( "Bad CD Key", NULL, NeedCDKeyAction );
10472 return;
10473 case UIMENU_INGAME:
10474 trap_Cvar_Set( "cl_paused", "1" );
10475 trap_Key_SetCatcher( KEYCATCH_UI );
10476 UI_BuildPlayerList();
10477 Menus_CloseAll();
10478 Menus_ActivateByName("ingame");
10479 return;
10480 case UIMENU_PLAYERCONFIG:
10481 // trap_Cvar_Set( "cl_paused", "1" );
10482 trap_Key_SetCatcher( KEYCATCH_UI );
10483 UI_BuildPlayerList();
10484 Menus_CloseAll();
10485 Menus_ActivateByName("ingame_player");
10486 UpdateForceUsed();
10487 return;
10488 case UIMENU_PLAYERFORCE:
10489 // trap_Cvar_Set( "cl_paused", "1" );
10490 trap_Key_SetCatcher( KEYCATCH_UI );
10491 UI_BuildPlayerList();
10492 Menus_CloseAll();
10493 Menus_ActivateByName("ingame_playerforce");
10494 UpdateForceUsed();
10495 return;
10496 case UIMENU_SIEGEMESSAGE:
10497 // trap_Cvar_Set( "cl_paused", "1" );
10498 trap_Key_SetCatcher( KEYCATCH_UI );
10499 Menus_CloseAll();
10500 Menus_ActivateByName("siege_popmenu");
10501 return;
10502 case UIMENU_SIEGEOBJECTIVES:
10503 // trap_Cvar_Set( "cl_paused", "1" );
10504 trap_Key_SetCatcher( KEYCATCH_UI );
10505 Menus_CloseAll();
10506 Menus_ActivateByName("ingame_siegeobjectives");
10507 return;
10508 case UIMENU_VOICECHAT:
10509 // trap_Cvar_Set( "cl_paused", "1" );
10510 // No chatin non-siege games.
10511
10512 if (trap_Cvar_VariableValue( "g_gametype" ) < GT_TEAM)
10513 {
10514 return;
10515 }
10516
10517 trap_Key_SetCatcher( KEYCATCH_UI );
10518 Menus_CloseAll();
10519 Menus_ActivateByName("ingame_voicechat");
10520 return;
10521 case UIMENU_CLOSEALL:
10522 Menus_CloseAll();
10523 return;
10524 case UIMENU_CLASSSEL:
10525 trap_Key_SetCatcher( KEYCATCH_UI );
10526 Menus_CloseAll();
10527 Menus_ActivateByName("ingame_siegeclass");
10528 return;
10529 }
10530 }
10531 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
||||||||||||||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
Definition at line 317 of file cg_syscalls.c.
00318 {
00319 return syscall( CG_ANYLANGUAGE_READCHARFROMSTRING, psText, piAdvanceCount, pbIsTrailingPunctuation);
00320 }
|
|
|
Definition at line 71 of file cg_syscalls.c. References CG_ARGC, and UI_ARGC.
00071 {
00072 return syscall( CG_ARGC );
00073 }
|
|
||||||||||||||||
|
Definition at line 75 of file cg_syscalls.c. References CG_ARGV, and UI_ARGV. Referenced by CG_Argv(), CG_TargetCommand_f(), ClientCommand(), Cmd_CallTeamVote_f(), Cmd_CallVote_f(), Cmd_DebugSetBodyAnim_f(), Cmd_DebugSetSaberMove_f(), Cmd_DuelTeam_f(), Cmd_Follow_f(), Cmd_ForceChanged_f(), Cmd_GameCommand_f(), Cmd_Give_f(), Cmd_NPC_f(), Cmd_SetViewpos_f(), Cmd_SiegeClass_f(), Cmd_Team_f(), Cmd_TeamTask_f(), Cmd_TeamVote_f(), Cmd_Vote_f(), ConcatArgs(), ConsoleCommand(), NPC_Kill_f(), NPC_Spawn_f(), Svcmd_AddBot_f(), Svcmd_AddIP_f(), Svcmd_ForceTeam_f(), Svcmd_Nav_f(), Svcmd_RemoveIP_f(), and UI_Argv().
00075 {
00076 syscall( CG_ARGV, n, buffer, bufferLength );
00077 }
|
|
|
Definition at line 602 of file cg_syscalls.c. References CG_CIN_DRAWCINEMATIC, and UI_CIN_DRAWCINEMATIC.
00602 {
00603 syscall(CG_CIN_DRAWCINEMATIC, handle);
00604 }
|
|
||||||||||||||||||||||||||||
|
Definition at line 584 of file cg_syscalls.c. References CG_CIN_PLAYCINEMATIC, and UI_CIN_PLAYCINEMATIC. Referenced by UI_FeederSelection().
00584 {
00585 return syscall(CG_CIN_PLAYCINEMATIC, arg0, xpos, ypos, width, height, bits);
00586 }
|
|
|
Definition at line 596 of file cg_syscalls.c. References CG_CIN_RUNCINEMATIC, e_status, and UI_CIN_RUNCINEMATIC.
00596 {
00597 return syscall(CG_CIN_RUNCINEMATIC, handle);
00598 }
|
|
||||||||||||||||||||||||
|
Definition at line 608 of file cg_syscalls.c. References CG_CIN_SETEXTENTS, and UI_CIN_SETEXTENTS.
00608 {
00609 syscall(CG_CIN_SETEXTENTS, handle, x, y, w, h);
00610 }
|
|
|
Definition at line 590 of file cg_syscalls.c. References CG_CIN_STOPCINEMATIC, e_status, and UI_CIN_STOPCINEMATIC. Referenced by UI_FeederSelection().
00590 {
00591 return syscall(CG_CIN_STOPCINEMATIC, handle);
00592 }
|
|
||||||||||||||||||||||||||||
|
Definition at line 206 of file ui_syscalls.c. References clipHandle_t, PASSFLOAT(), and UI_CM_LERPTAG.
00206 {
00207 return syscall( UI_CM_LERPTAG, tag, mod, startFrame, endFrame, PASSFLOAT(frac), tagName );
00208 }
|
|
||||||||||||
|
Definition at line 79 of file ui_syscalls.c. References UI_CMD_EXECUTETEXT. Referenced by _UI_Init(), UI_StartDemoLoop(), UI_UpdateClientForcePowers(), and UI_UpdateVideoSetup().
00079 {
00080 syscall( UI_CMD_EXECUTETEXT, exec_when, text );
00081 }
|
|
||||||||||||||||
|
Definition at line 63 of file ui_syscalls.c. References UI_CVAR_CREATE.
00063 {
00064 syscall( UI_CVAR_CREATE, var_name, var_value, flags );
00065 }
|
|
||||||||||||||||
|
Definition at line 67 of file ui_syscalls.c. References UI_CVAR_INFOSTRINGBUFFER.
00067 {
00068 syscall( UI_CVAR_INFOSTRINGBUFFER, bit, buffer, bufsize );
00069 }
|
|
||||||||||||||||||||
|
Definition at line 50 of file cg_syscalls.c. References CG_CVAR_REGISTER, and UI_CVAR_REGISTER. Referenced by _UI_Init(), AcceptBotCommand(), BG_AddPredictableEventToPlayerstate(), BotAISetup(), CG_RegisterCvars(), G_InitBots(), G_InitGame(), G_RefreshNextMap(), G_RegisterCvars(), InitSiegeMode(), LoadPath_ThisLevel(), NAV_CheckCalcPaths(), UI_GetVideoSetup(), UI_LoadBots(), and UI_RegisterCvars().
00050 {
00051 syscall( CG_CVAR_REGISTER, vmCvar, varName, defaultValue, flags );
00052 }
|
|
|
Definition at line 59 of file ui_syscalls.c. References name, and UI_CVAR_RESET.
00059 {
00060 syscall( UI_CVAR_RESET, name );
00061 }
|
|
||||||||||||
|
||||||||||||
|
Definition at line 55 of file ui_syscalls.c. References PASSFLOAT(), and UI_CVAR_SETVALUE.
00055 {
00056 syscall( UI_CVAR_SETVALUE, var_name, PASSFLOAT( value ) );
00057 }
|
|
|
Definition at line 54 of file cg_syscalls.c. References CG_CVAR_UPDATE, and UI_CVAR_UPDATE. Referenced by BotAI(), BotAISetup(), BotAIStartFrame(), CalculateWeightGoals(), CG_UpdateCvars(), G_CheckMinimumPlayers(), G_UpdateCvars(), GetIdealDestination(), HolocronUpdate(), JediMasterUpdate(), LoadPath_ThisLevel(), RepairPaths(), and UI_UpdateCvars().
00054 {
00055 syscall( CG_CVAR_UPDATE, vmCvar );
00056 }
|
|
||||||||||||||||
|
Definition at line 62 of file cg_syscalls.c. References CG_CVAR_VARIABLESTRINGBUFFER, and UI_CVAR_VARIABLESTRINGBUFFER. Referenced by _UI_SetActiveMenu(), CG_DrawInformation(), CG_DrawRadar(), CG_Init(), CG_InitSiegeMode(), CG_NewClientInfo(), CG_RegisterCvars(), CG_SiegeBriefingDisplay(), Cmd_CallVote_f(), FX_DrawPortableShield(), G_InitWorldSession(), G_ReadSessionData(), G_RunFrame(), ItemParse_asset_model(), NPC_UpdateAngles(), Q3_PlaySound(), SP_terrain(), trap_Cvar_VariableValue(), trap_R_RegisterShaderNoMip(), UI_Cvar_VariableString(), UI_DrawConnectScreen(), UI_FeederSelection(), UI_GetSaberForMenu(), UI_SaberDrawBlade(), UI_SaberDrawBlades(), UI_SetSiegeObjectiveGraphicPos(), UI_SetSiegeTeams(), UI_UpdateCharacterSkin(), and WP_ResistForcePush().
00062 {
00063 syscall( CG_CVAR_VARIABLESTRINGBUFFER, var_name, buffer, bufsize );
00064 }
|
|
|
Definition at line 36 of file g_bot.c. References atof(), trap_Cvar_VariableStringBuffer(), and UI_CVAR_VARIABLEVALUE. Referenced by _UI_Init(), _UI_SetActiveMenu(), G_AddRandomBot(), UI_ClampMaxPlayers(), UI_ConsoleCommand(), UI_FeederSelection(), UI_FindCurrentSiegeTeamClass(), UI_ForceConfigHandle(), UI_ForceSide_HandleKey(), UI_JediNonJedi_HandleKey(), UI_LoadBestScores(), UI_ParseInfos(), UI_ReadLegalForce(), UpdateForceStatus(), and UpdateForceUsed().
00036 {
00037 char buf[128];
00038
00039 trap_Cvar_VariableStringBuffer(var_name, buf, sizeof(buf));
00040 return atof(buf);
00041 }
|
|
|
Definition at line 25 of file cg_syscalls.c. References CG_ERROR, and UI_ERROR. Referenced by CG_Error(), Com_Error(), G_Error(), and UI_LoadMenus().
00025 {
00026 syscall( CG_ERROR, fmt );
00027 }
|
|
|
Definition at line 95 of file cg_syscalls.c. References CG_FS_FCLOSEFILE, fileHandle_t, and UI_FS_FCLOSEFILE. Referenced by BG_FileExists(), BG_ParseAnimationEvtFile(), BG_ParseAnimationFile(), BG_SiegeParseClassFile(), BG_SiegeParseTeamFile(), BG_VehicleLoadParms(), BG_VehWeaponLoadParms(), BotUtilizePersonality(), CG_GetMenuBuffer(), CG_InitSiegeMode(), CG_LoadCISounds(), CG_LoadMenus(), CG_ParseSurfsFile(), G_LogWeaponOutput(), G_ModelIndex(), G_ShutdownGame(), GetMenuBuffer(), InitSiegeMode(), LoadPathData(), NPC_LoadParms(), SavePathData(), UI_ClearScores(), UI_ForceConfigHandle(), UI_hasSkinForBase(), UI_LoadBestScores(), UI_ParseAnimationFile(), UI_ParseInfos(), UI_SaberLoadParms(), UI_SaveForceTemplate(), UI_SetSiegeTeams(), and WP_SaberLoadParms().
00095 {
00096 syscall( CG_FS_FCLOSEFILE, f );
00097 }
|
|
||||||||||||||||
|
Definition at line 83 of file cg_syscalls.c. References CG_FS_FOPENFILE, fileHandle_t, and UI_FS_FOPENFILE. Referenced by BG_FileExists(), BG_ParseAnimationEvtFile(), BG_ParseAnimationFile(), BG_SiegeParseClassFile(), BG_SiegeParseTeamFile(), BG_VehicleLoadParms(), BG_VehWeaponLoadParms(), BotUtilizePersonality(), CG_GetMenuBuffer(), CG_InitSiegeMode(), CG_LoadCISounds(), CG_LoadMenus(), CG_ParseSurfsFile(), G_InitGame(), G_LogWeaponOutput(), G_ModelIndex(), GetMenuBuffer(), InitSiegeMode(), LoadPathData(), NPC_LoadParms(), SavePathData(), UI_ClearScores(), UI_ForceConfigHandle(), UI_hasSkinForBase(), UI_LoadBestScores(), UI_ParseAnimationFile(), UI_ParseInfos(), UI_SaberLoadParms(), UI_SaveForceTemplate(), UI_SetSiegeTeams(), and WP_SaberLoadParms().
00083 {
00084 return syscall( CG_FS_FOPENFILE, qpath, f, mode );
00085 }
|
|
||||||||||||||||||||
|
Definition at line 99 of file cg_syscalls.c. References CG_FS_GETFILELIST, and UI_FS_GETFILELIST. Referenced by BG_SiegeLoadClasses(), BG_SiegeLoadTeams(), BG_VehicleLoadParms(), BG_VehWeaponLoadParms(), NPC_LoadParms(), UI_ClearScores(), UI_LoadArenas(), UI_LoadBots(), UI_LoadForceConfig_List(), UI_SaberLoadParms(), and WP_SaberLoadParms().
00099 {
00100 return syscall( CG_FS_GETFILELIST, path, extension, listbuf, bufsize );
00101 }
|
|
||||||||||||||||
|
Definition at line 87 of file cg_syscalls.c. References CG_FS_READ, fileHandle_t, and UI_FS_READ. Referenced by BG_ParseAnimationEvtFile(), BG_ParseAnimationFile(), BG_SiegeParseClassFile(), BG_SiegeParseTeamFile(), BG_VehicleLoadParms(), BG_VehWeaponLoadParms(), BotUtilizePersonality(), CG_GetMenuBuffer(), CG_InitSiegeMode(), CG_LoadCISounds(), CG_LoadMenus(), CG_ParseSurfsFile(), GetMenuBuffer(), InitSiegeMode(), LoadPathData(), NPC_LoadParms(), UI_ForceConfigHandle(), UI_LoadBestScores(), UI_ParseAnimationFile(), UI_SaberLoadParms(), UI_SetSiegeTeams(), and WP_SaberLoadParms().
00087 {
00088 syscall( CG_FS_READ, buffer, len, f );
00089 }
|
|
||||||||||||||||
|
Definition at line 91 of file cg_syscalls.c. References CG_FS_WRITE, fileHandle_t, and UI_FS_WRITE. Referenced by G_LogPrintf(), G_LogWeaponOutput(), SavePathData(), UI_ClearScores(), and UI_SaveForceTemplate().
00091 {
00092 syscall( CG_FS_WRITE, buffer, len, f );
00093 }
|
|
|
Definition at line 258 of file ui_syscalls.c. References UI_GETCLIENTSTATE. Referenced by UI_DrawConnectScreen().
00258 {
00259 syscall( UI_GETCLIENTSTATE, state );
00260 }
|
|
||||||||||||
|
Definition at line 254 of file ui_syscalls.c. References UI_GETCLIPBOARDDATA.
00254 {
00255 syscall( UI_GETCLIPBOARDDATA, buf, bufsize );
00256 }
|
|
||||||||||||||||
|
Definition at line 266 of file ui_syscalls.c. References UI_GETCONFIGSTRING. Referenced by UI_DrawConnectScreen(), UI_ForceConfigHandle(), UI_ForceSide_HandleKey(), UI_HasSetSaberOnly(), UI_JediNonJedi_HandleKey(), UI_ReadLegalForce(), UI_SetSiegeTeams(), UI_TrueJediEnabled(), and UpdateForceStatus().
00266 {
00267 return syscall( UI_GETCONFIGSTRING, index, buff, buffsize );
00268 }
|
|
|
Definition at line 461 of file cg_syscalls.c. References CG_GETGLCONFIG, and UI_GETGLCONFIG. Referenced by _UI_Init(), and CG_Init().
00461 {
00462 syscall( CG_GETGLCONFIG, glconfig );
00463 }
|
|
|
Definition at line 242 of file ui_syscalls.c. References UI_KEY_CLEARSTATES. Referenced by _UI_KeyEvent(), and _UI_SetActiveMenu().
00242 {
00243 syscall( UI_KEY_CLEARSTATES );
00244 }
|
|
||||||||||||||||
|
Definition at line 222 of file ui_syscalls.c. References UI_KEY_GETBINDINGBUF. Referenced by _UI_Init().
00222 {
00223 syscall( UI_KEY_GETBINDINGBUF, keynum, buf, buflen );
00224 }
|
|
|
Definition at line 529 of file cg_syscalls.c. References CG_KEY_GETCATCHER, and UI_KEY_GETCATCHER.
00529 {
00530 return syscall( CG_KEY_GETCATCHER );
00531 }
|
|
|
Definition at line 234 of file ui_syscalls.c. References qboolean, and UI_KEY_GETOVERSTRIKEMODE. Referenced by _UI_Init().
00234 {
00235 return syscall( UI_KEY_GETOVERSTRIKEMODE );
00236 }
|
|
|
Definition at line 525 of file cg_syscalls.c. References CG_KEY_ISDOWN, qboolean, and UI_KEY_ISDOWN.
00525 {
00526 return syscall( CG_KEY_ISDOWN, keynum );
00527 }
|
|
||||||||||||||||
|
Definition at line 218 of file ui_syscalls.c. References UI_KEY_KEYNUMTOSTRINGBUF. Referenced by _UI_Init().
00218 {
00219 syscall( UI_KEY_KEYNUMTOSTRINGBUF, keynum, buf, buflen );
00220 }
|
|
||||||||||||
|
Definition at line 226 of file ui_syscalls.c. References UI_KEY_SETBINDING. Referenced by _UI_Init().
00226 {
00227 syscall( UI_KEY_SETBINDING, keynum, binding );
00228 }
|
|
|
Definition at line 533 of file cg_syscalls.c. References CG_KEY_SETCATCHER, and UI_KEY_SETCATCHER. Referenced by _UI_KeyEvent(), _UI_SetActiveMenu(), CG_KeyEvent(), CG_MouseEvent(), and UI_ConsoleCommand().
00533 {
00534 syscall( CG_KEY_SETCATCHER, catcher );
00535 }
|
|
|
Definition at line 238 of file ui_syscalls.c. References UI_KEY_SETOVERSTRIKEMODE. Referenced by _UI_Init().
00238 {
00239 syscall( UI_KEY_SETOVERSTRIKEMODE, state );
00240 }
|
|
||||||||||||||||
|
Definition at line 330 of file ui_syscalls.c. References name, and UI_LAN_ADDSERVER.
00330 {
00331 return syscall( UI_LAN_ADDSERVER, source, name, addr );
00332 }
|
|
|
Definition at line 306 of file ui_syscalls.c. References UI_LAN_CLEARPING.
00306 {
00307 syscall( UI_LAN_CLEARPING, n );
00308 }
|
|
||||||||||||||||||||||||
|
Definition at line 338 of file ui_syscalls.c. References UI_LAN_COMPARESERVERS.
00338 {
00339 return syscall( UI_LAN_COMPARESERVERS, source, sortKey, sortDir, s1, s2 );
00340 }
|
|
||||||||||||||||||||
|
Definition at line 310 of file ui_syscalls.c. References UI_LAN_GETPING.
00310 {
00311 syscall( UI_LAN_GETPING, n, buf, buflen, pingtime );
00312 }
|
|
||||||||||||||||
|
Definition at line 314 of file ui_syscalls.c. References UI_LAN_GETPINGINFO.
00314 {
00315 syscall( UI_LAN_GETPINGINFO, n, buf, buflen );
00316 }
|
|
|
Definition at line 286 of file ui_syscalls.c. References UI_LAN_GETPINGQUEUECOUNT.
00286 {
00287 return syscall( UI_LAN_GETPINGQUEUECOUNT );
00288 }
|
|
||||||||||||||||||||
|
Definition at line 274 of file ui_syscalls.c. References UI_LAN_GETSERVERADDRESSSTRING.
00274 {
00275 syscall( UI_LAN_GETSERVERADDRESSSTRING, source, n, buf, buflen );
00276 }
|
|
|
Definition at line 270 of file ui_syscalls.c. References UI_LAN_GETSERVERCOUNT.
00270 {
00271 return syscall( UI_LAN_GETSERVERCOUNT, source );
00272 }
|
|
||||||||||||||||||||
|
Definition at line 278 of file ui_syscalls.c. References UI_LAN_GETSERVERINFO. Referenced by UI_FeederSelection().
00278 {
00279 syscall( UI_LAN_GETSERVERINFO, source, n, buf, buflen );
00280 }
|
|
||||||||||||
|
Definition at line 282 of file ui_syscalls.c. References UI_LAN_GETSERVERPING.
00282 {
00283 return syscall( UI_LAN_GETSERVERPING, source, n );
00284 }
|
|
|
Definition at line 298 of file ui_syscalls.c. References UI_LAN_LOADCACHEDSERVERS. Referenced by _UI_Init().
00298 {
00299 syscall( UI_LAN_LOADCACHEDSERVERS );
00300 }
|
|
||||||||||||||||
|
Definition at line 318 of file ui_syscalls.c. References UI_LAN_MARKSERVERVISIBLE.
00318 {
00319 syscall( UI_LAN_MARKSERVERVISIBLE, source, n, visible );
00320 }
|
|
||||||||||||
|
Definition at line 334 of file ui_syscalls.c. References UI_LAN_REMOVESERVER.
00334 {
00335 syscall( UI_LAN_REMOVESERVER, source, addr );
00336 }
|
|
|
Definition at line 302 of file ui_syscalls.c. References UI_LAN_RESETPINGS.
00302 {
00303 syscall( UI_LAN_RESETPINGS, n );
00304 }
|
|
|
Definition at line 294 of file ui_syscalls.c. References UI_LAN_SAVECACHEDSERVERS. Referenced by _UI_Shutdown().
00294 {
00295 syscall( UI_LAN_SAVECACHEDSERVERS );
00296 }
|
|
||||||||||||
|
Definition at line 322 of file ui_syscalls.c. References UI_LAN_SERVERISVISIBLE.
00322 {
00323 return syscall( UI_LAN_SERVERISVISIBLE, source, n );
00324 }
|
|
||||||||||||||||
|
Definition at line 290 of file ui_syscalls.c. References UI_LAN_SERVERSTATUS.
00290 {
00291 return syscall( UI_LAN_SERVERSTATUS, serverAddress, serverStatus, maxLen );
00292 }
|
|
|
Definition at line 326 of file ui_syscalls.c. References qboolean, and UI_LAN_UPDATEVISIBLEPINGS.
00326 {
00327 return syscall( UI_LAN_UPDATEVISIBLEPINGS, source );
00328 }
|
|
|
Definition at line 307 of file cg_syscalls.c.
00308 {
00309 return syscall( CG_LANGUAGE_ISASIAN );
00310 }
|
|
|
Definition at line 312 of file cg_syscalls.c.
00313 {
00314 return syscall( CG_LANGUAGE_USESSPACES );
00315 }
|
|
|
Definition at line 521 of file cg_syscalls.c. References CG_MEMORY_REMAINING, and UI_MEMORY_REMAINING.
00521 {
00522 return syscall( CG_MEMORY_REMAINING );
00523 }
|
|
|
Definition at line 29 of file cg_syscalls.c. References CG_MILLISECONDS, and UI_MILLISECONDS.
00029 {
00030 return syscall( CG_MILLISECONDS );
00031 }
|
|
|
Definition at line 21 of file cg_syscalls.c. References CG_PRINT, and UI_PRINT. Referenced by CG_GetMenuBuffer(), CG_LoadMenus(), CG_Printf(), Com_Printf(), GetMenuBuffer(), UI_GetBotInfoByNumber(), and UI_LoadArenas().
00021 {
00022 syscall( CG_PRINT, fmt );
00023 }
|
|
||||||||||||||||||||||||
|
Definition at line 352 of file cg_syscalls.c. References CG_R_ADDLIGHTTOSCENE, PASSFLOAT(), UI_R_ADDLIGHTTOSCENE, and vec3_t. Referenced by CG_AddPlayerWeapon(), and CG_DoSaber().
|
|
||||||||||||||||
|
Definition at line 335 of file cg_syscalls.c. References CG_R_ADDPOLYTOSCENE, qhandle_t, and UI_R_ADDPOLYTOSCENE. Referenced by CG_AddMarks(), CG_AddParticleToScene(), CG_AddSaberBlade(), and CG_ImpactMark().
00335 {
00336 syscall( CG_R_ADDPOLYTOSCENE, hShader, numVerts, verts );
00337 }
|
|
|
Definition at line 331 of file cg_syscalls.c. References CG_R_ADDREFENTITYTOSCENE, and UI_R_ADDREFENTITYTOSCENE. Referenced by CG_AddFadeRGB(), CG_AddFragment(), CG_AddLine(), CG_AddOLine(), CG_AddRefEntity(), CG_AddRefEntityWithPowerups(), CG_AddScorePlum(), CG_Beam(), CG_CreateDistortionTrailPart(), CG_Disintegration(), CG_DoSaber(), CG_Draw3DModel(), CG_DrawMiscEnts(), CG_DrawPlayerShield(), CG_DrawPlayerSphere(), CG_Player(), and UI_DoSaber().
00331 {
00332 syscall( CG_R_ADDREFENTITYTOSCENE, re );
00333 }
|
|
|
Definition at line 322 of file cg_syscalls.c. References CG_R_CLEARSCENE, and UI_R_CLEARSCENE.
00322 {
00323 syscall( CG_R_CLEARSCENE );
00324 }
|
|
||||||||||||||||||||||||||||||||||||||||
|
Definition at line 368 of file cg_syscalls.c. References CG_R_DRAWSTRETCHPIC, PASSFLOAT(), qhandle_t, and UI_R_DRAWSTRETCHPIC. Referenced by _UI_DrawSides(), _UI_DrawTopBottom(), CG_DrawChar(), CG_DrawPic(), CG_DrawSides(), CG_DrawTopBottom(), CG_FillRect(), CG_FillRect2(), UI_DrawHandlePic(), UI_DrawNamedPic(), UI_DrawSides(), UI_DrawTopBottom(), and UI_FillRect().
|
|
||||||||||||||||||||||||||||||||
|
Definition at line 302 of file cg_syscalls.c.
00303 {
00304 syscall( CG_R_FONT_DRAWSTRING, ox, oy, text, rgba, setIndex, iCharLimit, PASSFLOAT(scale));
00305 }
|
|
||||||||||||
|
Definition at line 297 of file cg_syscalls.c.
00298 {
00299 return syscall( CG_R_FONT_STRHEIGHTPIXELS, iFontIndex, PASSFLOAT(scale));
00300 }
|
|
|
Definition at line 292 of file cg_syscalls.c.
00293 {
00294 return syscall( CG_R_FONT_STRLENCHARS, text);
00295 }
|
|
||||||||||||||||
|
Definition at line 287 of file cg_syscalls.c.
00288 {
00289 return syscall( CG_R_FONT_STRLENPIXELS, text, iFontIndex, PASSFLOAT(scale));
00290 }
|
|
||||||||||||||||
|
Definition at line 373 of file cg_syscalls.c. References CG_R_MODELBOUNDS, clipHandle_t, UI_R_MODELBOUNDS, and vec3_t. Referenced by CG_CreateBrushEntData(), CG_CreateModelFromSpawnEnt(), CG_DrawFlagModel(), CG_MiscEnt(), and CG_RegisterWeapon().
00373 {
00374 syscall( CG_R_MODELBOUNDS, model, mins, maxs );
00375 }
|
|
|
Definition at line 282 of file cg_syscalls.c. References CG_R_REGISTERFONT, qhandle_t, and UI_R_REGISTERFONT. Referenced by Asset_Parse(), and CG_Init().
00283 {
00284 return syscall( CG_R_REGISTERFONT, fontName);
00285 }
|
|
|
Definition at line 266 of file cg_syscalls.c. References CG_R_REGISTERMODEL, name, qhandle_t, and UI_R_REGISTERMODEL. Referenced by BG_ModelCache(), CG_AddPlayerWeapon(), CG_CreateBrushEntData(), CG_CreateDebris(), CG_CreateDistortionTrailPart(), CG_CreateModelFromSpawnEnt(), CG_GlassShatter_Old(), CG_InitSiegeMode(), CG_MiscEnt(), CG_Player(), CG_PrecachePlayersForSiegeTeam(), CG_RegisterItemVisuals(), CG_RegisterWeapon(), CG_TestModel_f(), and VEH_LoadVehicle().
00266 {
00267 return syscall( CG_R_REGISTERMODEL, name );
00268 }
|
|
|
Definition at line 278 of file cg_syscalls.c. References CG_R_REGISTERSHADERNOMIP, name, qhandle_t, trap_Cvar_VariableStringBuffer(), and UI_R_REGISTERSHADERNOMIP. Referenced by _UI_Init(), Asset_Parse(), AssetCache(), BG_SiegeParseClassFile(), BG_SiegeParseTeamFile(), CG_Asset_Parse(), CG_AssetCache(), CG_DrawFlagStatus(), CG_DrawInformation(), CG_DrawRadar(), CG_Init(), CG_InitSiegeMode(), CG_PrecacheSiegeObjectiveAssetsForTeam(), CG_RegisterItemVisuals(), CG_RegisterWeapon(), CG_SiegeCountCvars(), UI_CacheSaberGlowGraphics(), UI_DrawNamedPic(), UI_FeederSelection(), UI_InitForceShaders(), and VEH_LoadVehicle().
00278 {
00279 return syscall( CG_R_REGISTERSHADERNOMIP, name );
00280 }
|
|
|
Definition at line 270 of file cg_syscalls.c.
00270 {
00271 return syscall( CG_R_REGISTERSKIN, name );
00272 }
|
|
||||||||||||||||
|
Definition at line 406 of file cg_syscalls.c. References CG_R_REMAP_SHADER, and UI_R_REMAP_SHADER.
00407 {
00408 syscall( CG_R_REMAP_SHADER, oldShader, newShader, timeOffset );
00409 }
|
|
|
Definition at line 360 of file cg_syscalls.c. References CG_R_RENDERSCENE, and UI_R_RENDERSCENE. Referenced by CG_Draw3DModel(), CG_DrawActive(), CG_DrawAutoMap(), and CG_DrawSkyBoxPortal().
00360 {
00361 syscall( CG_R_RENDERSCENE, fd );
00362 }
|
|
|
Definition at line 364 of file cg_syscalls.c. References CG_R_SETCOLOR, and UI_R_SETCOLOR. Referenced by _UI_DrawRect(), CG_BracketEntity(), CG_DottedLine(), CG_DrawArmor(), CG_DrawForcePower(), CG_DrawForceSelect(), CG_DrawHealth(), CG_DrawHUD(), CG_DrawInformation(), CG_DrawInvenSelect(), CG_DrawMedal(), CG_DrawNewTeamInfo(), CG_DrawRadar(), CG_DrawRect(), CG_DrawStringExt(), CG_DrawTeamBackground(), CG_DrawVehicleAmmo(), CG_DrawVehicleAmmoLower(), CG_DrawVehicleAmmoUpper(), CG_DrawVehicleArmor(), CG_DrawVehicleDamage(), CG_DrawVehicleDamageHUD(), CG_DrawVehicleHud(), CG_DrawVehicleShields(), CG_DrawVehicleSpeed(), CG_DrawVehicleTurboRecharge(), CG_DrawVehicleWeaponsLinked(), CG_DrawWeaponSelect(), CG_FillRect(), CG_FillRect2(), CG_LoadBar(), CG_SaberClashFlare(), UI_DrawForceStars(), UI_DrawRect(), UI_FillRect(), and UI_SetColor().
00364 {
00365 syscall( CG_R_SETCOLOR, rgba );
00366 }
|
|
||||||||||||
|
Definition at line 165 of file ui_syscalls.c. References name, and UI_R_SHADERNAMEFROMINDEX. Referenced by UI_SiegeSetCvarsForClass().
00166 {
00167 syscall( UI_R_SHADERNAMEFROMINDEX, name, index );
00168 }
|
|
|
Definition at line 575 of file cg_syscalls.c. References CG_REAL_TIME, qtime_t, and UI_REAL_TIME.
00575 {
00576 return syscall( CG_REAL_TIME, qtime );
00577 }
|
|
|
Definition at line 229 of file cg_syscalls.c. References CG_S_REGISTERSOUND, sfxHandle_t, and UI_S_REGISTERSOUND. Referenced by Asset_Parse(), BG_SoundIndex(), CG_Asset_Parse(), CG_CustomSound(), CG_DoGlass(), CG_DrawRadar(), CG_EntityEvent(), CG_G2AnimEntModelLoad(), CG_GlassShatter_Old(), CG_LoadCISounds(), CG_PlayerAnimEventDo(), CG_PrecacheSiegeObjectiveAssetsForTeam(), CG_RegisterWeapon(), CG_ROFF_NotetrackCallback(), CG_SiegeObjectiveCompleted(), CG_SiegeRoundOver(), ParseAnimationEvtBlock(), VEH_LoadVehicle(), and VEH_LoadVehWeapon().
00229 {
00230 return syscall( CG_S_REGISTERSOUND, sample );
00231 }
|
|
||||||||||||||||
|
Definition at line 233 of file cg_syscalls.c. References CG_S_STARTBACKGROUNDTRACK, and UI_S_STARTBACKGROUNDTRACK. Referenced by CG_EntityEvent(), and CG_StartMusic().
00233 {
00234 syscall( CG_S_STARTBACKGROUNDTRACK, intro, loop, bReturnWithoutStarting );
00235 }
|
|
||||||||||||
|
Definition at line 196 of file cg_syscalls.c. References CG_S_STARTLOCALSOUND, sfxHandle_t, and UI_S_STARTLOCALSOUND. Referenced by CG_CheckAmmo(), CG_CheckLocalSounds(), CG_EntityEvent(), CG_SiegeObjectiveCompleted(), CG_SiegeRoundOver(), Item_Model_Paint(), and UI_FeederSelection().
00196 {
00197 syscall( CG_S_STARTLOCALSOUND, sfx, channelNum );
00198 }
|
|
|
Definition at line 571 of file cg_syscalls.c. References CG_S_STOPBACKGROUNDTRACK, and UI_S_STOPBACKGROUNDTRACK.
00571 {
00572 syscall( CG_S_STOPBACKGROUNDTRACK );
00573 }
|
|
|
Definition at line 119 of file cg_syscalls.c. References CG_UPDATESCREEN, and UI_UPDATESCREEN.
00119 {
00120 syscall( CG_UPDATESCREEN );
00121 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 64 of file ui_atoms.c. References MAX_STRING_CHARS, and trap_Argv(). Referenced by UI_ConsoleCommand().
00064 {
00065 static char buffer[MAX_STRING_CHARS];
00066
00067 trap_Argv( arg, buffer, sizeof( buffer ) );
00068
00069 return buffer;
00070 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
Definition at line 47 of file ui_atoms.c. References min.
|
|
|
Definition at line 147 of file ui_atoms.c. References fileHandle_t, FS_WRITE, memset(), postGameInfo_t, qfalse, strlen(), trap_FS_FCloseFile(), trap_FS_FOpenFile(), trap_FS_GetFileList(), trap_FS_Write(), UI_SetBestScores(), and va().
00147 {
00148 char gameList[4096];
00149 char *gameFile;
00150 int i, len, count, size;
00151 fileHandle_t f;
00152 postGameInfo_t newInfo;
00153
00154 count = trap_FS_GetFileList( "games", "game", gameList, sizeof(gameList) );
00155
00156 size = sizeof(postGameInfo_t);
00157 memset(&newInfo, 0, size);
00158
00159 if (count > 0) {
00160 gameFile = gameList;
00161 for ( i = 0; i < count; i++ ) {
00162 len = strlen(gameFile);
00163 if (trap_FS_FOpenFile(va("games/%s",gameFile), &f, FS_WRITE) >= 0) {
00164 trap_FS_Write(&size, sizeof(int), f);
00165 trap_FS_Write(&newInfo, size, f);
00166 trap_FS_FCloseFile(f);
00167 }
00168 gameFile += len + 1;
00169 }
00170 }
00171
00172 UI_SetBestScores(&newInfo, qfalse);
00173
00174 }
|
|
||||||||||||||||
|
|
|
|
Definition at line 296 of file ui_atoms.c. References displayContextDef_t::frameTime, GT_SIEGE, KEYCATCH_UI, Menus_ActivateByName(), Menus_CloseAll(), Q_stricmp(), qboolean, qfalse, qtrue, displayContextDef_t::realTime, trap_Cvar_VariableValue(), trap_Key_SetCatcher(), UI_Argv(), UI_Load(), UI_Report(), UI_ShowPostGame(), uiInfo_t::uiDC, and uiInfo. Referenced by vmMain().
00296 {
00297 char *cmd;
00298
00299 uiInfo.uiDC.frameTime = realTime - uiInfo.uiDC.realTime;
00300 uiInfo.uiDC.realTime = realTime;
00301
00302 cmd = UI_Argv( 0 );
00303
00304 // ensure minimum menu data is available
00305 //Menu_Cache();
00306
00307 if ( Q_stricmp (cmd, "ui_test") == 0 ) {
00308 UI_ShowPostGame(qtrue);
00309 }
00310
00311 if ( Q_stricmp (cmd, "ui_report") == 0 ) {
00312 UI_Report();
00313 return qtrue;
00314 }
00315
00316 if ( Q_stricmp (cmd, "ui_load") == 0 ) {
00317 UI_Load();
00318 return qtrue;
00319 }
00320
00321 if ( Q_stricmp (cmd, "ui_opensiegemenu" ) == 0 )
00322 {
00323 if ( trap_Cvar_VariableValue ( "g_gametype" ) == GT_SIEGE )
00324 {
00325 Menus_CloseAll();
00326 if (Menus_ActivateByName(UI_Argv(1)))
00327 {
00328 trap_Key_SetCatcher( KEYCATCH_UI );
00329 }
00330 }
00331 return qtrue;
00332 }
00333
00334 if ( Q_stricmp (cmd, "ui_openmenu" ) == 0 )
00335 {
00336 //if ( trap_Cvar_VariableValue ( "developer" ) )
00337 {
00338 Menus_CloseAll();
00339 if (Menus_ActivateByName(UI_Argv(1)))
00340 {
00341 trap_Key_SetCatcher( KEYCATCH_UI );
00342 }
00343 return qtrue;
00344 }
00345 }
00346
00347 /*
00348 if ( Q_stricmp (cmd, "remapShader") == 0 ) {
00349 if (trap_Argc() == 4) {
00350 char shader1[MAX_QPATH];
00351 char shader2[MAX_QPATH];
00352 Q_strncpyz(shader1, UI_Argv(1), sizeof(shader1));
00353 Q_strncpyz(shader2, UI_Argv(2), sizeof(shader2));
00354 trap_R_RemapShader(shader1, shader2, UI_Argv(3));
00355 return qtrue;
00356 }
00357 }
00358 */
00359
00360 if ( Q_stricmp (cmd, "postgame") == 0 ) {
00361 UI_CalcPostGameStats();
00362 return qtrue;
00363 }
00364
00365 if ( Q_stricmp (cmd, "ui_cache") == 0 ) {
00366 UI_Cache_f();
00367 return qtrue;
00368 }
00369
00370 if ( Q_stricmp (cmd, "ui_teamOrders") == 0 ) {
00371 //UI_TeamOrdersMenu_f();
00372 return qtrue;
00373 }
00374
00375
00376 if ( Q_stricmp (cmd, "ui_cdkey") == 0 ) {
00377 //UI_CDKeyMenu_f();
00378 return qtrue;
00379 }
00380
00381 return qfalse;
00382 }
|
|
|
|
|
|
|
|
||||||||||||||||||||
|
Definition at line 484 of file ui_atoms.c. References displayContextDef_t::cursorx, displayContextDef_t::cursory, qboolean, qfalse, qtrue, uiInfo_t::uiDC, and uiInfo.
|
|
|
Definition at line 73 of file ui_atoms.c. References MAX_STRING_CHARS, and trap_Cvar_VariableStringBuffer(). Referenced by _UI_Init(), Item_Model_Paint(), UI_FeederSelection(), UI_GetVideoSetup(), UI_Load(), UI_LoadNonIngame(), UI_SaveForceTemplate(), UI_UpdateForcePowers(), and UI_UpdateVideoSetup().
00073 {
00074 static char buffer[MAX_STRING_CHARS];
00075
00076 trap_Cvar_VariableStringBuffer( var_name, buffer, sizeof( buffer ) );
00077
00078 return buffer;
00079 }
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||
|
|
|
|
Definition at line 10676 of file ui_main.c. References CA_CHALLENGING, CA_CONNECTED, CA_CONNECTING, CA_LOADING, CA_PRIMED, colorWhite, uiClientState_t::connectPacketCount, uiClientState_t::connState, CS_SERVERINFO, FONT_MEDIUM, Info_ValueForKey(), ITEM_TEXTSTYLE_SHADOWEDMORE, MAX_INFO_VALUE, Menu_Paint(), Menus_FindByName(), uiClientState_t::messageString, Q_stricmp(), qtrue, uiClientState_t::servername, strcpy(), Text_PaintCenter(), trap_Cvar_VariableStringBuffer(), trap_GetClientState(), trap_GetConfigString(), trap_SP_GetStringTextString(), uiClientState_t::updateInfoString, and va(). Referenced by vmMain().
10676 {
10677 const char *s;
10678 uiClientState_t cstate;
10679 char info[MAX_INFO_VALUE];
10680 char text[256];
10681 float centerPoint, yStart, scale;
10682
10683 char sStringEdTemp[256];
10684
10685 menuDef_t *menu = Menus_FindByName("Connect");
10686
10687
10688 if ( !overlay && menu ) {
10689 Menu_Paint(menu, qtrue);
10690 }
10691
10692 if (!overlay) {
10693 centerPoint = 320;
10694 yStart = 130;
10695 scale = 1.0f; // -ste
10696 } else {
10697 centerPoint = 320;
10698 yStart = 32;
10699 scale = 1.0f; // -ste
10700 return;
10701 }
10702
10703 // see what information we should display
10704 trap_GetClientState( &cstate );
10705
10706
10707 info[0] = '\0';
10708 if( trap_GetConfigString( CS_SERVERINFO, info, sizeof(info) ) ) {
10709 trap_SP_GetStringTextString("MENUS_LOADING_MAPNAME", sStringEdTemp, sizeof(sStringEdTemp));
10710 Text_PaintCenter(centerPoint, yStart, scale, colorWhite, va( /*"Loading %s"*/sStringEdTemp, Info_ValueForKey( info, "mapname" )), 0, FONT_MEDIUM);
10711 }
10712
10713 if (!Q_stricmp(cstate.servername,"localhost")) {
10714 trap_SP_GetStringTextString("MENUS_STARTING_UP", sStringEdTemp, sizeof(sStringEdTemp));
10715 Text_PaintCenter(centerPoint, yStart + 48, scale, colorWhite, sStringEdTemp, ITEM_TEXTSTYLE_SHADOWEDMORE, FONT_MEDIUM);
10716 } else {
10717 trap_SP_GetStringTextString("MENUS_CONNECTING_TO", sStringEdTemp, sizeof(sStringEdTemp));
10718 strcpy(text, va(/*"Connecting to %s"*/sStringEdTemp, cstate.servername));
10719 Text_PaintCenter(centerPoint, yStart + 48, scale, colorWhite,text , ITEM_TEXTSTYLE_SHADOWEDMORE, FONT_MEDIUM);
10720 }
10721
10722 //UI_DrawProportionalString( 320, 96, "Press Esc to abort", UI_CENTER|UI_SMALLFONT|UI_DROPSHADOW, menu_text_color );
10723
10724 // display global MOTD at bottom
10725 Text_PaintCenter(centerPoint, 425, scale, colorWhite, Info_ValueForKey( cstate.updateInfoString, "motd" ), 0, FONT_MEDIUM);
10726 // print any server info (server full, bad version, etc)
10727 if ( cstate.connState < CA_CONNECTED ) {
10728 Text_PaintCenter(centerPoint, yStart + 176, scale, colorWhite, cstate.messageString, 0, FONT_MEDIUM);
10729 }
10730
10731 if ( lastConnState > cstate.connState ) {
10732 lastLoadingText[0] = '\0';
10733 }
10734 lastConnState = cstate.connState;
10735
10736 switch ( cstate.connState ) {
10737 case CA_CONNECTING:
10738 {
10739 trap_SP_GetStringTextString("MENUS_AWAITING_CONNECTION", sStringEdTemp, sizeof(sStringEdTemp));
10740 s = va(/*"Awaiting connection...%i"*/sStringEdTemp, cstate.connectPacketCount);
10741 }
10742 break;
10743 case CA_CHALLENGING:
10744 {
10745 trap_SP_GetStringTextString("MENUS_AWAITING_CHALLENGE", sStringEdTemp, sizeof(sStringEdTemp));
10746 s = va(/*"Awaiting challenge...%i"*/sStringEdTemp, cstate.connectPacketCount);
10747 }
10748 break;
10749 case CA_CONNECTED: {
10750 char downloadName[MAX_INFO_VALUE];
10751
10752 trap_Cvar_VariableStringBuffer( "cl_downloadName", downloadName, sizeof(downloadName) );
10753 if (*downloadName) {
10754 UI_DisplayDownloadInfo( downloadName, centerPoint, yStart, scale, FONT_MEDIUM );
10755 return;
10756 }
10757 }
10758 trap_SP_GetStringTextString("MENUS_AWAITING_GAMESTATE", sStringEdTemp, sizeof(sStringEdTemp));
10759 s = /*"Awaiting gamestate..."*/sStringEdTemp;
10760 break;
10761 case CA_LOADING:
10762 return;
10763 case CA_PRIMED:
10764 return;
10765 default:
10766 return;
10767 }
10768
10769 if (Q_stricmp(cstate.servername,"localhost")) {
10770 Text_PaintCenter(centerPoint, yStart + 80, scale, colorWhite, s, 0, FONT_MEDIUM);
10771 }
10772 // password required / connection rejected information goes here
10773 }
|
|
||||||||||||||||||||||||
|
Definition at line 400 of file ui_atoms.c. References qhandle_t, and trap_R_DrawStretchPic(). Referenced by _UI_Init(), _UI_Refresh(), UI_DrawCenteredPic(), and UI_DrawForceStars().
00400 {
00401 float s0;
00402 float s1;
00403 float t0;
00404 float t1;
00405
00406 if( w < 0 ) { // flip about vertical
00407 w = -w;
00408 s0 = 1;
00409 s1 = 0;
00410 }
00411 else {
00412 s0 = 0;
00413 s1 = 1;
00414 }
00415
00416 if( h < 0 ) { // flip about horizontal
00417 h = -h;
00418 t0 = 1;
00419 t1 = 0;
00420 }
00421 else {
00422 t0 = 0;
00423 t1 = 1;
00424 }
00425
00426 trap_R_DrawStretchPic( x, y, w, h, s0, t0, s1, t1, hShader );
00427 }
|
|
||||||||||||||||||||||||
|
Definition at line 393 of file ui_atoms.c. References qhandle_t, trap_R_DrawStretchPic(), and trap_R_RegisterShaderNoMip().
00393 {
00394 qhandle_t hShader;
00395
00396 hShader = trap_R_RegisterShaderNoMip( picname );
00397 trap_R_DrawStretchPic( x, y, width, height, 0, 0, 1, 1, hShader );
00398 }
|
|
||||||||||||||||||||||||
|
Definition at line 603 of file cg_drawtools.c. References CG_Text_Paint(), CG_Text_Width(), FONT_MEDIUM, FONT_SMALL, ITEM_TEXTSTYLE_BLINK, ITEM_TEXTSTYLE_SHADOWED, UI_BLINK, UI_CENTER, UI_DROPSHADOW, UI_LEFT, UI_PULSE, UI_RIGHT, UI_SMALLFONT, and vec4_t. Referenced by CG_DrawForceSelect(), CG_DrawHUD(), CG_DrawInformation(), CG_DrawInvenSelect(), CG_DrawOldScoreboard(), and CG_DrawWeaponSelect().
00604 {
00605 // having all these different style defines (1 for UI, one for CG, and now one for the re->font stuff)
00606 // is dumb, but for now...
00607 //
00608 int iStyle = 0;
00609 int iMenuFont = (style & UI_SMALLFONT) ? FONT_SMALL : FONT_MEDIUM;
00610
00611 switch (style & (UI_LEFT|UI_CENTER|UI_RIGHT))
00612 {
00613 default:
00614 case UI_LEFT:
00615 {
00616 // nada...
00617 }
00618 break;
00619
00620 case UI_CENTER:
00621 {
00622 x -= CG_Text_Width(str, 1.0, iMenuFont) / 2;
00623 }
00624 break;
00625
00626 case UI_RIGHT:
00627 {
00628 x -= CG_Text_Width(str, 1.0, iMenuFont) / 2;
00629 }
00630 break;
00631 }
00632
00633 if (style & UI_DROPSHADOW)
00634 {
00635 iStyle = ITEM_TEXTSTYLE_SHADOWED;
00636 }
00637 else
00638 if ( style & (UI_BLINK|UI_PULSE) )
00639 {
00640 iStyle = ITEM_TEXTSTYLE_BLINK;
00641 }
00642
00643 CG_Text_Paint(x, y, 1.0, color, str, 0, 0, iStyle, iMenuFont);
00644 }
|
|
||||||||||||||||||||||||
|
Definition at line 460 of file ui_atoms.c. References NULL, trap_R_SetColor(), UI_DrawSides(), and UI_DrawTopBottom(). Referenced by UI_DrawTextBox().
00460 {
00461 trap_R_SetColor( color );
00462
00463 UI_DrawTopBottom(x, y, width, height);
00464 UI_DrawSides(x, y, width, height);
00465
00466 trap_R_SetColor( NULL );
00467 }
|
|
||||||||||||||||||||
|
Definition at line 444 of file ui_atoms.c. References trap_R_DrawStretchPic(), uiInfo_t::uiDC, uiInfo, and displayContextDef_t::whiteShader. Referenced by UI_DrawRect().
00444 {
00445 trap_R_DrawStretchPic( x, y, 1, h, 0, 0, 0, 0, uiInfo.uiDC.whiteShader );
00446 trap_R_DrawStretchPic( x + w - 1, y, 1, h, 0, 0, 0, 0, uiInfo.uiDC.whiteShader );
00447 }
|
|
||||||||||||||||||||||||
|
|
|
||||||||||||||||||||
|
Definition at line 478 of file ui_atoms.c. References BIGCHAR_HEIGHT, BIGCHAR_WIDTH, colorBlack, colorWhite, UI_DrawRect(), and UI_FillRect().
00479 {
00480 UI_FillRect( x + BIGCHAR_WIDTH/2, y + BIGCHAR_HEIGHT/2, ( width + 1 ) * BIGCHAR_WIDTH, ( lines + 1 ) * BIGCHAR_HEIGHT, colorBlack );
00481 UI_DrawRect( x + BIGCHAR_WIDTH/2, y + BIGCHAR_HEIGHT/2, ( width + 1 ) * BIGCHAR_WIDTH, ( lines + 1 ) * BIGCHAR_HEIGHT, colorWhite );
00482 }
|
|
||||||||||||||||||||
|
Definition at line 449 of file ui_atoms.c. References trap_R_DrawStretchPic(), uiInfo_t::uiDC, uiInfo, and displayContextDef_t::whiteShader. Referenced by UI_DrawRect().
00449 {
00450 trap_R_DrawStretchPic( x, y, w, 1, 0, 0, 0, 0, uiInfo.uiDC.whiteShader );
00451 trap_R_DrawStretchPic( x, y + h - 1, w, 1, 0, 0, 0, 0, uiInfo.uiDC.whiteShader );
00452 }
|
|
||||||||||||||||
|
Definition at line 9145 of file ui_main.c. References displayContextDef_t::Assets, CHAN_LOCAL, CIN_loop, CIN_silent, mapInfo::cinematic, siegeTeam_t::classes, Com_sprintf(), uiInfo_t::currentFoundPlayerServer, serverStatus_s::currentServer, serverStatus_s::currentServerCinematic, serverStatus_s::currentServerPreview, cachedAssets_t::datapadmoveSaberSound1, cachedAssets_t::datapadmoveSaberSound2, cachedAssets_t::datapadmoveSaberSound3, cachedAssets_t::datapadmoveSaberSound4, cachedAssets_t::datapadmoveSaberSound5, cachedAssets_t::datapadmoveSaberSound6, datapadMoveTitleBaseAnims, uiInfo_t::demoIndex, serverStatus_s::displayServers, FEEDER_ALLMAPS, FEEDER_CINEMATICS, FEEDER_COLORCHOICES, FEEDER_DEMOS, FEEDER_FINDPLAYER, FEEDER_FORCECFG, FEEDER_LANGUAGES, FEEDER_MAPS, FEEDER_MODS, FEEDER_MOVES, FEEDER_MOVES_TITLES, FEEDER_PLAYER_LIST, FEEDER_PLAYER_SKIN_HEAD, FEEDER_PLAYER_SKIN_LEGS, FEEDER_PLAYER_SKIN_TORSO, FEEDER_PLAYER_SPECIES, FEEDER_Q3HEADS, FEEDER_SERVERS, FEEDER_SERVERSTATUS, FEEDER_SIEGE_BASE_CLASS, FEEDER_SIEGE_CLASS_FORCE, FEEDER_SIEGE_CLASS_INVENTORY, FEEDER_SIEGE_CLASS_WEAPONS, FEEDER_SIEGE_TEAM1, FEEDER_SIEGE_TEAM2, FEEDER_TEAM_LIST, FEEDER_XBL_ACCOUNTS, FEEDER_XBL_FRIENDS, FEEDER_XBL_PLAYERS, FEEDER_XBL_SERVERS, FORCE_LIGHTSIDE, uiInfo_t::forceConfigCount, uiInfo_t::forceConfigDarkIndexBegin, uiInfo_t::forceConfigLightIndexBegin, uiInfo_t::forceConfigSelected, forcepowerDesc, uiInfo_t::foundPlayerServerAddresses, g_siegedFeederForcedSet, g_UIClassDescriptions, g_UIGloballySelectedSiegeClass, uiInfo_t::gameTypes, gUISelectedMap, HolocronIcons, Info_ValueForKey(), vmCvar_t::integer, Item_RunScript(), itemDef_t, ItemParse_asset_model_go(), ItemParse_model_g2anim_go(), uiInfo_t::languageCountIndex, uiInfo_t::mapList, MAX_QPATH, MAX_STRING_CHARS, MDS_FORCE_JUMP, MDS_ROLL, MDS_SABER, Menu_FindItemByName(), Menu_SetFeederSelection(), Menus_FindByName(), modelDef_t, uiInfo_t::modIndex, uiInfo_t::moveAnimTime, cachedAssets_t::moveJumpSound, cachedAssets_t::moveRollSound, uiInfo_t::movesBaseAnim, uiInfo_t::movesTitleIndex, uiInfo_t::movieIndex, NULL, NUM_FORCE_POWERS, uiInfo_t::numFoundPlayerServers, uiInfo_t::playerIndex, uiInfo_t::playerSpecies, uiInfo_t::playerSpeciesIndex, uiInfo_t::previewMovie, uiInfo_t::q3HeadCount, uiInfo_t::q3HeadNames, uiInfo_t::q3SelectedHead, Q_irand(), Q_strncpyz(), qboolean, qfalse, qtrue, displayContextDef_t::realTime, uiInfo_t::serverStatus, uiInfo_t::serverStatusAddress, sfxHandle_t, siegeTeam1, siegeTeam2, strcmp(), uiInfo_t::teamIndex, trap_CIN_PlayCinematic(), trap_CIN_StopCinematic(), trap_Cvar_Set(), trap_Cvar_VariableStringBuffer(), trap_Cvar_VariableValue(), trap_LAN_GetServerInfo(), trap_R_RegisterShaderNoMip(), trap_S_StartLocalSound(), itemDef_s::typeData, ui_currentMap, ui_currentNetMap, UI_Cvar_VariableString(), UI_ForceConfigHandle(), ui_gameType, UI_LoadBestScores(), ui_mapIndex, ui_netSource, UI_SaberAttachToChar(), UI_SiegeClassNum(), UI_SiegeSetCvarsForClass(), UI_UpdateCharacterSkin(), UI_UpdateCvarsForClass(), uiInfo_t::uiDC, uiForceSide, uiInfo, and va(). Referenced by _UI_Init(), and UI_SkinColor_HandleKey().
09146 {
09147 static char info[MAX_STRING_CHARS];
09148 const int feederID = feederFloat;
09149
09150 if (feederID == FEEDER_Q3HEADS)
09151 {
09152 int actual;
09153 UI_SelectedTeamHead(index, &actual);
09154 uiInfo.q3SelectedHead = index;
09155 trap_Cvar_Set("ui_selectedModelIndex", va("%i", index));
09156 index = actual;
09157 if (index >= 0 && index < uiInfo.q3HeadCount)
09158 {
09159 trap_Cvar_Set( "model", uiInfo.q3HeadNames[index]); //standard model
09160 trap_Cvar_Set ( "char_color_red", "255" ); //standard colors
09161 trap_Cvar_Set ( "char_color_green", "255" );
09162 trap_Cvar_Set ( "char_color_blue", "255" );
09163 }
09164 }
09165 else if (feederID == FEEDER_MOVES)
09166 {
09167 itemDef_t *item;
09168 menuDef_t *menu;
09169 modelDef_t *modelPtr;
09170
09171 menu = Menus_FindByName("rulesMenu_moves");
09172
09173 if (menu)
09174 {
09175 item = (itemDef_t *) Menu_FindItemByName((menuDef_t *) menu, "character");
09176 if (item)
09177 {
09178 modelPtr = (modelDef_t*)item->typeData;
09179 if (modelPtr)
09180 {
09181 char modelPath[MAX_QPATH];
09182 int animRunLength;
09183
09184 ItemParse_model_g2anim_go( item, datapadMoveData[uiInfo.movesTitleIndex][index].anim );
09185
09186 Com_sprintf( modelPath, sizeof( modelPath ), "models/players/%s/model.glm", UI_Cvar_VariableString ( "ui_char_model" ) );
09187 ItemParse_asset_model_go( item, modelPath, &animRunLength );
09188 UI_UpdateCharacterSkin();
09189
09190 uiInfo.moveAnimTime = uiInfo.uiDC.realTime + animRunLength;
09191
09192 if (datapadMoveData[uiInfo.movesTitleIndex][index].anim)
09193 {
09194
09195 // Play sound for anim
09196 if (datapadMoveData[uiInfo.movesTitleIndex][index].sound == MDS_FORCE_JUMP)
09197 {
09198 trap_S_StartLocalSound( uiInfo.uiDC.Assets.moveJumpSound, CHAN_LOCAL );
09199 }
09200 else if (datapadMoveData[uiInfo.movesTitleIndex][index].sound == MDS_ROLL)
09201 {
09202 trap_S_StartLocalSound( uiInfo.uiDC.Assets.moveRollSound, CHAN_LOCAL );
09203 }
09204 else if (datapadMoveData[uiInfo.movesTitleIndex][index].sound == MDS_SABER)
09205 {
09206 // Randomly choose one sound
09207 int soundI = Q_irand( 1, 6 );
09208 sfxHandle_t *soundPtr;
09209 soundPtr = &uiInfo.uiDC.Assets.datapadmoveSaberSound1;
09210 if (soundI == 2)
09211 {
09212 soundPtr = &uiInfo.uiDC.Assets.datapadmoveSaberSound2;
09213 }
09214 else if (soundI == 3)
09215 {
09216 soundPtr = &uiInfo.uiDC.Assets.datapadmoveSaberSound3;
09217 }
09218 else if (soundI == 4)
09219 {
09220 soundPtr = &uiInfo.uiDC.Assets.datapadmoveSaberSound4;
09221 }
09222 else if (soundI == 5)
09223 {
09224 soundPtr = &uiInfo.uiDC.Assets.datapadmoveSaberSound5;
09225 }
09226 else if (soundI == 6)
09227 {
09228 soundPtr = &uiInfo.uiDC.Assets.datapadmoveSaberSound6;
09229 }
09230
09231 trap_S_StartLocalSound( *soundPtr, CHAN_LOCAL );
09232 }
09233
09234 if (datapadMoveData[uiInfo.movesTitleIndex][index].desc)
09235 {
09236 trap_Cvar_Set( "ui_move_desc", datapadMoveData[uiInfo.movesTitleIndex][index].desc);
09237 }
09238 }
09239 UI_SaberAttachToChar( item );
09240 }
09241 }
09242 }
09243 }
09244 else if (feederID == FEEDER_MOVES_TITLES)
09245 {
09246 itemDef_t *item;
09247 menuDef_t *menu;
09248 modelDef_t *modelPtr;
09249
09250 uiInfo.movesTitleIndex = index;
09251 uiInfo.movesBaseAnim = datapadMoveTitleBaseAnims[uiInfo.movesTitleIndex];
09252 menu = Menus_FindByName("rulesMenu_moves");
09253
09254 if (menu)
09255 {
09256 item = (itemDef_t *) Menu_FindItemByName((menuDef_t *) menu, "character");
09257 if (item)
09258 {
09259 modelPtr = (modelDef_t*)item->typeData;
09260 if (modelPtr)
09261 {
09262 char modelPath[MAX_QPATH];
09263 int animRunLength;
09264
09265 uiInfo.movesBaseAnim = datapadMoveTitleBaseAnims[uiInfo.movesTitleIndex];
09266 ItemParse_model_g2anim_go( item, uiInfo.movesBaseAnim );
09267
09268 Com_sprintf( modelPath, sizeof( modelPath ), "models/players/%s/model.glm", UI_Cvar_VariableString ( "ui_char_model" ) );
09269 ItemParse_asset_model_go( item, modelPath, &animRunLength );
09270
09271 UI_UpdateCharacterSkin();
09272
09273 }
09274 }
09275 }
09276 }
09277 else if (feederID == FEEDER_SIEGE_TEAM1)
09278 {
09279 if (!g_siegedFeederForcedSet)
09280 {
09281 g_UIGloballySelectedSiegeClass = UI_SiegeClassNum(siegeTeam1->classes[index]);
09282 trap_Cvar_Set("ui_classDesc", g_UIClassDescriptions[g_UIGloballySelectedSiegeClass].desc);
09283
09284 //g_siegedFeederForcedSet = 1;
09285 //Menu_SetFeederSelection(NULL, FEEDER_SIEGE_TEAM2, -1, NULL);
09286
09287 UI_SiegeSetCvarsForClass(siegeTeam1->classes[index]);
09288 }
09289 g_siegedFeederForcedSet = 0;
09290 }
09291 else if (feederID == FEEDER_SIEGE_TEAM2)
09292 {
09293 if (!g_siegedFeederForcedSet)
09294 {
09295 g_UIGloballySelectedSiegeClass = UI_SiegeClassNum(siegeTeam2->classes[index]);
09296 trap_Cvar_Set("ui_classDesc", g_UIClassDescriptions[g_UIGloballySelectedSiegeClass].desc);
09297
09298 //g_siegedFeederForcedSet = 1;
09299 //Menu_SetFeederSelection(NULL, FEEDER_SIEGE_TEAM2, -1, NULL);
09300
09301 UI_SiegeSetCvarsForClass(siegeTeam2->classes[index]);
09302 }
09303 g_siegedFeederForcedSet = 0;
09304 }
09305 else if (feederID == FEEDER_FORCECFG)
09306 {
09307 int newindex = index;
09308
09309 if (uiForceSide == FORCE_LIGHTSIDE)
09310 {
09311 newindex += uiInfo.forceConfigLightIndexBegin;
09312 if (newindex >= uiInfo.forceConfigCount)
09313 {
09314 return qfalse;
09315 }
09316 }
09317 else
09318 { //else dark
09319 newindex += uiInfo.forceConfigDarkIndexBegin;
09320 if (newindex >= uiInfo.forceConfigCount || newindex > uiInfo.forceConfigLightIndexBegin)
09321 { //dark gets read in before light
09322 return qfalse;
09323 }
09324 }
09325
09326 if (index >= 0 && index < uiInfo.forceConfigCount)
09327 {
09328 UI_ForceConfigHandle(uiInfo.forceConfigSelected, index);
09329 uiInfo.forceConfigSelected = index;
09330 }
09331 }
09332 else if (feederID == FEEDER_MAPS || feederID == FEEDER_ALLMAPS)
09333 {
09334 int actual, map;
09335 const char *checkValid = NULL;
09336
09337 map = (feederID == FEEDER_ALLMAPS) ? ui_currentNetMap.integer : ui_currentMap.integer;
09338 if (uiInfo.mapList[map].cinematic >= 0) {
09339 trap_CIN_StopCinematic(uiInfo.mapList[map].cinematic);
09340 uiInfo.mapList[map].cinematic = -1;
09341 }
09342 checkValid = UI_SelectedMap(index, &actual);
09343
09344 if (!checkValid || !checkValid[0])
09345 { //this isn't a valid map to select, so reselect the current
09346 index = ui_mapIndex.integer;
09347 UI_SelectedMap(index, &actual);
09348 }
09349
09350 trap_Cvar_Set("ui_mapIndex", va("%d", index));
09351 gUISelectedMap = index;
09352 ui_mapIndex.integer = index;
09353
09354 if (feederID == FEEDER_MAPS) {
09355 ui_currentMap.integer = actual;
09356 trap_Cvar_Set("ui_currentMap", va("%d", actual));
09357 uiInfo.mapList[ui_currentMap.integer].cinematic = trap_CIN_PlayCinematic(va("%s.roq", uiInfo.mapList[ui_currentMap.integer].mapLoadName), 0, 0, 0, 0, (CIN_loop | CIN_silent) );
09358 UI_LoadBestScores(uiInfo.mapList[ui_currentMap.integer].mapLoadName, uiInfo.gameTypes[ui_gameType.integer].gtEnum);
09359 //trap_Cvar_Set("ui_opponentModel", uiInfo.mapList[ui_currentMap.integer].opponentName);
09360 //updateOpponentModel = qtrue;
09361 } else {
09362 ui_currentNetMap.integer = actual;
09363 trap_Cvar_Set("ui_currentNetMap", va("%d", actual));
09364 uiInfo.mapList[ui_currentNetMap.integer].cinematic = trap_CIN_PlayCinematic(va("%s.roq", uiInfo.mapList[ui_currentNetMap.integer].mapLoadName), 0, 0, 0, 0, (CIN_loop | CIN_silent) );
09365 }
09366
09367 } else if (feederID == FEEDER_SERVERS) {
09368 const char *mapName = NULL;
09369 uiInfo.serverStatus.currentServer = index;
09370 trap_LAN_GetServerInfo(ui_netSource.integer, uiInfo.serverStatus.displayServers[index], info, MAX_STRING_CHARS);
09371 uiInfo.serverStatus.currentServerPreview = trap_R_RegisterShaderNoMip(va("levelshots/%s", Info_ValueForKey(info, "mapname")));
09372 if (uiInfo.serverStatus.currentServerCinematic >= 0) {
09373 trap_CIN_StopCinematic(uiInfo.serverStatus.currentServerCinematic);
09374 uiInfo.serverStatus.currentServerCinematic = -1;
09375 }
09376 mapName = Info_ValueForKey(info, "mapname");
09377 if (mapName && *mapName) {
09378 uiInfo.serverStatus.currentServerCinematic = trap_CIN_PlayCinematic(va("%s.roq", mapName), 0, 0, 0, 0, (CIN_loop | CIN_silent) );
09379 }
09380 } else if (feederID == FEEDER_SERVERSTATUS) {
09381 //
09382 } else if (feederID == FEEDER_FINDPLAYER) {
09383 uiInfo.currentFoundPlayerServer = index;
09384 //
09385 if ( index < uiInfo.numFoundPlayerServers-1) {
09386 // build a new server status for this server
09387 Q_strncpyz(uiInfo.serverStatusAddress, uiInfo.foundPlayerServerAddresses[uiInfo.currentFoundPlayerServer], sizeof(uiInfo.serverStatusAddress));
09388 Menu_SetFeederSelection(NULL, FEEDER_SERVERSTATUS, 0, NULL);
09389 UI_BuildServerStatus(qtrue);
09390 }
09391 } else if (feederID == FEEDER_PLAYER_LIST) {
09392 uiInfo.playerIndex = index;
09393 } else if (feederID == FEEDER_TEAM_LIST) {
09394 uiInfo.teamIndex = index;
09395 } else if (feederID == FEEDER_MODS) {
09396 uiInfo.modIndex = index;
09397 } else if (feederID == FEEDER_CINEMATICS) {
09398 uiInfo.movieIndex = index;
09399 if (uiInfo.previewMovie >= 0) {
09400 trap_CIN_StopCinematic(uiInfo.previewMovie);
09401 }
09402 uiInfo.previewMovie = -1;
09403 } else if (feederID == FEEDER_DEMOS) {
09404 uiInfo.demoIndex = index;
09405 }
09406 else if (feederID == FEEDER_COLORCHOICES)
09407 {
09408 if (index >= 0 && index < uiInfo.playerSpecies[uiInfo.playerSpeciesIndex].ColorCount)
09409 {
09410 Item_RunScript(item, uiInfo.playerSpecies[uiInfo.playerSpeciesIndex].ColorActionText[index]);
09411 }
09412 }
09413 else if (feederID == FEEDER_PLAYER_SKIN_HEAD)
09414 {
09415 if (index >= 0 && index < uiInfo.playerSpecies[uiInfo.playerSpeciesIndex].SkinHeadCount)
09416 {
09417 trap_Cvar_Set("ui_char_skin_head", uiInfo.playerSpecies[uiInfo.playerSpeciesIndex].SkinHeadNames[index]);
09418 }
09419 }
09420 else if (feederID == FEEDER_PLAYER_SKIN_TORSO)
09421 {
09422 if (index >= 0 && index < uiInfo.playerSpecies[uiInfo.playerSpeciesIndex].SkinTorsoCount)
09423 {
09424 trap_Cvar_Set("ui_char_skin_torso", uiInfo.playerSpecies[uiInfo.playerSpeciesIndex].SkinTorsoNames[index]);
09425 }
09426 }
09427 else if (feederID == FEEDER_PLAYER_SKIN_LEGS)
09428 {
09429 if (index >= 0 && index < uiInfo.playerSpecies[uiInfo.playerSpeciesIndex].SkinLegCount)
09430 {
09431 trap_Cvar_Set("ui_char_skin_legs", uiInfo.playerSpecies[uiInfo.playerSpeciesIndex].SkinLegNames[index]);
09432 }
09433 }
09434 else if (feederID == FEEDER_PLAYER_SPECIES)
09435 {
09436 uiInfo.playerSpeciesIndex = index;
09437 }
09438 else if (feederID == FEEDER_LANGUAGES)
09439 {
09440 uiInfo.languageCountIndex = index;
09441 }
09442 else if ( feederID == FEEDER_SIEGE_BASE_CLASS )
09443 {
09444 int team,baseClass;
09445
09446 team = (int)trap_Cvar_VariableValue("ui_team");
09447 baseClass = (int)trap_Cvar_VariableValue("ui_siege_class");
09448
09449 UI_UpdateCvarsForClass(team, baseClass, index);
09450 }
09451 else if (feederID == FEEDER_SIEGE_CLASS_WEAPONS)
09452 {
09453 // trap_Cvar_VariableStringBuffer( va("ui_class_weapondesc%i", index), info, sizeof(info) );
09454 // trap_Cvar_Set( "ui_itemforceinvdesc", info );
09455 }
09456 else if (feederID == FEEDER_SIEGE_CLASS_INVENTORY)
09457 {
09458 // trap_Cvar_VariableStringBuffer( va("ui_class_itemdesc%i", index), info, sizeof(info) );
09459 // trap_Cvar_Set( "ui_itemforceinvdesc", info );
09460 }
09461 else if (feederID == FEEDER_SIEGE_CLASS_FORCE)
09462 {
09463 int i;
09464 // int validCnt = 0;
09465
09466 trap_Cvar_VariableStringBuffer( va("ui_class_power%i", index), info, sizeof(info) );
09467
09468 //count them up
09469 for (i=0;i< NUM_FORCE_POWERS;i++)
09470 {
09471 if (!strcmp(HolocronIcons[i],info))
09472 {
09473 trap_Cvar_Set( "ui_itemforceinvdesc", forcepowerDesc[i] );
09474 }
09475 }
09476 }
09477 #ifdef _XBOX
09478 else if (feederID == FEEDER_XBL_ACCOUNTS)
09479 {
09480 XBL_SetAccountIndex( index );
09481 }
09482 else if (feederID == FEEDER_XBL_PLAYERS)
09483 {
09484 XBL_PL_SetPlayerIndex( index );
09485 }
09486 else if (feederID == FEEDER_XBL_FRIENDS)
09487 {
09488 XBL_F_SetChosenFriendIndex( index );
09489 }
09490 else if (feederID == FEEDER_XBL_SERVERS)
09491 {
09492 XBL_MM_SetChosenServerIndex( index );
09493 }
09494 #endif
09495
09496 return qtrue;
09497 }
|
|
||||||||||||||||||||||||
|
Definition at line 436 of file ui_atoms.c. References NULL, trap_R_DrawStretchPic(), trap_R_SetColor(), uiInfo_t::uiDC, uiInfo, and displayContextDef_t::whiteShader. Referenced by _UI_Init(), and UI_DrawTextBox().
00436 {
00437 trap_R_SetColor( color );
00438
00439 trap_R_DrawStretchPic( x, y, width, height, 0, 0, 0, 0, uiInfo.uiDC.whiteShader );
00440
00441 trap_R_SetColor( NULL );
00442 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
|
|
|
Definition at line 308 of file ui_gameinfo.c. References Info_ValueForKey(), name, NULL, Q_stricmp(), and ui_numBots.
00308 {
00309 int n;
00310 char *value;
00311
00312 for ( n = 0; n < ui_numBots ; n++ ) {
00313 value = Info_ValueForKey( ui_botInfos[n], "name" );
00314 if ( !Q_stricmp( value, name ) ) {
00315 return ui_botInfos[n];
00316 }
00317 }
00318
00319 return NULL;
00320 }
|
|