/*
=================
InServer_Event
=================
*/
void InServer_Event( void *ptr, int notification ) {
	if( notification != QM_ACTIVATED ) {
		return;
	}

	switch( ((menucommon_s*)ptr)->id ) {
	case ID_CHANGEMAP:
#ifdef TA_SP // ARCADE
		UI_StartServerMenu( !ui_singlePlayerActive.integer );
#else
		UI_StartServerMenu( trap_Cvar_VariableValue("g_gametype") != GT_SINGLE_PLAYER );
#endif
		break;

	case ID_RESTART:
		UI_ConfirmMenu( "Restart Level?", 0, InServer_RestartAction );
		break;

	case ID_ADDBOTS:
		UI_AddBotsMenu();
		break;

	case ID_REMOVEBOTS:
		UI_RemoveBotsMenu();
		break;


	case ID_BACK:
		UI_PopMenu();
		break;
	}
}
示例#2
0
/*
=================
InGame_Event
=================
*/
void InGame_Event( void *ptr, int notification ) {
	if( notification != QM_ACTIVATED ) {
		return;
	}

	switch( ((menucommon_s*)ptr)->id ) {
	case ID_TEAM:
		UI_TeamMainMenu();
		break;

	case ID_SETUP:
		UI_SetupMenu();
		break;

	case ID_LEAVEARENA:
		trap_Cmd_ExecuteText( EXEC_APPEND, "disconnect\n" );
		break;

	case ID_RESTART:
		UI_ConfirmMenu( "RESTART ARENA?", 0, InGame_RestartAction );
		break;

	case ID_QUIT:
		UI_ConfirmMenu( "EXIT GAME?",  0, InGame_QuitAction );
		break;

	case ID_SERVERINFO:
		UI_ServerInfoMenu();
		break;

	case ID_ADDBOTS:
		UI_AddBotsMenu();
		break;

	case ID_REMOVEBOTS:
		UI_RemoveBotsMenu();
		break;

	case ID_TEAMORDERS:
		UI_TeamOrdersMenu();
		break;

	case ID_RESUME:
		UI_PopMenu();
		break;

	case ID_SLUGROCK:
		UI_SlugRockMenu();
		break;
	}
}
示例#3
0
/*
=================
InGame_Event
=================
*/
void InGame_Event( void *ptr, int notification ) {
	if( notification != QM_ACTIVATED ) {
		return;
	}

	switch( ((menucommon_s*)ptr)->id ) {
	case ID_TEAM:
		InSelectPlayerMenu(UI_TeamMainMenu, "CHANGE TEAM", qtrue);
		break;

	case ID_SETUP:
		UI_SetupMenu();
		break;

	case ID_LEAVEARENA:
		trap_Cmd_ExecuteText( EXEC_APPEND, "disconnect\n" );
		break;

	case ID_RESTART:
		UI_ConfirmMenu( "RESTART ARENA?", 0, InGame_RestartAction );
		break;

	case ID_QUIT:
		UI_ConfirmMenu( "EXIT GAME?",  0, InGame_QuitAction );
		break;

	case ID_SERVERINFO:
		UI_ServerInfoMenu();
		break;

	case ID_ADDBOTS:
		UI_AddBotsMenu();
		break;

	case ID_REMOVEBOTS:
		UI_RemoveBotsMenu();
		break;

	case ID_TEAMORDERS:
		UI_TeamOrdersMenu();
		break;

	case ID_RESUME:
		UI_PopMenu();
		break;

	case ID_LOCALPLAYERS:
		InSelectPlayerMenu(UI_TogglePlayerIngame, "ADD OR DROP", qfalse);
		break;
	}
}
/*
=================
InGame_Event
=================
*/
void InGame_Event( void *ptr, int notification ) {
	if( notification != QM_ACTIVATED ) {
		return;
	}

	switch( ((menucommon_s*)ptr)->id ) {
	case ID_TEAM:
		UI_TeamMainMenu();
		break;

	case ID_SETUP:
		UI_SetupMenu();
		break;

	case ID_LEAVEARENA:
		trap_Cmd_ExecuteText( EXEC_APPEND, "disconnect\n" );
		break;

	case ID_RESTART:
		UI_ConfirmMenu( "RESTART MAP?", 0, InGame_RestartAction );
		break;

	case ID_QUIT:
		UI_ConfirmMenu( "EXIT GAME?",  0, InGame_QuitAction );
		break;

	case ID_SERVERINFO:
		UI_ServerInfoMenu();
		break;

	case ID_ADDBOTS:
		UI_AddBotsMenu();
		break;

	case ID_REMOVEBOTS:
		UI_RemoveBotsMenu();
		break;

	case ID_VOICEINGAME:
		UI_VoiceIngame();
		break;

/*	case ID_TEAMORDERS:
		UI_TeamOrdersMenu();
		break;
*/
	case ID_CALLVOTE:
		UI_CallVoteMenu();
		break;

	case ID_RESUME:
		UI_PopMenu();
		break;

	case ID_WOPMUSIC:
		trap_Cmd_ExecuteText(EXEC_APPEND,"wop_music\n");//call wop-music-menu (in ui O_o) ... get cl_paused 0 ;)
		UI_PopMenu();//pop the menu ;)
		break;

	case ID_NEXTMAP:
		trap_Cmd_ExecuteText( EXEC_APPEND, "vstr nextmap\n" );
		UI_PopMenu();
		break;
	case ID_RECHOOSELOGO:
		trap_Cmd_ExecuteText(EXEC_APPEND,"rechooselogo\n");//call logomenu (in cgame)
		UI_PopMenu();//pop the menu ;)
		break;
	}
}