Exemplo n.º 1
0
void Options_Effects_MenuDraw(void)
{
    Menu_DrawBanner("m_banner_options");

    Menu_AdjustCursor(&s_options_effects_menu, 1);
    Menu_Draw(&s_options_effects_menu);
}
Exemplo n.º 2
0
static void Multiplayer_MenuDraw (void)
{
	Menu_DrawBanner( "m_banner_multiplayer" );

	Menu_AdjustCursor( &s_multiplayer_menu, 1 );
	Menu_Draw( &s_multiplayer_menu );
}
Exemplo n.º 3
0
void Options_Interface_MenuDraw (void)
{
	Menu_DrawBanner( "m_banner_options" );

	Menu_AdjustCursor( &s_options_interface_menu, 1 );
	Menu_Draw( &s_options_interface_menu );
}
Exemplo n.º 4
0
void SaveGame_MenuDraw(void)
{
    Menu_DrawBanner("m_banner_save_game");
    Menu_AdjustCursor(&s_savegame_menu, 1);
    Menu_Draw(&s_savegame_menu);
    DrawSaveshot(false);
}
Exemplo n.º 5
0
void LoadGame_MenuDraw(void)
{
    Menu_DrawBanner("m_banner_load_game");
//	Menu_AdjustCursor( &s_loadgame_menu, 1 );
    Menu_Draw(&s_loadgame_menu);
    DrawSaveshot(true);
}
Exemplo n.º 6
0
void Options_Screen_MenuDraw (void)
{
	Menu_DrawBanner( "m_banner_options" );

	Menu_AdjustCursor( &s_options_screen_menu, 1 );
	Menu_Draw( &s_options_screen_menu );
	DrawMenuCrosshair();
}
Exemplo n.º 7
0
/*
================
Menu_Video_Draw
================
*/
void Menu_Video_Draw (void)
{
	//int32_t w, h;

	// draw the banner
	Menu_DrawBanner("m_banner_video");

	// move cursor to a reasonable starting position
	Menu_AdjustCursor( &s_video_menu, 1 );

	// draw the menu
	Menu_Draw( &s_video_menu );
}
Exemplo n.º 8
0
void Options_VR_OVR_MenuDraw (void)
{
	Menu_DrawBanner( "m_banner_options" );
	Menu_AdjustCursor( &s_options_vr_ovr_menu, 1 );
	Menu_Draw( &s_options_vr_ovr_menu );
}
Exemplo n.º 9
0
void DMOptions_MenuDraw(void)
{
	Menu_DrawBanner( "m_banner_start_server" ); // added
	Menu_Draw( &s_dmoptions_menu );
}
Exemplo n.º 10
0
void PlayerConfig_MenuDraw (void)
{
	refdef_t	refdef;
	float		rx, ry, rw, rh;

	Menu_DrawBanner ("m_banner_plauer_setup"); // typo for image name is id's fault

	memset(&refdef, 0, sizeof(refdef));

	rx = 0;							ry = 0;
	rw = SCREEN_WIDTH;				rh = SCREEN_HEIGHT;
	SCR_AdjustFrom640 (&rx, &ry, &rw, &rh, ALIGN_CENTER);
	refdef.x = rx;		refdef.y = ry;
	refdef.width = rw;	refdef.height = rh;
	refdef.fov_x = 50;
	refdef.fov_y = CalcFov (refdef.fov_x, refdef.width, refdef.height);
	refdef.time = cls.realtime*0.001;
 
	if ( s_pmi[s_player_model_box.curvalue].skindisplaynames )
	{
		int			yaw;
		int			maxframe = 29;
		vec3_t		modelOrg;
		// Psychopspaz's support for showing weapon model
		entity_t	entity[2], *ent;

		refdef.num_entities = 0;
		refdef.entities = entity;

		yaw = anglemod(cl.time/10);

		VectorSet (modelOrg, 150, (hand->value==1)?25:-25, 0); // was 80, 0, 0

		// Setup player model
		ent = &entity[0];
		memset (&entity[0], 0, sizeof(entity[0]));

		// moved registration code to init and change only
		ent->model = playermodel;
		ent->skin = playerskin;

		ent->flags = RF_FULLBRIGHT|RF_NOSHADOW|RF_DEPTHHACK;
		if (hand->value == 1)
			ent->flags |= RF_MIRRORMODEL;

		ent->origin[0] = modelOrg[0];
		ent->origin[1] = modelOrg[1];
		ent->origin[2] = modelOrg[2];

		VectorCopy( ent->origin, ent->oldorigin );
		ent->frame = 0;
		ent->oldframe = 0;
		ent->backlerp = 0.0;
		ent->angles[1] = yaw;
		//if ( ++yaw > 360 )
		//	yaw -= 360;
		
		if (hand->value == 1)
			ent->angles[1] = 360 - ent->angles[1];

		refdef.num_entities++;


		// Setup weapon model
		ent = &entity[1];
		memset (&entity[1], 0, sizeof(entity[1]));

		// moved registration code to init and change only
		ent->model = weaponmodel;

		if (ent->model)
		{
			ent->skinnum = 0;

			ent->flags = RF_FULLBRIGHT|RF_NOSHADOW|RF_DEPTHHACK;
			if (hand->value == 1)
				ent->flags |= RF_MIRRORMODEL;

			ent->origin[0] = modelOrg[0];
			ent->origin[1] = modelOrg[1];
			ent->origin[2] = modelOrg[2];

			VectorCopy( ent->origin, ent->oldorigin );
			ent->frame = 0;
			ent->oldframe = 0;
			ent->backlerp = 0.0;
			ent->angles[1] = yaw;
			
			if (hand->value == 1)
				ent->angles[1] = 360 - ent->angles[1];

			refdef.num_entities++;
		}


		refdef.areabits = 0;
		refdef.lightstyles = 0;
		refdef.rdflags = RDF_NOWORLDMODEL;

		Menu_Draw( &s_player_config_menu );

		// skin selection preview
		PlayerConfig_DrawSkinSelection ();

		R_RenderFrame( &refdef );
	}
}
Exemplo n.º 11
0
void JoinServer_MenuDraw(void)
{
	Menu_DrawBanner( "m_banner_join_server" );
	Menu_Draw( &s_joinserver_menu );
}