/* ================= UI_CustomGame_Menu ================= */ void UI_CustomGame_Menu( void ) { // current instance is not support game change if( !CVAR_GET_FLOAT( "host_allow_changegame" )) return; UI_CustomGame_Precache(); UI_CustomGame_Init(); UI_PushMenu( &uiCustomGame.menu ); }
/* ================= UI_Precache ================= */ void UI_Precache( void ) { if( !uiStatic.initialized ) return; if( !ui_precache->value ) return; PIC_Load( UI_LEFTARROW ); PIC_Load( UI_LEFTARROWFOCUS ); PIC_Load( UI_RIGHTARROW ); PIC_Load( UI_RIGHTARROWFOCUS ); PIC_Load( UI_UPARROW ); PIC_Load( UI_UPARROWFOCUS ); PIC_Load( UI_DOWNARROW ); PIC_Load( UI_DOWNARROWFOCUS ); if( ui_precache->value == 1 ) return; UI_Main_Precache(); UI_NewGame_Precache(); UI_LoadGame_Precache(); UI_SaveGame_Precache(); UI_SaveLoad_Precache(); UI_MultiPlayer_Precache(); UI_Options_Precache(); UI_InternetGames_Precache(); UI_LanGame_Precache(); UI_PlayerSetup_Precache(); UI_Controls_Precache(); UI_AdvControls_Precache(); UI_GameOptions_Precache(); UI_CreateGame_Precache(); UI_Audio_Precache(); UI_Video_Precache(); UI_VidOptions_Precache(); UI_VidModes_Precache(); UI_CustomGame_Precache(); UI_Credits_Precache(); }