Ejemplo n.º 1
0
//再生
void MyDrawMovie::Start() {
	if (!CheckHandleASyncLoad(handle)) {
		SetSpeed();
		if (GetNowFlame() == GetEndFlame())
			Seek();
		if(GetMovieStateToGraph(handle) == 0)
			PlayMovieToGraph(handle);
	}
}
Ejemplo n.º 2
0
int BmsPlayer::casc_DrawGraph(int channel, int index){
	if (graph_handle.size() < channel_array.at(channel).at(index).first
		&& 0 < channel_array.at(channel).at(index).first)
		return 0;

	if (!(before_graph_index == index))
		PlayMovieToGraph(graph_handle.at(channel_array.at(channel).at(index).first));

	DrawExtendGraph(560, 100, 1060, 600,graph_handle.at(channel_array.at(channel).at(index).first), FALSE);
	
	before_graph_index = index;
	return 0;
}
Ejemplo n.º 3
0
/*アイキャッチ*/
 void TextClass::EyeCatching(UserClass &User){
	MouseClass* Mouse = MouseClass::GetInstance();

	const int MinVol    = 9000;
	const int FadeSpeed = 7;

	//static bool SoundBack  = FALSE;
	static bool FirstFlag  = FALSE;
	static bool PlayFlag   = FALSE;
	static bool FadeFlag1  = FALSE;
	static bool FadeFlag2  = TRUE;
	static int FadeCount   = 255;
	static int MovieVol;
	static int MovieHandle;
	static int TmpSoundCode;


	//音量取得
	MovieVol = User.GetBGMVol() * 4;

	//現在のサウンドコードのバックアップ
	//if( SoundBack == FALSE ){
	//	TmpSoundCode = User.GetBGMCode();
	//	SoundBack = TRUE;
	//}

	//音楽停止 
	User.SetBGMCode( GAME_BGM::STOP );

	//フェードアウト処理
	if( FadeFlag1 == FALSE && FadeFlag2 == TRUE ){
		SetDrawBright(FadeCount,FadeCount,FadeCount);
		FadeCount -= FadeSpeed;
		if( FadeCount <= 0 ) FadeFlag1 = TRUE;
	}

	//再生前の初期化
	if( FirstFlag == FALSE && FadeFlag1 == TRUE ){
		SetDrawBright(255,255,255);
		MovieHandle = LoadGraph("./resource/movie/eyecatch.ogv");
		SetMovieVolumeToGraph( MinVol + MovieVol , MovieHandle );
		PlayMovieToGraph( MovieHandle );
		FirstFlag = TRUE;
		PlayFlag  = TRUE;
	}

	//動画再生
	if( PlayFlag == TRUE ){
		DrawGraph(0,0,MovieHandle,TRUE);
		WaitTimer(17);
	}

	//再生中か判断
	if( GetMovieStateToGraph(MovieHandle) != 1 && FadeFlag1 == TRUE ){
		PlayFlag  = FALSE;
		FirstFlag = FALSE;
		FadeFlag1 = FALSE;
		FadeFlag2 = FALSE;
	}

	//フェードイン
	if( FadeFlag2 == FALSE ){
		SetDrawBright(FadeCount,FadeCount,FadeCount);
		FadeCount += FadeSpeed;
		if( FadeCount >= 255 ){
			FadeFlag2 = TRUE;
			//SoundBack = FALSE;
			//User.SetBGMCode( TmpSoundCode );
			WriteMode = NORMAL;
		}
	}


	//メッセージ描画
	//DrawString(300,windowY - windowY / 3 + 50,"アイキャッチだよ、クリックで進むよっ!",GetColor(0,0,0));

	//if( Mouse->GetState(MOUSE::LEFT) == 1 ){
	//	WriteMode = NORMAL;
	//}
}