/* ================= InGame_MenuInit ================= */ void InGame_MenuInit(void) { int y; uiClientState_t cs; char info[MAX_INFO_STRING]; int team; memset(&s_ingame, 0, sizeof(ingamemenu_t)); InGame_Cache(); s_ingame.menu.wrapAround = qtrue; s_ingame.menu.fullscreen = qfalse; s_ingame.frame.generic.type = MTYPE_BITMAP; s_ingame.frame.generic.flags = QMF_INACTIVE; s_ingame.frame.generic.name = INGAME_FRAME; s_ingame.frame.generic.x = 320 - 233; //142; s_ingame.frame.generic.y = 240 - 166; //118; s_ingame.frame.width = 466; //359; s_ingame.frame.height = 332; //256; //y = 96; y = 88; s_ingame.team.generic.type = MTYPE_PTEXT; s_ingame.team.generic.flags = QMF_CENTER_JUSTIFY | QMF_PULSEIFFOCUS; s_ingame.team.generic.x = 320; s_ingame.team.generic.y = y; s_ingame.team.generic.id = ID_TEAM; s_ingame.team.generic.callback = InGame_Event; s_ingame.team.string = "START"; s_ingame.team.color = color_red; s_ingame.team.style = UI_CENTER | UI_SMALLFONT; y += INGAME_MENU_VERTICAL_SPACING; s_ingame.addbots.generic.type = MTYPE_PTEXT; s_ingame.addbots.generic.flags = QMF_CENTER_JUSTIFY | QMF_PULSEIFFOCUS; s_ingame.addbots.generic.x = 320; s_ingame.addbots.generic.y = y; s_ingame.addbots.generic.id = ID_ADDBOTS; s_ingame.addbots.generic.callback = InGame_Event; s_ingame.addbots.string = "ADD BOTS"; s_ingame.addbots.color = color_red; s_ingame.addbots.style = UI_CENTER | UI_SMALLFONT; if (!trap_Cvar_VariableValue("sv_running") || !trap_Cvar_VariableValue("bot_enable") || (trap_Cvar_VariableValue("g_gametype") == GT_SINGLE_PLAYER)) { s_ingame.addbots.generic.flags |= QMF_GRAYED; } y += INGAME_MENU_VERTICAL_SPACING; s_ingame.removebots.generic.type = MTYPE_PTEXT; s_ingame.removebots.generic.flags = QMF_CENTER_JUSTIFY | QMF_PULSEIFFOCUS; s_ingame.removebots.generic.x = 320; s_ingame.removebots.generic.y = y; s_ingame.removebots.generic.id = ID_REMOVEBOTS; s_ingame.removebots.generic.callback = InGame_Event; s_ingame.removebots.string = "REMOVE BOTS"; s_ingame.removebots.color = color_red; s_ingame.removebots.style = UI_CENTER | UI_SMALLFONT; if (!trap_Cvar_VariableValue("sv_running") || !trap_Cvar_VariableValue("bot_enable") || (trap_Cvar_VariableValue("g_gametype") == GT_SINGLE_PLAYER)) { s_ingame.removebots.generic.flags |= QMF_GRAYED; } y += INGAME_MENU_VERTICAL_SPACING; s_ingame.setup.generic.type = MTYPE_PTEXT; s_ingame.setup.generic.flags = QMF_CENTER_JUSTIFY | QMF_PULSEIFFOCUS; s_ingame.setup.generic.x = 320; s_ingame.setup.generic.y = y; s_ingame.setup.generic.id = ID_SETUP; s_ingame.setup.generic.callback = InGame_Event; s_ingame.setup.string = "SETUP"; s_ingame.setup.color = color_red; s_ingame.setup.style = UI_CENTER | UI_SMALLFONT; y += INGAME_MENU_VERTICAL_SPACING; s_ingame.loadout.generic.type = MTYPE_PTEXT; s_ingame.loadout.generic.flags = QMF_CENTER_JUSTIFY | QMF_PULSEIFFOCUS; s_ingame.loadout.generic.x = 320; s_ingame.loadout.generic.y = y; s_ingame.loadout.generic.id = ID_LOADOUT; s_ingame.loadout.generic.callback = InGame_Event; s_ingame.loadout.string = "LOADOUT"; s_ingame.loadout.color = color_red; s_ingame.loadout.style = UI_CENTER | UI_SMALLFONT; y += INGAME_MENU_VERTICAL_SPACING; s_ingame.server.generic.type = MTYPE_PTEXT; s_ingame.server.generic.flags = QMF_CENTER_JUSTIFY | QMF_PULSEIFFOCUS; s_ingame.server.generic.x = 320; s_ingame.server.generic.y = y; s_ingame.server.generic.id = ID_SERVERINFO; s_ingame.server.generic.callback = InGame_Event; s_ingame.server.string = "SERVER INFO"; s_ingame.server.color = color_red; s_ingame.server.style = UI_CENTER | UI_SMALLFONT; y += INGAME_MENU_VERTICAL_SPACING; s_ingame.restart.generic.type = MTYPE_PTEXT; s_ingame.restart.generic.flags = QMF_CENTER_JUSTIFY | QMF_PULSEIFFOCUS; s_ingame.restart.generic.x = 320; s_ingame.restart.generic.y = y; s_ingame.restart.generic.id = ID_RESTART; s_ingame.restart.generic.callback = InGame_Event; s_ingame.restart.string = "RESTART ARENA"; s_ingame.restart.color = color_red; s_ingame.restart.style = UI_CENTER | UI_SMALLFONT; if (!trap_Cvar_VariableValue("sv_running")) { s_ingame.restart.generic.flags |= QMF_GRAYED; } y += INGAME_MENU_VERTICAL_SPACING; s_ingame.resume.generic.type = MTYPE_PTEXT; s_ingame.resume.generic.flags = QMF_CENTER_JUSTIFY | QMF_PULSEIFFOCUS; s_ingame.resume.generic.x = 320; s_ingame.resume.generic.y = y; s_ingame.resume.generic.id = ID_RESUME; s_ingame.resume.generic.callback = InGame_Event; s_ingame.resume.string = "RESUME GAME"; s_ingame.resume.color = color_red; s_ingame.resume.style = UI_CENTER | UI_SMALLFONT; y += INGAME_MENU_VERTICAL_SPACING; s_ingame.leave.generic.type = MTYPE_PTEXT; s_ingame.leave.generic.flags = QMF_CENTER_JUSTIFY | QMF_PULSEIFFOCUS; s_ingame.leave.generic.x = 320; s_ingame.leave.generic.y = y; s_ingame.leave.generic.id = ID_LEAVEARENA; s_ingame.leave.generic.callback = InGame_Event; s_ingame.leave.string = "LEAVE ARENA"; s_ingame.leave.color = color_red; s_ingame.leave.style = UI_CENTER | UI_SMALLFONT; y += INGAME_MENU_VERTICAL_SPACING; s_ingame.quit.generic.type = MTYPE_PTEXT; s_ingame.quit.generic.flags = QMF_CENTER_JUSTIFY | QMF_PULSEIFFOCUS; s_ingame.quit.generic.x = 320; s_ingame.quit.generic.y = y; s_ingame.quit.generic.id = ID_QUIT; s_ingame.quit.generic.callback = InGame_Event; s_ingame.quit.string = "EXIT GAME"; s_ingame.quit.color = color_red; s_ingame.quit.style = UI_CENTER | UI_SMALLFONT; Menu_AddItem(&s_ingame.menu, &s_ingame.frame); Menu_AddItem(&s_ingame.menu, &s_ingame.team); Menu_AddItem(&s_ingame.menu, &s_ingame.addbots); Menu_AddItem(&s_ingame.menu, &s_ingame.removebots); Menu_AddItem(&s_ingame.menu, &s_ingame.setup); Menu_AddItem(&s_ingame.menu, &s_ingame.loadout); Menu_AddItem(&s_ingame.menu, &s_ingame.server); Menu_AddItem(&s_ingame.menu, &s_ingame.restart); Menu_AddItem(&s_ingame.menu, &s_ingame.resume); Menu_AddItem(&s_ingame.menu, &s_ingame.leave); Menu_AddItem(&s_ingame.menu, &s_ingame.quit); }
/* ================= InGame_MenuInit ================= */ void InGame_MenuInit( void ) { int y; uiClientState_t cs; char info[MAX_INFO_STRING]; int team; memset( &s_ingame, 0 ,sizeof(ingamemenu_t) ); InGame_Cache(); s_ingame.menu.wrapAround = qtrue; s_ingame.menu.fullscreen = qfalse; s_ingame.frame.generic.type = MTYPE_BITMAP; s_ingame.frame.generic.flags = QMF_INACTIVE; s_ingame.frame.generic.name = INGAME_FRAME; s_ingame.frame.generic.x = 320-233; s_ingame.frame.generic.y = 240-166-INGAME_MENU_VERTICAL_SPACING/2; s_ingame.frame.width = 466; s_ingame.frame.height = 332+INGAME_MENU_VERTICAL_SPACING/2; y = (s_ingame.frame.height - INGAME_MENU_VERTICAL_SPACING * (INGAME_MENU_ITEMS-1) - SMALLCHAR_HEIGHT)/2 + s_ingame.frame.generic.y; s_ingame.slugrock.generic.type = MTYPE_PTEXT; s_ingame.slugrock.generic.flags = QMF_CENTER_JUSTIFY|QMF_PULSEIFFOCUS; s_ingame.slugrock.generic.x = 320; s_ingame.slugrock.generic.y = y; s_ingame.slugrock.generic.id = ID_SLUGROCK; s_ingame.slugrock.generic.callback = InGame_Event; s_ingame.slugrock.string = "SLUGROCK"; s_ingame.slugrock.color = color_red; s_ingame.slugrock.style = UI_CENTER|UI_SMALLFONT; y += INGAME_MENU_VERTICAL_SPACING; s_ingame.team.generic.type = MTYPE_PTEXT; s_ingame.team.generic.flags = QMF_CENTER_JUSTIFY|QMF_PULSEIFFOCUS; s_ingame.team.generic.x = 320; s_ingame.team.generic.y = y; s_ingame.team.generic.id = ID_TEAM; s_ingame.team.generic.callback = InGame_Event; s_ingame.team.string = "START"; s_ingame.team.color = color_red; s_ingame.team.style = UI_CENTER|UI_SMALLFONT; y += INGAME_MENU_VERTICAL_SPACING; s_ingame.addbots.generic.type = MTYPE_PTEXT; s_ingame.addbots.generic.flags = QMF_CENTER_JUSTIFY|QMF_PULSEIFFOCUS; s_ingame.addbots.generic.x = 320; s_ingame.addbots.generic.y = y; s_ingame.addbots.generic.id = ID_ADDBOTS; s_ingame.addbots.generic.callback = InGame_Event; s_ingame.addbots.string = "ADD BOTS"; s_ingame.addbots.color = color_red; s_ingame.addbots.style = UI_CENTER|UI_SMALLFONT; if( !trap_Cvar_VariableValue( "sv_running" ) || !trap_Cvar_VariableValue( "bot_enable" ) || (trap_Cvar_VariableValue( "g_gametype" ) == GT_SINGLE_PLAYER)) { s_ingame.addbots.generic.flags |= QMF_GRAYED; } y += INGAME_MENU_VERTICAL_SPACING; s_ingame.removebots.generic.type = MTYPE_PTEXT; s_ingame.removebots.generic.flags = QMF_CENTER_JUSTIFY|QMF_PULSEIFFOCUS; s_ingame.removebots.generic.x = 320; s_ingame.removebots.generic.y = y; s_ingame.removebots.generic.id = ID_REMOVEBOTS; s_ingame.removebots.generic.callback = InGame_Event; s_ingame.removebots.string = "REMOVE BOTS"; s_ingame.removebots.color = color_red; s_ingame.removebots.style = UI_CENTER|UI_SMALLFONT; if( !trap_Cvar_VariableValue( "sv_running" ) || !trap_Cvar_VariableValue( "bot_enable" ) || (trap_Cvar_VariableValue( "g_gametype" ) == GT_SINGLE_PLAYER)) { s_ingame.removebots.generic.flags |= QMF_GRAYED; } y += INGAME_MENU_VERTICAL_SPACING; s_ingame.teamorders.generic.type = MTYPE_PTEXT; s_ingame.teamorders.generic.flags = QMF_CENTER_JUSTIFY|QMF_PULSEIFFOCUS; s_ingame.teamorders.generic.x = 320; s_ingame.teamorders.generic.y = y; s_ingame.teamorders.generic.id = ID_TEAMORDERS; s_ingame.teamorders.generic.callback = InGame_Event; s_ingame.teamorders.string = "TEAM ORDERS"; s_ingame.teamorders.color = color_red; s_ingame.teamorders.style = UI_CENTER|UI_SMALLFONT; if( !(trap_Cvar_VariableValue( "g_gametype" ) >= GT_TEAM) ) { s_ingame.teamorders.generic.flags |= QMF_GRAYED; } else { trap_GetClientState( &cs ); trap_GetConfigString( CS_PLAYERS + cs.clientNum, info, MAX_INFO_STRING ); team = atoi( Info_ValueForKey( info, "t" ) ); if( team == TEAM_SPECTATOR ) { s_ingame.teamorders.generic.flags |= QMF_GRAYED; } } y += INGAME_MENU_VERTICAL_SPACING; s_ingame.setup.generic.type = MTYPE_PTEXT; s_ingame.setup.generic.flags = QMF_CENTER_JUSTIFY|QMF_PULSEIFFOCUS; s_ingame.setup.generic.x = 320; s_ingame.setup.generic.y = y; s_ingame.setup.generic.id = ID_SETUP; s_ingame.setup.generic.callback = InGame_Event; s_ingame.setup.string = "SETUP"; s_ingame.setup.color = color_red; s_ingame.setup.style = UI_CENTER|UI_SMALLFONT; y += INGAME_MENU_VERTICAL_SPACING; s_ingame.server.generic.type = MTYPE_PTEXT; s_ingame.server.generic.flags = QMF_CENTER_JUSTIFY|QMF_PULSEIFFOCUS; s_ingame.server.generic.x = 320; s_ingame.server.generic.y = y; s_ingame.server.generic.id = ID_SERVERINFO; s_ingame.server.generic.callback = InGame_Event; s_ingame.server.string = "SERVER INFO"; s_ingame.server.color = color_red; s_ingame.server.style = UI_CENTER|UI_SMALLFONT; y += INGAME_MENU_VERTICAL_SPACING; s_ingame.restart.generic.type = MTYPE_PTEXT; s_ingame.restart.generic.flags = QMF_CENTER_JUSTIFY|QMF_PULSEIFFOCUS; s_ingame.restart.generic.x = 320; s_ingame.restart.generic.y = y; s_ingame.restart.generic.id = ID_RESTART; s_ingame.restart.generic.callback = InGame_Event; s_ingame.restart.string = "RESTART ARENA"; s_ingame.restart.color = color_red; s_ingame.restart.style = UI_CENTER|UI_SMALLFONT; if( !trap_Cvar_VariableValue( "sv_running" ) ) { s_ingame.restart.generic.flags |= QMF_GRAYED; } y += INGAME_MENU_VERTICAL_SPACING; s_ingame.resume.generic.type = MTYPE_PTEXT; s_ingame.resume.generic.flags = QMF_CENTER_JUSTIFY|QMF_PULSEIFFOCUS; s_ingame.resume.generic.x = 320; s_ingame.resume.generic.y = y; s_ingame.resume.generic.id = ID_RESUME; s_ingame.resume.generic.callback = InGame_Event; s_ingame.resume.string = "RESUME GAME"; s_ingame.resume.color = color_red; s_ingame.resume.style = UI_CENTER|UI_SMALLFONT; y += INGAME_MENU_VERTICAL_SPACING; s_ingame.leave.generic.type = MTYPE_PTEXT; s_ingame.leave.generic.flags = QMF_CENTER_JUSTIFY|QMF_PULSEIFFOCUS; s_ingame.leave.generic.x = 320; s_ingame.leave.generic.y = y; s_ingame.leave.generic.id = ID_LEAVEARENA; s_ingame.leave.generic.callback = InGame_Event; s_ingame.leave.string = "LEAVE ARENA"; s_ingame.leave.color = color_red; s_ingame.leave.style = UI_CENTER|UI_SMALLFONT; y += INGAME_MENU_VERTICAL_SPACING; s_ingame.quit.generic.type = MTYPE_PTEXT; s_ingame.quit.generic.flags = QMF_CENTER_JUSTIFY|QMF_PULSEIFFOCUS; s_ingame.quit.generic.x = 320; s_ingame.quit.generic.y = y; s_ingame.quit.generic.id = ID_QUIT; s_ingame.quit.generic.callback = InGame_Event; s_ingame.quit.string = "EXIT GAME"; s_ingame.quit.color = color_red; s_ingame.quit.style = UI_CENTER|UI_SMALLFONT; Menu_AddItem( &s_ingame.menu, &s_ingame.frame ); Menu_AddItem( &s_ingame.menu, &s_ingame.slugrock ); Menu_AddItem( &s_ingame.menu, &s_ingame.team ); Menu_AddItem( &s_ingame.menu, &s_ingame.addbots ); Menu_AddItem( &s_ingame.menu, &s_ingame.removebots ); Menu_AddItem( &s_ingame.menu, &s_ingame.teamorders ); Menu_AddItem( &s_ingame.menu, &s_ingame.setup ); Menu_AddItem( &s_ingame.menu, &s_ingame.slugrock ); Menu_AddItem( &s_ingame.menu, &s_ingame.server ); Menu_AddItem( &s_ingame.menu, &s_ingame.restart ); Menu_AddItem( &s_ingame.menu, &s_ingame.resume ); Menu_AddItem( &s_ingame.menu, &s_ingame.leave ); Menu_AddItem( &s_ingame.menu, &s_ingame.quit ); }
/* ================= InGame_MenuInit ================= */ void InGame_MenuInit( void ) { int y; // uiClientState_t cs; char info[MAX_INFO_STRING]; // int team; int allowVote; qboolean isLocalServer = ( trap_Cvar_VariableValue( "sv_running" ) ); int gametype = trap_Cvar_VariableValue( "g_gametype" ); qboolean isSinglePlayer = ( gametype == GT_SINGLE_PLAYER); qboolean isSyC = ( gametype == GT_SPRAYFFA || gametype == GT_SPRAY ); trap_GetConfigString(CS_SERVERINFO, info, MAX_INFO_STRING); allowVote = atoi( Info_ValueForKey( info,"g_allowVote" ) ); memset( &s_ingame, 0 ,sizeof(ingamemenu_t) ); InGame_Cache(); s_ingame.menu.wrapAround = qtrue; s_ingame.menu.fullscreen = qfalse; s_ingame.menu.noPushSelect = qtrue; s_ingame.menu.draw = InGame_Draw; y = 110; s_ingame.team.generic.type = MTYPE_TEXTS; s_ingame.team.fontHeight = 20.0f; s_ingame.team.generic.flags = QMF_CENTER_JUSTIFY;//|QMF_PULSEIFFOCUS; s_ingame.team.generic.x = 320; s_ingame.team.generic.y = y; s_ingame.team.generic.id = ID_TEAM; s_ingame.team.generic.callback = InGame_Event; s_ingame.team.string = "START"; s_ingame.team.color = color_black; s_ingame.team.focuscolor = color_orange; s_ingame.team.style = UI_CENTER|UI_SMALLFONT; y += INGAME_MENU_VERTICAL_SPACING; s_ingame.addbots.generic.type = MTYPE_TEXTS; s_ingame.addbots.fontHeight = 20.0f; s_ingame.addbots.generic.flags = QMF_CENTER_JUSTIFY;//|QMF_PULSEIFFOCUS; s_ingame.addbots.generic.x = 320; s_ingame.addbots.generic.y = y; s_ingame.addbots.generic.id = ID_ADDBOTS; s_ingame.addbots.generic.callback = InGame_Event; s_ingame.addbots.string = "ADD BOTS"; s_ingame.addbots.color = color_black; s_ingame.addbots.focuscolor = color_orange; s_ingame.addbots.style = UI_CENTER|UI_SMALLFONT; if( !isLocalServer || !trap_Cvar_VariableValue( "bot_enable" ) || isSinglePlayer) { s_ingame.addbots.generic.flags |= QMF_GRAYED; } y += INGAME_MENU_VERTICAL_SPACING; s_ingame.removebots.generic.type = MTYPE_TEXTS; s_ingame.removebots.fontHeight = 20.0f; s_ingame.removebots.generic.flags = QMF_CENTER_JUSTIFY;//|QMF_PULSEIFFOCUS; s_ingame.removebots.generic.x = 320; s_ingame.removebots.generic.y = y; s_ingame.removebots.generic.id = ID_REMOVEBOTS; s_ingame.removebots.generic.callback = InGame_Event; s_ingame.removebots.string = "REMOVE BOTS"; s_ingame.removebots.color = color_black; s_ingame.removebots.focuscolor = color_orange; s_ingame.removebots.style = UI_CENTER|UI_SMALLFONT; if( !isLocalServer || !trap_Cvar_VariableValue( "bot_enable" ) || isSinglePlayer) { s_ingame.removebots.generic.flags |= QMF_GRAYED; } y += INGAME_MENU_VERTICAL_SPACING; s_ingame.voiceingame.generic.type = MTYPE_TEXTS; s_ingame.voiceingame.fontHeight = 20.0f; s_ingame.voiceingame.generic.flags = QMF_CENTER_JUSTIFY;//|QMF_PULSEIFFOCUS; s_ingame.voiceingame.generic.x = 320; s_ingame.voiceingame.generic.y = y; s_ingame.voiceingame.generic.id = ID_VOICEINGAME; s_ingame.voiceingame.generic.callback = InGame_Event; s_ingame.voiceingame.string = "VOICE CHAT"; s_ingame.voiceingame.color = color_black; s_ingame.voiceingame.focuscolor = color_orange; s_ingame.voiceingame.style = UI_CENTER|UI_SMALLFONT; // voip has to be supported by both server and client if( !trap_Cvar_VariableValue("sv_voip") || !trap_Cvar_VariableValue("cl_voip") || !trap_Cvar_VariableValue("s_useOpenAL") ) { s_ingame.voiceingame.generic.flags |= QMF_GRAYED; } /* s_ingame.teamorders.generic.type = MTYPE_TEXTS; s_ingame.teamorders.fontHeight = 20.0f; s_ingame.teamorders.generic.flags = QMF_CENTER_JUSTIFY|QMF_PULSEIFFOCUS; s_ingame.teamorders.generic.x = 320; s_ingame.teamorders.generic.y = y; s_ingame.teamorders.generic.id = ID_TEAMORDERS; s_ingame.teamorders.generic.callback = InGame_Event; s_ingame.teamorders.string = "TEAM ORDERS"; s_ingame.teamorders.color = color_black; s_ingame.teamorders.style = UI_CENTER|UI_SMALLFONT; if( !(trap_Cvar_VariableValue( "g_gametype" ) >= GT_TEAM) ) { s_ingame.teamorders.generic.flags |= QMF_GRAYED; } else { trap_GetClientState( &cs ); trap_GetConfigString( CS_PLAYERS + cs.clientNum, info, MAX_INFO_STRING ); team = atoi( Info_ValueForKey( info, "t" ) ); if( team == TEAM_SPECTATOR ) { s_ingame.teamorders.generic.flags |= QMF_GRAYED; } } */ y += INGAME_MENU_VERTICAL_SPACING; s_ingame.callvote.generic.type = MTYPE_TEXTS; s_ingame.callvote.fontHeight = 20.0f; s_ingame.callvote.generic.flags = QMF_CENTER_JUSTIFY;//|QMF_PULSEIFFOCUS; if(!allowVote) s_ingame.callvote.generic.flags |= QMF_GRAYED; s_ingame.callvote.generic.x = 320; s_ingame.callvote.generic.y = y; s_ingame.callvote.generic.id = ID_CALLVOTE; s_ingame.callvote.generic.callback = InGame_Event; s_ingame.callvote.string = "CALL VOTE"; s_ingame.callvote.color = color_black; s_ingame.callvote.focuscolor = color_orange; s_ingame.callvote.style = UI_CENTER|UI_SMALLFONT; y += INGAME_MENU_VERTICAL_SPACING; s_ingame.setup.generic.type = MTYPE_TEXTS; s_ingame.setup.fontHeight = 20.0f; s_ingame.setup.generic.flags = QMF_CENTER_JUSTIFY;//|QMF_PULSEIFFOCUS; s_ingame.setup.generic.x = 320; s_ingame.setup.generic.y = y; s_ingame.setup.generic.id = ID_SETUP; s_ingame.setup.generic.callback = InGame_Event; s_ingame.setup.string = "SETUP"; s_ingame.setup.color = color_black; s_ingame.setup.focuscolor = color_orange; s_ingame.setup.style = UI_CENTER|UI_SMALLFONT; y += INGAME_MENU_VERTICAL_SPACING; s_ingame.nextmap.generic.type = MTYPE_TEXTS; s_ingame.nextmap.fontHeight = 20.0f; s_ingame.nextmap.generic.flags = QMF_CENTER_JUSTIFY;//|QMF_PULSEIFFOCUS; s_ingame.nextmap.generic.x = 320; s_ingame.nextmap.generic.y = y; s_ingame.nextmap.generic.id = ID_NEXTMAP; s_ingame.nextmap.generic.callback = InGame_Event; s_ingame.nextmap.string = "NEXT MAP"; s_ingame.nextmap.color = color_black; s_ingame.nextmap.focuscolor = color_orange; s_ingame.nextmap.style = UI_CENTER|UI_SMALLFONT; if( !isLocalServer ) { s_ingame.nextmap.generic.flags |= QMF_GRAYED; } y += INGAME_MENU_VERTICAL_SPACING; s_ingame.server.generic.type = MTYPE_TEXTS; s_ingame.server.fontHeight = 20.0f; s_ingame.server.generic.flags = QMF_CENTER_JUSTIFY;//|QMF_PULSEIFFOCUS; s_ingame.server.generic.x = 320; s_ingame.server.generic.y = y; s_ingame.server.generic.id = ID_SERVERINFO; s_ingame.server.generic.callback = InGame_Event; s_ingame.server.string = "SERVER INFO"; s_ingame.server.color = color_black; s_ingame.server.focuscolor = color_orange; s_ingame.server.style = UI_CENTER|UI_SMALLFONT; y += INGAME_MENU_VERTICAL_SPACING; s_ingame.restart.generic.type = MTYPE_TEXTS; s_ingame.restart.fontHeight = 20.0f; s_ingame.restart.generic.flags = QMF_CENTER_JUSTIFY;//|QMF_PULSEIFFOCUS; s_ingame.restart.generic.x = 320; s_ingame.restart.generic.y = y; s_ingame.restart.generic.id = ID_RESTART; s_ingame.restart.generic.callback = InGame_Event; s_ingame.restart.string = "RESTART MAP"; s_ingame.restart.color = color_black; s_ingame.restart.focuscolor = color_orange; s_ingame.restart.style = UI_CENTER|UI_SMALLFONT; if( !isLocalServer ) { s_ingame.restart.generic.flags |= QMF_GRAYED; } if( isSyC ) { y += INGAME_MENU_VERTICAL_SPACING; s_ingame.rechooselogo.generic.type = MTYPE_TEXTS; s_ingame.rechooselogo.fontHeight = 20.0f; s_ingame.rechooselogo.generic.flags = QMF_CENTER_JUSTIFY;//|QMF_PULSEIFFOCUS; s_ingame.rechooselogo.generic.x = 320; s_ingame.rechooselogo.generic.y = y; s_ingame.rechooselogo.generic.id = ID_RECHOOSELOGO; s_ingame.rechooselogo.generic.callback = InGame_Event; s_ingame.rechooselogo.string = "SELECT LOGO"; s_ingame.rechooselogo.color = color_black; s_ingame.rechooselogo.focuscolor = color_orange; s_ingame.rechooselogo.style = UI_CENTER|UI_SMALLFONT; } y += INGAME_MENU_VERTICAL_SPACING; s_ingame.resume.generic.type = MTYPE_TEXTS; s_ingame.resume.fontHeight = 20.0f; s_ingame.resume.generic.flags = QMF_CENTER_JUSTIFY;//|QMF_PULSEIFFOCUS; s_ingame.resume.generic.x = 320; s_ingame.resume.generic.y = y; s_ingame.resume.generic.id = ID_RESUME; s_ingame.resume.generic.callback = InGame_Event; s_ingame.resume.string = "RESUME GAME"; s_ingame.resume.color = color_black; s_ingame.resume.focuscolor = color_orange; s_ingame.resume.style = UI_CENTER|UI_SMALLFONT; y += INGAME_MENU_VERTICAL_SPACING; s_ingame.leave.generic.type = MTYPE_TEXTS; s_ingame.leave.fontHeight = 20.0f; s_ingame.leave.generic.flags = QMF_CENTER_JUSTIFY;//|QMF_PULSEIFFOCUS; s_ingame.leave.generic.x = 320; s_ingame.leave.generic.y = y; s_ingame.leave.generic.id = ID_LEAVEARENA; s_ingame.leave.generic.callback = InGame_Event; s_ingame.leave.string = "LEAVE ARENA"; s_ingame.leave.color = color_black; s_ingame.leave.focuscolor = color_orange; s_ingame.leave.style = UI_CENTER|UI_SMALLFONT; y += INGAME_MENU_VERTICAL_SPACING; s_ingame.quit.generic.type = MTYPE_TEXTS; s_ingame.quit.fontHeight = 20.0f; s_ingame.quit.generic.flags = QMF_CENTER_JUSTIFY;//|QMF_PULSEIFFOCUS; s_ingame.quit.generic.x = 320; s_ingame.quit.generic.y = y; s_ingame.quit.generic.id = ID_QUIT; s_ingame.quit.generic.callback = InGame_Event; s_ingame.quit.string = "EXIT GAME"; s_ingame.quit.color = color_black; s_ingame.quit.focuscolor = color_orange; s_ingame.quit.style = UI_CENTER|UI_SMALLFONT; Menu_AddItem( &s_ingame.menu, &s_ingame.team ); Menu_AddItem( &s_ingame.menu, &s_ingame.addbots ); Menu_AddItem( &s_ingame.menu, &s_ingame.removebots ); Menu_AddItem( &s_ingame.menu, &s_ingame.voiceingame ); // Menu_AddItem( &s_ingame.menu, &s_ingame.teamorders ); Menu_AddItem( &s_ingame.menu, &s_ingame.callvote ); Menu_AddItem( &s_ingame.menu, &s_ingame.setup ); Menu_AddItem( &s_ingame.menu, &s_ingame.nextmap ); Menu_AddItem( &s_ingame.menu, &s_ingame.server ); Menu_AddItem( &s_ingame.menu, &s_ingame.restart ); if(isSyC) { Menu_AddItem( &s_ingame.menu, &s_ingame.rechooselogo ); } Menu_AddItem( &s_ingame.menu, &s_ingame.resume ); Menu_AddItem( &s_ingame.menu, &s_ingame.leave ); Menu_AddItem( &s_ingame.menu, &s_ingame.quit ); }