let SelectEffect=false;
let SelectBerPosY=100;
sub MenuDraw
{
		SetFontColor(255,255,255,50,50,255);
		if(StageState==Menu)
		{
	//	SelectBer(SelectBerPosY);
/////////////////////////////////////////////////////////////////////////////
////////////////////////メニュー描画部/////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
		if(MenuState==Menu)
		{
			if(Select==Start)
			{
		SelectBer(100);
				GameStartDisplay(180,100,255,255,255,255);
			}
			else
			{
				GameStartDisplay(180,100,150,255,255,255);
			}

			if(Select==Extra)
			{
			//	DrawText("Extra",80,120,32,255);
			//	DrawText("Extraモードで開始します",80,360,18,255);
			}
			else
			{
			//	DrawText("Extra",80,120,18,255);
			}

			if(Select==Practice)
			{
		SelectBer(150);
				PracticeDisplay(150,150,255,255,255,255);
		//		DrawText("プラクティスを開始します",80,360,18,255);
			}
			else
			{
				PracticeDisplay(150,150,150,255,255,255);
			}

			if(Select==Result)
			{
		SelectBer(200);
				ResultDisplay(132,200,255,255,255,255);
		//		DrawText("色々な記録が見れます",80,360,18,255);
			}
			else
			{
				ResultDisplay(132,200,150,255,255,255);
			}


			if(Select==Config)
			{
		SelectBer(250);
				ConfigDisplay(132,250,255,255,255,255);
		//		DrawText("普通に終了します",80,360,18,255);
			}
			else
			{
				ConfigDisplay(132,250,150,255,255,255);
			}

			if(Select==Quit)
			{
		SelectBer(300);
				QuitDisplay(115,300,255,255,255,255);
		//		DrawText("普通に終了します",80,360,18,255);
			}
			else
			{
				QuitDisplay(115,300,150,255,255,255);
			}
		}
/////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////難易度選択描画部/////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////
		if(MenuState==MenuDifficult)
		{
		//	DrawText("Choose Level",120,28,32,255);
			if(Select==EASY)
			{
		SelectBer(120);
				ModerateDisplay(GetCenterX,120,255,255,255,255);
		//		DrawText("普通の難易度",80,360,18,255);
			}
			else
			{
				ModerateDisplay(GetCenterX,120,150,255,255,255);
			}

			if(Select==NORMAL)
			{
		SelectBer(185);
				ExtreamDisplay(GetCenterX,185,255,255,255,255);
		//		DrawText("過激な難易度",80,360,18,255);
			}
			else
			{
				ExtreamDisplay(GetCenterX,185,150,255,250,255);
			}

			if(Select==HARD)
			{
		SelectBer(250);
			ApocalypseDisplay(GetCenterX,250,255,255,255,255);
		//	DrawText("終末的な難易度",80,360,18,255);
			}
			else
			{
			ApocalypseDisplay(GetCenterX,250,150,255,255,255);
			}

			if(Select==LUNATIC)
			{
			//	DrawText("Lunatic",80,200,32,255);
			//	DrawText("かなり難しい",80,360,18,255);
			}
			else
			{
			//	DrawText("Lunatic",80,200,18,255);
			}
		}
//////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////プラクティス描画部///////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////
		if(MenuState==MenuPractice)
		{
		//	DrawText("Choose Level",120,28,32,255);
			if(Select==EASYPRACTICE)
			{
		SelectBer(120);
				ModerateDisplay(GetCenterX,120,255,255,255,255);
		//		DrawText("普通の難易度",80,360,18,255);
			}
			else
			{
				ModerateDisplay(GetCenterX,120,150,255,255,255);
			}

			if(Select==NORMALPRACTICE)
			{
		SelectBer(185);
				ExtreamDisplay(GetCenterX,185,255,255,255,255);
		//		DrawText("過激な難易度",80,360,18,255);
			}
			else
			{
				ExtreamDisplay(GetCenterX,185,150,255,250,255);
			}

			if(Select==HARDPRACTICE)
			{
		SelectBer(250);
			ApocalypseDisplay(GetCenterX,250,255,255,255,255);
		//	DrawText("終末的な難易度",80,360,18,255);
			}
			else
			{
			ApocalypseDisplay(GetCenterX,250,150,255,255,255);
			}

			if(Select==LUNATICPRACTICE)
			{
			//	DrawText("Lunatic",80,200,32,255);
			//	DrawText("Lunaticのプラクティスを開始",80,360,18,255);
			}
			else
			{
			//	DrawText("Lunatic",80,200,18,255);
			}

		}
		if(MenuState==MenuPracticeStage)
		{
		//	DrawText("Choose Stage",120,28,32,255);
			if(Select==STAGE1)
			{
		SelectBer(100);
				PracticeStageDisplay(GetCenterX-16,100,255,255,255,255);
				PracticeStageNumDisplay(GetCenterX-16+75,100,255,255,255,255,1);
			//	DrawText("STAGE1",80,80,32,255);
			//	DrawText("STAGE1のプラクティスを開始",80,360,18,255);
			}
			else
			{
				PracticeStageDisplay(GetCenterX-16,100,150,255,255,255);
				PracticeStageNumDisplay(GetCenterX-16+75,100,150,255,255,255,1);
			//	DrawText("STAGE1",80,80,18,255);
			}

			if(Select==STAGE2)
			{
		SelectBer(160);
				PracticeStageDisplay(GetCenterX-16,160,255,255,255,255);
				PracticeStageNumDisplay(GetCenterX-16+75,160,255,255,255,255,2);
			//	DrawText("STAGE2",80,120,32,255);
			//	DrawText("STAGE2のプラクティスを開始",80,360,18,255);
			}
			else
			{
				PracticeStageDisplay(GetCenterX-16,160,150,255,255,255);
				PracticeStageNumDisplay(GetCenterX-16+75,160,150,255,255,255,2);
			//	DrawText("STAGE2",80,120,18,255);
			}

			if(Select==STAGE3)
			{
		SelectBer(220);
				PracticeStageDisplay(GetCenterX-16,220,255,255,255,255);
				PracticeStageNumDisplay(GetCenterX-16+75,220,255,255,255,255,3);
			//	DrawText("STAGE3",80,160,32,255);
			//	DrawText("STAGE3のプラクティスを開始",80,360,18,255);
			}
			else
			{
				PracticeStageDisplay(GetCenterX-16,220,150,255,255,255);
				PracticeStageNumDisplay(GetCenterX-16+75,220,150,255,255,255,3);
			//	DrawText("STAGE3",80,160,18,255);
			}

			if(Select==STAGE4)
			{
		SelectBer(280);
				PracticeStageDisplay(GetCenterX-16,280,255,255,255,255);
				PracticeStageNumDisplay(GetCenterX-16+75,280,255,255,255,255,4);
			//	DrawText("STAGE4",80,200,32,255);
			//	DrawText("STAGE4のプラクティスを開始",80,360,18,255);
			}
			else
			{
				PracticeStageDisplay(GetCenterX-16,280,150,255,255,255);
				PracticeStageNumDisplay(GetCenterX-16+75,280,150,255,255,255,4);
			//	DrawText("STAGE4",80,200,18,255);
			}
			if(Select==STAGE5)
			{
		SelectBer(340);
				PracticeStageDisplay(GetCenterX-16,340,255,255,255,255);
				PracticeStageNumDisplay(GetCenterX-16+75,340,255,255,255,255,5);
			//	DrawText("STAGE5",80,240,32,255);
			//	DrawText("STAGE5のプラクティスを開始",80,360,18,255);
			}
			else
			{
				PracticeStageDisplay(GetCenterX-16,340,150,255,255,255);
				PracticeStageNumDisplay(GetCenterX-16+75,340,150,255,255,255,5);
			//	DrawText("STAGE5",80,240,18,255);
			}
			if(Select==STAGE6)
			{
			//	DrawText("STAGE6",80,280,32,255);
			//	DrawText("STAGE6のプラクティスを開始",80,360,18,255);
			}
			else
			{
			//	DrawText("STAGE6",80,280,18,255);
			}
		}
//////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////スペルカードプラクティス描画部///////////////////////////
//////////////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////リザルト描画部//////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////
		if(MenuState==MenuResult)
		{
		//	DrawText("Choose Result",120,28,32,255);
			if(Select==ResultSCORE)
			{
		SelectBer(120);
			//	DrawText("SCORE",80,120,32,255);
				ScoreDisplay(GetCenterX,120,255,255,255,255);
		//		DrawText("ハイスコアなどが見れます",80,360,18,255);
			}
			else
			{
			//	DrawText("SCORE",80,120,18,255);

				ScoreDisplay(GetCenterX,120,150,255,255,255);
			}

			if(Select==ResultSPELL)
			{
		SelectBer(200);
				AchievementDisplay(GetCenterX,200,255,255,255,255);
			}
			else
			{

				AchievementDisplay(GetCenterX,200,150,255,255,255);
			}

			if(Select==ResultOTHERS)
			{
		SelectBer(280);
			//	DrawText("OTHERS",80,200,32,255);

				OthersDisplay(GetCenterX,280,255,255,255,255);
		//		DrawText("その他の記録が見れます",80,360,18,255);
			}
			else
			{
			//	DrawText("OTHERS",80,200,18,255);

				OthersDisplay(GetCenterX,280,150,255,255,255);
			}
		}
/////////////////////////////////////////////////////////////////////////////////
//////////////////////////////スコア描画部/////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////
		let ScoreDrawX=260;
		if(MenuState==ViewResultScore)
		{
			NoDisplay(120,135,255,255,255,255);
			ScoreLetterDisplay(260,135,255,255,255,255);
			ascent(let i in 0..10)
			{		
				ResultHiscoreDisPlay2(ScoreDrawX-130,160+i*25,i+1,0);
			}
		alternative(ResultScoreState)
		case(ResultEASYP1)
		{
				ModerateDisplay(GetCenterX,85,255,255,255,255);
				MarisaADisplay(GetCenterX-164*0.4,115,255,255,255,255);
				ascent(let i in 0..10)
				{
					ResultHiscoreDisPlay(ScoreDrawX+60,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuAEasy[i],0),GetCommonDataDefaultEx(NsScore,NsHiScoreReimuAEasy2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuAEasy2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuAEasy2[i],0),0);
					}
				}
		}

		case(ResultEASYP2)
		{
				ModerateDisplay(GetCenterX,85,255,255,255,255);
				MarisaBDisplay(GetCenterX-164*0.4,115,255,255,255,255);
				ascent(let i in 0..10)
				{
					ResultHiscoreDisPlay(ScoreDrawX+60,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBEasy[i],0),GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBEasy2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBEasy2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBEasy2[i],0),0);
					}
				}
		}	

		case(ResultEASYP3)
		{
				ModerateDisplay(GetCenterX,85,255,255,255,255);
				MarisaCDisplay(GetCenterX-164*0.4,115,255,255,255,255);
				ascent(let i in 0..10)
				{
					ResultHiscoreDisPlay(ScoreDrawX+60,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuCEasy[i],0),GetCommonDataDefaultEx(NsScore,NsHiScoreReimuCEasy2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuCEasy2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuCEasy2[i],0),0);
					}
				}
		}
		case(ResultEASYP4)
		{
				ModerateDisplay(GetCenterX,85,255,255,255,255);
				MarisaDDisplay(GetCenterX-164*0.4,115,255,255,255,255);
				ascent(let i in 0..10)
				{
					ResultHiscoreDisPlay(ScoreDrawX+60,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuDEasy[i],0),GetCommonDataDefaultEx(NsScore,NsHiScoreReimuDEasy2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuDEasy2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuDEasy2[i],0),0);
					}
				}
		}
//--------------------------------------------------------------------------------------------------------------------------
		case(ResultNORMALP1)
		{
				ExtreamDisplay(GetCenterX,85,255,255,255,255);
				MarisaADisplay(GetCenterX-164*0.4,115,255,255,255,255);
				ascent(let i in 0..10)
				{
					ResultHiscoreDisPlay(ScoreDrawX+60,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuANormal[i],0),GetCommonDataDefaultEx(NsScore,NsHiScoreReimuANormal2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuANormal2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuANormal2[i],0),0);
					}
				}
		}

		case(ResultNORMALP2)
		{
				ExtreamDisplay(GetCenterX,85,255,255,255,255);
				MarisaBDisplay(GetCenterX-164*0.4,115,255,255,255,255);
				ascent(let i in 0..10)
				{
					ResultHiscoreDisPlay(ScoreDrawX+60,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBNormal[i],0),GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBNormal2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBNormal2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBNormal2[i],0),0);
					}
				}
		}	

		case(ResultNORMALP3)
		{
				ExtreamDisplay(GetCenterX,85,255,255,255,255);
				MarisaCDisplay(GetCenterX-164*0.4,115,255,255,255,255);
				ascent(let i in 0..10)
				{
					ResultHiscoreDisPlay(ScoreDrawX+60,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuCNormal[i],0),GetCommonDataDefaultEx(NsScore,NsHiScoreReimuCNormal2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuCNormal2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuCNormal2[i],0),0);
					}
				}
		}	
		case(ResultNORMALP4)
		{
				ExtreamDisplay(GetCenterX,85,255,255,255,255);
				MarisaDDisplay(GetCenterX-164*0.4,115,255,255,255,255);
				ascent(let i in 0..10)
				{
					ResultHiscoreDisPlay(ScoreDrawX+60,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuDNormal[i],0),GetCommonDataDefaultEx(NsScore,NsHiScoreReimuDNormal2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuDNormal2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuDNormal2[i],0),0);
					}
				}
		}
//-------------------------------------------------------------------------------------------------------------------------
		case(ResultHARDP1)
		{
				ApocalypseDisplay(GetCenterX,85,255,255,255,255);
				MarisaADisplay(GetCenterX-164*0.4,115,255,255,255,255);
				ascent(let i in 0..10)
				{
					ResultHiscoreDisPlay(ScoreDrawX+60,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuAHard[i],0),GetCommonDataDefaultEx(NsScore,NsHiScoreReimuAHard2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuAHard2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuAHard2[i],0),0);
					}
				}
		}

		case(ResultHARDP2)
		{
				ApocalypseDisplay(GetCenterX,85,255,255,255,255);
				MarisaBDisplay(GetCenterX-164*0.4,115,255,255,255,255);
				ascent(let i in 0..10)
				{
					ResultHiscoreDisPlay(ScoreDrawX+60,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBHard[i],0),GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBHard2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBHard2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBHard2[i],0),0);
					}
				}
		}	

		case(ResultHARDP3)
		{
				ApocalypseDisplay(GetCenterX,85,255,255,255,255);
				MarisaCDisplay(GetCenterX-164*0.4,115,255,255,255,255);
				ascent(let i in 0..10)
				{
					ResultHiscoreDisPlay(ScoreDrawX+60,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuCHard[i],0),GetCommonDataDefaultEx(NsScore,NsHiScoreReimuCHard2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuCHard2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuCHard2[i],0),0);
					}
				}
		}	
		case(ResultHARDP4)
		{
				ApocalypseDisplay(GetCenterX,85,255,255,255,255);
				MarisaDDisplay(GetCenterX-164*0.4,115,255,255,255,255);
				ascent(let i in 0..10)
				{
					ResultHiscoreDisPlay(ScoreDrawX+60,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuDHard[i],0),GetCommonDataDefaultEx(NsScore,NsHiScoreReimuDHard2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuCHard2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuDHard2[i],0),0);
					}
				}
		}
	}
//-----------------------------------------------------------------------------------------------------------------------
		if(MenuState==ViewResultStageScore)
		{
			StageDisplay(105,135,255,255,255,255);
			ScoreLetterDisplay(260,135,255,255,255,255);
			ascent(let i in 0..5)
			{		
				ResultHiscoreDisPlay2(ScoreDrawX-130,160+i*25,i+1,0);
			}
		alternative(ResultScoreState)
		case(ResultEASYP1)
		{
				ModerateDisplay(GetCenterX,85,255,255,255,255);
				MarisaADisplay(GetCenterX-164*0.4,115,255,255,255,255);
				ascent(let i in 0..5)
				{
					ResultHiscoreDisPlay(ScoreDrawX+60,160+i*25,GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuAEasy[i],0),GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuAEasy2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuAEasy2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0,160+i*25,GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuAEasy2[i],0),0);
					}
				}
		}

		case(ResultEASYP2)
		{
				ModerateDisplay(GetCenterX,85,255,255,255,255);
				MarisaBDisplay(GetCenterX-164*0.4,115,255,255,255,255);
				ascent(let i in 0..5)
				{
					ResultHiscoreDisPlay(ScoreDrawX+60,160+i*25,GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuBEasy[i],0),GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuBEasy2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuBEasy2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0,160+i*25,GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuBEasy2[i],0),0);
					}
				}
		}	

		case(ResultEASYP3)
		{
				ModerateDisplay(GetCenterX,85,255,255,255,255);
				MarisaCDisplay(GetCenterX-164*0.4,115,255,255,255,255);
				ascent(let i in 0..5)
				{
					ResultHiscoreDisPlay(ScoreDrawX+60,160+i*25,GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuCEasy[i],0),GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuCEasy2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuCEasy2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0,160+i*25,GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuCEasy2[i],0),0);
					}
				}
		}
		case(ResultEASYP4)
		{
				ModerateDisplay(GetCenterX,85,255,255,255,255);
				MarisaDDisplay(GetCenterX-164*0.4,115,255,255,255,255);
				ascent(let i in 0..5)
				{
					ResultHiscoreDisPlay(ScoreDrawX+60,160+i*25,GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuDEasy[i],0),GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuDEasy2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuDEasy2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0,160+i*25,GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuDEasy2[i],0),0);
					}
				}
		}
//--------------------------------------------------------------------------------------------------------------------------
		case(ResultNORMALP1)
		{
				ExtreamDisplay(GetCenterX,85,255,255,255,255);
				MarisaADisplay(GetCenterX-164*0.4,115,255,255,255,255);
				ascent(let i in 0..5)
				{
					ResultHiscoreDisPlay(ScoreDrawX+60,160+i*25,GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuANormal[i],0),GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuANormal2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuANormal2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0,160+i*25,GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuANormal2[i],0),0);
					}
				}
		}

		case(ResultNORMALP2)
		{
				ExtreamDisplay(GetCenterX,85,255,255,255,255);
				MarisaBDisplay(GetCenterX-164*0.4,115,255,255,255,255);
				ascent(let i in 0..5)
				{
					ResultHiscoreDisPlay(ScoreDrawX+60,160+i*25,GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuBNormal[i],0),GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuBNormal2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuBNormal2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0,160+i*25,GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuBNormal2[i],0),0);
					}
				}
		}	

		case(ResultNORMALP3)
		{
				ExtreamDisplay(GetCenterX,85,255,255,255,255);
				MarisaCDisplay(GetCenterX-164*0.4,115,255,255,255,255);
				ascent(let i in 0..5)
				{
					ResultHiscoreDisPlay(ScoreDrawX+60,160+i*25,GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuCNormal[i],0),GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuCNormal2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuCNormal2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0,160+i*25,GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuCNormal2[i],0),0);
					}
				}
		}	
		case(ResultNORMALP4)
		{
				ExtreamDisplay(GetCenterX,85,255,255,255,255);
				MarisaDDisplay(GetCenterX-164*0.4,115,255,255,255,255);
				ascent(let i in 0..5)
				{
					ResultHiscoreDisPlay(ScoreDrawX+60,160+i*25,GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuDNormal[i],0),GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuDNormal2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuDNormal2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0,160+i*25,GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuDNormal2[i],0),0);
					}
				}
		}
//-------------------------------------------------------------------------------------------------------------------------
		case(ResultHARDP1)
		{
				ApocalypseDisplay(GetCenterX,85,255,255,255,255);
				MarisaADisplay(GetCenterX-164*0.4,115,255,255,255,255);
				ascent(let i in 0..5)
				{
					ResultHiscoreDisPlay(ScoreDrawX+60,160+i*25,GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuAHard[i],0),GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuAHard2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuAHard2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0,160+i*25,GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuAHard2[i],0),0);
					}
				}
		}

		case(ResultHARDP2)
		{
				ApocalypseDisplay(GetCenterX,85,255,255,255,255);
				MarisaBDisplay(GetCenterX-164*0.4,115,255,255,255,255);
				ascent(let i in 0..5)
				{
					ResultHiscoreDisPlay(ScoreDrawX+60,160+i*25,GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuBHard[i],0),GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuBHard2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuBHard2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0,160+i*25,GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuBHard2[i],0),0);
					}
				}
		}	

		case(ResultHARDP3)
		{
				ApocalypseDisplay(GetCenterX,85,255,255,255,255);
				MarisaCDisplay(GetCenterX-164*0.4,115,255,255,255,255);
				ascent(let i in 0..5)
				{
					ResultHiscoreDisPlay(ScoreDrawX+60,160+i*25,GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuCHard[i],0),GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuCHard2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuCHard2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0,160+i*25,GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuCHard2[i],0),0);
					}
				}
		}	
		case(ResultHARDP4)
		{
				ApocalypseDisplay(GetCenterX,85,255,255,255,255);
				MarisaDDisplay(GetCenterX-164*0.4,115,255,255,255,255);
				ascent(let i in 0..5)
				{
					ResultHiscoreDisPlay(ScoreDrawX+60,160+i*25,GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuDHard[i],0),GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuDHard2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuCHard2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0,160+i*25,GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuDHard2[i],0),0);
					}
				}
		}
	}
///////////////////////////////////////////////////////////////////////////////////
//////////////////////////////実績描画部///////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////
		if(MenuState==ViewAchievement)
		{
			let x=50;
			let y=80;
			let Sy=80;
			let ComY=400;
			let yadd=30;
			if(AchievementState==100)
			{
		SelectBerA(y+yadd*0);
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[0],0))
				{
				AtypeClear(x,y,255);
				CommentAtypeClear(x,ComY,255);
				}
				else
				{
				QuestionDisplay(x,y,255);
				//QuestionDisplay(x,ComY,255);
				}
			}
			else if(floor(AchievementState/10)==10)
			{
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[0],0))
				{
				AtypeClear(x,y,150);
				}
				else
				{
				QuestionDisplay(x,y,150);
				}
			}	
			if(AchievementState==101)
			{
		SelectBerA(y+yadd*1);
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[1],0))
				{
				BtypeClear(x,y+yadd*1,255);
				CommentBtypeClear(x,ComY,255);
				}
				else
				{
				QuestionDisplay(x,y+yadd*1,255);
				//QuestionDisplay(x,ComY,255);
				}
			}
			else if(floor(AchievementState/10)==10)
			{
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[1],0))
				{
				BtypeClear(x,y+yadd*1,150);
				}
				else
				{
				QuestionDisplay(x,y+yadd*1,150);
				}
			}
			if(AchievementState==102)
			{
		SelectBerA(y+yadd*2);
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[2],0))
				{
				CtypeClear(x,y+yadd*2,255);
				CommentCtypeClear(x,ComY,255);
				}
				else
				{
				QuestionDisplay(x,y+yadd*2,255);
				//QuestionDisplay(x,ComY,255);
				}
			}
			else if(floor(AchievementState/10)==10)
			{
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[2],0))
				{
				CtypeClear(x,y+yadd*2,150);
				}
				else
				{
				QuestionDisplay(x,y+yadd*2,150);
				}
			}	
			if(AchievementState==103)
			{
		SelectBerA(y+yadd*3);
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[3],0))
				{
				DtypeClear(x,y+yadd*3,255);
				CommentDtypeClear(x,ComY,255);
				}
				else
				{
				QuestionDisplay(x,y+yadd*3,255);
				//QuestionDisplay(x,ComY,255);
				}
			}
			else if(floor(AchievementState/10)==10)
			{
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[3],0))
				{
				DtypeClear(x,y+yadd*3,150);
				}
				else
				{
				QuestionDisplay(x,y+yadd*3,150);
				}
			}
			if(AchievementState==104)
			{
		SelectBerA(y+yadd*4);
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[4],0))
				{
				MdClear(x,y+yadd*4,255);
				CommentMdClear(x,ComY,255);
				}
				else
				{
				QuestionDisplay(x,y+yadd*4,255);
				}
			}
			else if(floor(AchievementState/10)==10)
			{
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[4],0))
				{
				MdClear(x,y+yadd*4,150);
				}
				else
				{
				QuestionDisplay(x,y+yadd*4,150);
				}
			}
			if(AchievementState==105)
			{
		SelectBerA(y+yadd*5);
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[5],0))
				{
				MdNCClear(x,y+yadd*5,255);
				CommentMdNCClear(x,ComY,255);
				}
				else
				{
				QuestionDisplay(x,y+yadd*5,255);
				}
			}
			else if(floor(AchievementState/10)==10)
			{
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[5],0))
				{
				MdNCClear(x,y+yadd*5,150);
				}
				else
				{
				QuestionDisplay(x,y+yadd*5,150);
				}
			}
			if(AchievementState==106)
			{
		SelectBerA(y+yadd*6);
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[6],0))
				{
				ExClear(x,y+yadd*6,255);
				CommentExClear(x,ComY,255);
				}
				else
				{
				QuestionDisplay(x,y+yadd*6,255);
				}
			}
			else if(floor(AchievementState/10)==10)
			{
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[6],0))
				{
				ExClear(x,y+yadd*6,150);
				}
				else
				{
				QuestionDisplay(x,y+yadd*6,150);
				}
			}
			if(AchievementState==107)
			{
		SelectBerA(y+yadd*7);
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[7],0))
				{
				ExNCClear(x,y+yadd*7,255);
				CommentExNCClear(x,ComY,255);
				}
				else
				{
				QuestionDisplay(x,y+yadd*7,255);
				}
			}
			else if(floor(AchievementState/10)==10)
			{
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[7],0))
				{
				ExNCClear(x,y+yadd*7,150);
				}
				else
				{
				QuestionDisplay(x,y+yadd*7,150);
				}
			}
			if(AchievementState==108)
			{
		SelectBerA(y+yadd*8);
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[8],0))
				{
				ApClear(x,y+yadd*8,255);
				CommentApClear(x,ComY,255);
				}
				else
				{
				QuestionDisplay(x,y+yadd*8,255);
				}
			}
			else if(floor(AchievementState/10)==10)
			{
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[8],0))
				{
				ApClear(x,y+yadd*8,150);
				}
				else
				{
				QuestionDisplay(x,y+yadd*8,150);
				}
			}
			if(AchievementState==109)
			{
		SelectBerA(y+yadd*9);
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[9],0))
				{
				ApNCClear(x,y+yadd*9,255);
				CommentApNCClear(x,ComY,255);
				}
				else
				{
				QuestionDisplay(x,y+yadd*9,255);
				}
			}
			else if(floor(AchievementState/10)==10)
			{
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[9],0))
				{
				ApNCClear(x,y+yadd*9,150);
				}
				else
				{
				QuestionDisplay(x,y+yadd*9,150);
				}
			}
/*
			if(AchievementState==108)
			{
		SelectBerA(y+yadd*8);
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[8],0))
				{
				//ExtraBossDefeat(x,y+yadd*8,255);
				//CommentExtraBossDefeat(x,ComY,255);
				GetBombUp(x,y+yadd*8,255);
				CommentGetBombUp(x,ComY,255);
				}
				else
				{
				QuestionDisplay(x,y+yadd*8,255);
				}
			}
			else if(floor(AchievementState/10)==10)
			{
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[8],0))
				{
				//ExtraBossDefeat(x,y+yadd*8,150);
				GetBombUp(x,y+yadd*8,150);
				}
				else
				{
				QuestionDisplay(x,y+yadd*8,150);
				}
			}

			if(AchievementState==109)
			{
		SelectBerA(y+yadd*9);
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[9],0))
				{
				//TrueBossDefeat(x,y+yadd*9,255);
				//CommentTrueBossDefeat(x,ComY,255);
				GetLifeUp(x,y+yadd*9,255);
				CommentGetLifeUp(x,ComY,255);
				}
				else
				{
				QuestionDisplay(x,y+yadd*9,255);
				}
			}
			else if(floor(AchievementState/10)==10)
			{
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[9],0))
				{
				GetLifeUp(x,y+yadd*9,150);
				}
				else
				{
				QuestionDisplay(x,y+yadd*9,150);
				}
			}
*/
/////////////////////////////////////////////////////////////////////////////////////////////
			if(AchievementState==200)
			{
		SelectBerA(y+yadd*0);
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[10],0))
				{
				ten_okutoppa(x,y+yadd*0,255);
				Commentten_okutoppa(x,ComY,255);
				}
				else
				{
				QuestionDisplay(x,y+yadd*0,255);
				}
			}
			else if(floor(AchievementState/10)==20)
			{
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[10],0))
				{
				ten_okutoppa(x,y+yadd*0,150);
				}
				else
				{
				QuestionDisplay(x,y+yadd*0,150);
				}
			}
			if(AchievementState==201)
			{
		SelectBerA(y+yadd*1);
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[11],0))
				{
				fifty_okutoppa(x,y+yadd*1,255);
				Commentfifty_okutoppa(x,ComY,255);
				}
				else
				{
				QuestionDisplay(x,y+yadd*1,255);
				}
			}
			else if(floor(AchievementState/10)==20)
			{
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[11],0))
				{
				fifty_okutoppa(x,y+yadd*1,150);
				}
				else
				{
				QuestionDisplay(x,y+yadd*1,150);
				}
			}
			if(AchievementState==202)
			{
		SelectBerA(y+yadd*2);
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[12],0))
				{
				onehandred_okutoppa(x,y+yadd*2,255);
				Commentonehandred_okutoppa(x,ComY,255);
				}
				else
				{
				QuestionDisplay(x,y+yadd*2,255);
				}
			}
			else if(floor(AchievementState/10)==20)
			{
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[12],0))
				{
				onehandred_okutoppa(x,y+yadd*2,150);
				}
				else
				{
				QuestionDisplay(x,y+yadd*2,150);
				}
			}
			if(AchievementState==203)
			{
		SelectBerA(y+yadd*3);
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[13],0))
				{
				kaimaku(x,y+yadd*3,255);
				Commentkaimaku(x,ComY,255);
				}
				else
				{
				QuestionDisplay(x,y+yadd*3,255);
				}
			}
			else if(floor(AchievementState/10)==20)
			{
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[13],0))
				{
				kaimaku(x,y+yadd*3,150);
				}
				else
				{
				QuestionDisplay(x,y+yadd*3,150);
				}
			}
			if(AchievementState==204)
			{
		SelectBerA(y+yadd*4);
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[14],0))
				{
				hutuM(x,y+yadd*4,255);
				CommenthutuM(x,ComY,255);
				}
				else
				{
				QuestionDisplay(x,y+yadd*4,255);
				}
			}
			else if(floor(AchievementState/10)==20)
			{
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[14],0))
				{
				hutuM(x,y+yadd*4,150);
				}
				else
				{
				QuestionDisplay(x,y+yadd*4,150);
				}
			}
			if(AchievementState==205)
			{
		SelectBerA(y+yadd*5);
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[15],0))
				{
				daiM(x,y+yadd*5,255);
				CommentdaiM(x,ComY,255);
				}
				else
				{
				QuestionDisplay(x,y+yadd*5,255);
				}
			}
			else if(floor(AchievementState/10)==20)
			{
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[15],0))
				{
				daiM(x,y+yadd*5,150);
				}
				else
				{
				QuestionDisplay(x,y+yadd*5,150);
				}
			}
			if(AchievementState==206)
			{
		SelectBerA(y+yadd*6);
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[16],0))
				{
				kenjya(x,y+yadd*6,255);
				Commentkenjya(x,ComY,255);
				}
				else
				{
				QuestionDisplay(x,y+yadd*6,255);
				}
			}
			else if(floor(AchievementState/10)==20)
			{
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[16],0))
				{
				kenjya(x,y+yadd*6,150);
				}
				else
				{
				QuestionDisplay(x,y+yadd*6,150);
				}
			}
			if(AchievementState==207)
			{
		SelectBerA(y+yadd*7);
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[17],0))
				{
				collecter(x,y+yadd*7,255);
				Commentcollecter(x,ComY,255);
				}
				else
				{
				QuestionDisplay(x,y+yadd*7,255);
				}
			}
			else if(floor(AchievementState/10)==20)
			{
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[17],0))
				{
				collecter(x,y+yadd*7,150);
				}
				else
				{
				QuestionDisplay(x,y+yadd*7,150);
				}
			}
			if(AchievementState==208)
			{
		SelectBerA(y+yadd*8);
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[18],0))
				{
				daicollecter(x,y+yadd*8,255);
				Commentdaicollecter(x,ComY,255);
				}
				else
				{
				QuestionDisplay(x,y+yadd*8,255);
				}
			}
			else if(floor(AchievementState/10)==20)
			{
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[18],0))
				{
				daicollecter(x,y+yadd*8,150);
				}
				else
				{
				QuestionDisplay(x,y+yadd*8,150);
				}
			}
			if(AchievementState==209)
			{
		SelectBerA(y+yadd*9);
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[19],0))
				{
				kujikenu(x,y+yadd*9,255);
				Commentkujikenu(x,ComY,255);
				}
				else
				{
				QuestionDisplay(x,y+yadd*9,255);
				}
			}
			else if(floor(AchievementState/10)==20)
			{
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[19],0))
				{
				kujikenu(x,y+yadd*9,150);
				}
				else
				{
				QuestionDisplay(x,y+yadd*9,150);
				}
			}
///////////////////////////////////////////////////////////////////////////////////////////////////
			if(AchievementState==300)
			{
		SelectBerA(y+yadd*0);
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[20],0))
				{
				heiwa(x,y+yadd*0,255);
				Commentheiwa(x,ComY,255);
				}
				else
				{
				QuestionDisplay(x,y+yadd*0,255);
				}
			}
			else if(floor(AchievementState/10)==30)
			{
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[20],0))
				{
				heiwa(x,y+yadd*0,150);
				}
				else
				{
				QuestionDisplay(x,y+yadd*0,150);
				}
			}
			if(AchievementState==301)
			{
		SelectBerA(y+yadd*1);
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[21],0))
				{
				setuytaku(x,y+yadd*1,255);
				Commentsetuytaku(x,ComY,255);
				}
				else
				{
				QuestionDisplay(x,y+yadd*1,255);
				}
			}
			else if(floor(AchievementState/10)==30)
			{
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[21],0))
				{
				setuytaku(x,y+yadd*1,150);
				}
				else
				{
				QuestionDisplay(x,y+yadd*1,150);
				}
			}
			if(AchievementState==302)
			{
		SelectBerA(y+yadd*2);
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[22],0))
				{
				tukauna(x,y+yadd*2,255);
				Commenttukauna(x,ComY,255);
				}
				else
				{
				QuestionDisplay(x,y+yadd*2,255);
				}
			}
			else if(floor(AchievementState/10)==30)
			{
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[22],0))
				{
				tukauna(x,y+yadd*2,150);
				}
				else
				{
				QuestionDisplay(x,y+yadd*2,150);
				}
			}
			if(AchievementState==303)
			{
		SelectBerA(y+yadd*3);
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[23],0))
				{
				iranu(x,y+yadd*3,255);
				Commentiranu(x,ComY,255);
				}
				else
				{
				QuestionDisplay(x,y+yadd*3,255);
				}
			}
			else if(floor(AchievementState/10)==30)
			{
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[23],0))
				{
				iranu(x,y+yadd*3,150);
				}
				else
				{
				QuestionDisplay(x,y+yadd*3,150);
				}
			}
			if(AchievementState==304)
			{
		SelectBerA(y+yadd*4);
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[24],0))
				{
				AutoBomb(x,y+yadd*4,255);
				CommentAutoBomb(x,ComY,255);
				}
				else
				{
				QuestionDisplay(x,y+yadd*4,255);
				}
			}
			else if(floor(AchievementState/10)==30)
			{
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[24],0))
				{
				AutoBomb(x,y+yadd*4,150);
				}
				else
				{
				QuestionDisplay(x,y+yadd*4,150);
				}
			}
			if(AchievementState==305)
			{
		SelectBerA(y+yadd*5);
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[25],0))
				{
				Initial(x,y+yadd*5,255);
				CommentInitial(x,ComY,255);
				}
				else
				{
				QuestionDisplay(x,y+yadd*5,255);
				}
			}
			else if(floor(AchievementState/10)==30)
			{
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[25],0))
				{
				Initial(x,y+yadd*5,150);
				}
				else
				{
				QuestionDisplay(x,y+yadd*5,150);
				}
			}
			if(AchievementState==306)
			{
		SelectBerA(y+yadd*6);
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[26],0))
				{
				spiral(x,y+yadd*6,255);
				Commentspiral(x,ComY,255);
				}
				else
				{
				QuestionDisplay(x,y+yadd*6,255);
				}
			}
			else if(floor(AchievementState/10)==30)
			{
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[26],0))
				{
				spiral(x,y+yadd*6,150);
				}
				else
				{
				QuestionDisplay(x,y+yadd*6,150);
				}
			}
			if(AchievementState==307)
			{
		SelectBerA(y+yadd*7);
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[27],0))
				{
				danmakupower(x,y+yadd*7,255);
				Commentdanmakupower(x,ComY,255);
				}
				else
				{
				QuestionDisplay(x,y+yadd*7,255);
				}
			}
			else if(floor(AchievementState/10)==30)
			{
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[27],0))
				{
				danmakupower(x,y+yadd*7,150);
				}
				else
				{
				QuestionDisplay(x,y+yadd*7,150);
				}
			}
			if(AchievementState==308)
			{
		SelectBerA(y+yadd*8);
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[28],0))
				{
				danmakubrain(x,y+yadd*8,255);
				Commentdanmakubrain(x,ComY,255);
				}
				else
				{
				QuestionDisplay(x,y+yadd*8,255);
				}
			}
			else if(floor(AchievementState/10)==30)
			{
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[28],0))
				{
				danmakubrain(x,y+yadd*8,150);
				}
				else
				{
				QuestionDisplay(x,y+yadd*8,150);
				}
			}
			if(AchievementState==309)
			{
		SelectBerA(y+yadd*9);
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[29],0))
				{
				thankyou(x,y+yadd*9,255);
				Commentthankyou(x,ComY,255);
				}
				else
				{
				QuestionDisplay(x,y+yadd*9,255);
				}
			}
			else if(floor(AchievementState/10)==30)
			{
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[29],0))
				{
				thankyou(x,y+yadd*9,150);
				}
				else
				{
				QuestionDisplay(x,y+yadd*9,150);
				}
			}			
			
/*
			UpTimeDisplay(50,110,255,255,255,255);
			ResultHiscoreNumDisplay(230,110,11,255,200,200,255);
			ResultHiscoreNumDisplay(260,110,11,255,200,200,255);
			ResultNumberDisPlay(220,105,UpTime/3600,255,200,200,255);
			ResultNumberDisPlay(250,105,UpTime/60%60,255,200,200,255);
			ResultNumberDisPlay(280,105,UpTime%60,255,200,200,255);
	*/	}

/////////////////////////////////////////////////////////////////////////////
////////////////////////コンフィグ描画部/////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
		if(MenuState==MenuConfig)
		{
		let ConfigDrawY=60;
		let ConfigDrawYPlus=35;
			if(Select==ConfigAutoBomb)
			{
		SelectBerA(60);
				ConfigAutoBombDisplay(80,ConfigDrawY,255,255,255,255);
			}
			else
			{
				ConfigAutoBombDisplay(80,ConfigDrawY,150,255,255,255);
			}

			if(AutoBombMode==1)
			{
				ConfigOnDisplay(300,ConfigDrawY,255,255,255,255);
			}
			else if(AutoBombMode==0.5)
			{
				ConfigHalfDisplay(300,ConfigDrawY,255,255,255,255);
			}
			else
			{
				ConfigOffDisplay(300,ConfigDrawY,255,255,255,255);
			}
		ConfigDrawY+=ConfigDrawYPlus;
			if(Select==ConfigDifficult)
			{
		SelectBerA(ConfigDrawY);
				ConfigDifficultDisplay(80,ConfigDrawY,255,255,255,255);
			}
			else
			{
				ConfigDifficultDisplay(80,ConfigDrawY,150,255,255,255);
			}

			alternative(StartDifficult)
			case(0)
			{
				ConfigSelectDisplay(290,ConfigDrawY,255,255,255,255);
			}
			case(1)
			{
				ConfigModerateDisplay(270,ConfigDrawY,255,255,255,255);
			}
			case(2)
			{
				ConfigExtreamDisplay(280,ConfigDrawY,255,255,255,255);
			}
			case(3)
			{
				ConfigApocalypseDisplay(260,ConfigDrawY,255,255,255,255);
			}
		ConfigDrawY+=ConfigDrawYPlus;
			if(Select==ConfigStageSelect)
			{
		SelectBerA(ConfigDrawY);
				ConfigStageSelectDisplay(80,ConfigDrawY,255,255,255,255);
		//		DrawText("プラクティスを開始します",80,360,18,255);
			}
			else
			{
				ConfigStageSelectDisplay(80,ConfigDrawY,150,255,255,255);
			}


			alternative(StartStage)
			case(0)
			{
				ConfigSelectDisplay(290,ConfigDrawY,255,255,255,255);
			}
			case(1)
			{
				ConfigNumDisplay(320,ConfigDrawY,255,255,255,255,1);
			}
			case(2)
			{
				ConfigNumDisplay(320,ConfigDrawY,255,255,255,255,2);
			}
			case(3)
			{
				ConfigNumDisplay(320,ConfigDrawY,255,255,255,255,3);
			}
			case(4)
			{
				ConfigNumDisplay(320,ConfigDrawY,255,255,255,255,4);
			}
			case(5)
			{
				ConfigNumDisplay(320,ConfigDrawY,255,255,255,255,5);
			}
		ConfigDrawY+=ConfigDrawYPlus;
			if(Select==ConfigStagePhage)
			{
		SelectBerA(ConfigDrawY);
				ConfigStagePhaseDisplay(80,ConfigDrawY,255,255,255,255);
		//		DrawText("色々な記録が見れます",80,360,18,255);
			}
			else
			{
				ConfigStagePhaseDisplay(80,ConfigDrawY,150,255,255,255);
			}

			ConfigNumDisplay(320,ConfigDrawY,255,255,255,255,StagePhaseProgress);
/*
			alternative(StagePhaseProgress)
			case(0)
			{
				ConfigNumDisplay(320,180,255,255,255,255,0);
			}
			case(1)
			{
				ConfigNumDisplay(320,180,255,255,255,255,1);
			}
			case(2)
			{
				ConfigNumDisplay(320,180,255,255,255,255,2);
			}
			case(3)
			{
				ConfigNumDisplay(320,180,255,255,255,255,3);
			}
*/
		ConfigDrawY+=ConfigDrawYPlus;
			if(Select==ConfigBurstCounter)
			{
		SelectBerA(ConfigDrawY);
				ConfigBurstCounterDisplay(80,ConfigDrawY,255,255,255,255);
		//		DrawText("普通に終了します",80,360,18,255);
			}
			else
			{
				ConfigBurstCounterDisplay(80,ConfigDrawY,150,255,255,255);
			}

			ConfigBurstCounterNumDisplay(360,ConfigDrawY,255,255,255,255,PracticeStartBurstCounter);
		ConfigDrawY+=ConfigDrawYPlus;
			if(Select==ConfigMagicCounter)
			{
		SelectBerA(ConfigDrawY);
				ConfigMagicCounterDisplay(80,ConfigDrawY,255,255,255,255);
		//		DrawText("普通に終了します",80,360,18,255);
			}
			else
			{
				ConfigMagicCounterDisplay(80,ConfigDrawY,150,255,255,255);
			}

			ConfigMagicCounterNumDisplay(367,ConfigDrawY,255,255,255,255,PracticeStartMagicCounter);

		ConfigDrawY+=ConfigDrawYPlus;
			if(Select==ConfigBurstRank)
			{
		SelectBerA(ConfigDrawY);
				ConfigBurstRankDisplay(80,ConfigDrawY,255,255,255,255);
		//		DrawText("普通に終了します",80,360,18,255);
			}
			else
			{
				ConfigBurstRankDisplay(80,ConfigDrawY,150,255,255,255);
			}

			ConfigMagicCounterNumDisplay(367,ConfigDrawY,255,255,255,255,PracticeStartBurstRank);

		ConfigDrawY+=ConfigDrawYPlus;
			if(Select==ConfigRushGauge)
			{
		SelectBerA(ConfigDrawY);
				ConfigRushGaugeDisplay(80,ConfigDrawY,255,255,255,255);
		//		DrawText("普通に終了します",80,360,18,255);
			}
			else
			{
				ConfigRushGaugeDisplay(80,ConfigDrawY,150,255,255,255);
			}

			ConfigRushGaugeNumDisplay(367,ConfigDrawY,255,255,255,255,PracticeStartRushGauge);


		ConfigDrawY+=ConfigDrawYPlus;
			if(Select==ConfigBGDraw)
			{
		SelectBerA(ConfigDrawY);
				ConfigBGDrawDisplay(80,ConfigDrawY,255,255,255,255);
		//		DrawText("普通に終了します",80,360,18,255);
			}
			else
			{
				ConfigBGDrawDisplay(80,ConfigDrawY,150,255,255,255);
			}

			if(BGDrawing==1)
			{
				ConfigOnDisplay(300,ConfigDrawY,255,255,255,255);
			}
			else
			{
				ConfigOffDisplay(300,ConfigDrawY,255,255,255,255);
			}
		ConfigDrawY+=ConfigDrawYPlus;
			if(Select==ConfigLightMode)
			{
		SelectBerA(ConfigDrawY);
				ConfigLightModeDisplay(80,ConfigDrawY,255,255,255,255);
		//		DrawText("普通に終了します",80,360,18,255);
			}
			else
			{
				ConfigLightModeDisplay(80,ConfigDrawY,150,255,255,255);
			}

			if(LightMode==1)
			{
				ConfigOnDisplay(300,ConfigDrawY,255,255,255,255);
			}
			else
			{
				ConfigOffDisplay(300,ConfigDrawY,255,255,255,255);
			}
		ConfigDrawY+=ConfigDrawYPlus;
			if(Select==ConfigDefault)
			{
		SelectBerA(ConfigDrawY);
				ConfigDefaultDisplay(80,ConfigDrawY,255,255,255,255);
		//		DrawText("普通に終了します",80,360,18,255);
			}
			else
			{
				ConfigDefaultDisplay(80,ConfigDrawY,150,255,255,255);
			}

		//	alternative(ConfigBurstCounterChangefigure)
		//	case(1)
		//	{
			if(ConfigBurstCounterChangeMode==1)
			{
				SelectBerV(290+ConfigBurstCounterChangefigure*14);
			}
			if(ConfigMagicCounterChangeMode==1)
			{
				SelectBerV(290+ConfigMagicCounterChangefigure*14-7);
			}
			if(ConfigBurstRankChangeMode==1)
			{
				SelectBerV(290+ConfigBurstRankChangefigure*14-7);
			}
			if(ConfigRushGaugeChangeMode==1)
			{
				SelectBerV(290+ConfigRushGaugeChangefigure*14-7);
			}
		//	}
		}


///////////////////////////////////////////////////////////////////////////////////
//////////////////////////////その他描画部///////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////
		if(MenuState==ResultOTHERS)
		{
		//	DrawText("PlayerHistory",120,40,32,255);

			UpTimeDisplay(50,110,255,255,255,255);
			ResultHiscoreNumDisplay(230,110,11,255,200,200,255);
			ResultHiscoreNumDisplay(260,110,11,255,200,200,255);
			ResultNumberDisPlay(220,105,UpTime/3600,255,200,200,255);
			ResultNumberDisPlay(250,105,UpTime/60%60,255,200,200,255);
			ResultNumberDisPlay(280,105,UpTime%60,255,200,200,255);

			PlayTimeDisplay(50,140,255,255,255,255);
			ResultHiscoreNumDisplay(230,140,11,255,200,200,255);
			ResultHiscoreNumDisplay(260,140,11,255,200,200,255);
			ResultNumberDisPlay(220,135,PlayTime/3600,255,200,200,255);
			ResultNumberDisPlay(250,135,PlayTime/60%60,255,200,200,255);
			ResultNumberDisPlay(280,135,PlayTime%60,255,200,200,255);


			PlayNumDisplay(50,180,255,255,255,255);
			MarisaADisplay(50,210,255,255,255,255);
			MarisaBDisplay(50,240,255,255,255,255);
			MarisaCDisplay(50,270,255,255,255,255);
			MarisaDDisplay(50,300,255,255,255,255);
			ZenPlayerDisplay(50,345,255,255,255,255);


			MdDisplay(GetCenterX-10,180,255,255,255,255);
			ExDisplay(GetCenterX+45,180,255,255,255,255);
			ApDisplay(GetCenterX+100,182,255,255,255,255);

			let RAE=GetCommonDataDefaultEx(NsScore,NsFrequencyReimuAEasy,0);
			let RBE=GetCommonDataDefaultEx(NsScore,NsFrequencyReimuBEasy,0);
			let RCE=GetCommonDataDefaultEx(NsScore,NsFrequencyReimuCEasy,0);
			let RDE=GetCommonDataDefaultEx(NsScore,NsFrequencyReimuDEasy,0);
			let TE=RAE+RBE+RCE+RDE;

			let RAN=GetCommonDataDefaultEx(NsScore,NsFrequencyReimuANormal,0);
			let RBN=GetCommonDataDefaultEx(NsScore,NsFrequencyReimuBNormal,0);
			let RCN=GetCommonDataDefaultEx(NsScore,NsFrequencyReimuCNormal,0);
			let RDN=GetCommonDataDefaultEx(NsScore,NsFrequencyReimuDNormal,0);
			let TN=RAN+RBN+RCN+RDN;


			let RAH=GetCommonDataDefaultEx(NsScore,NsFrequencyReimuAHard,0);
			let RBH=GetCommonDataDefaultEx(NsScore,NsFrequencyReimuBHard,0);
			let RCH=GetCommonDataDefaultEx(NsScore,NsFrequencyReimuCHard,0);
			let RDH=GetCommonDataDefaultEx(NsScore,NsFrequencyReimuDHard,0);
			let TH=RAH+RBH+RCH+RDH;

			let TRA=RAE+RAN+RAH;
			let TRB=RBE+RBN+RBH;
			let TRC=RCE+RCN+RCH;
			let TRD=RDE+RDN+RDH;		
			let TOTAL=TE+TN+TH;

			TotalDisplay(355,180,255,255,255,255);

			if(RAE>9999){RAE=9999;}//9999でカンスト
			if(RBE>9999){RBE=9999;}
			if(TE>9999){TE=9999;}
			if(RAN>9999){RAN=9999;}
			if(RBN>9999){RBN=9999;}
			if(TN>9999){TN=9999;}
			if(RAH>9999){RAH=9999;}
			if(RBH>9999){RBH=9999;}
			if(TH>9999){TH=9999;}
			if(TRA>9999){TRA=9999;}
			if(TRB>9999){TRB=9999;}
			if(TOTAL>9999){TOTAL=9999;}

			ResultNumberDisPlay(230,205,RAE,255,200,200,255);
			ResultNumberDisPlay(230,235,RBE,255,200,200,255);
			ResultNumberDisPlay(230,265,RCE,255,200,200,255);
			ResultNumberDisPlay(230,295,RDE,255,200,200,255);
			ResultNumberDisPlay(230,340,TE,255,200,200,255);

			ResultNumberDisPlay(285,205,RAN,255,200,200,255);
			ResultNumberDisPlay(285,235,RBN,255,200,200,255);
			ResultNumberDisPlay(285,265,RCN,255,200,200,255);
			ResultNumberDisPlay(285,295,RDN,255,200,200,255);
			ResultNumberDisPlay(285,340,TN,255,200,200,255);

			ResultNumberDisPlay(340,205,RAH,255,200,200,255);
			ResultNumberDisPlay(340,235,RBH,255,200,200,255);
			ResultNumberDisPlay(340,265,RCH,255,200,200,255);
			ResultNumberDisPlay(340,295,RDH,255,200,200,255);
			ResultNumberDisPlay(340,340,TH,255,200,200,255);

			ResultNumberDisPlay(395,205,TRA,255,200,200,255);
			ResultNumberDisPlay(395,235,TRB,255,200,200,255);
			ResultNumberDisPlay(395,265,TRC,255,200,200,255);
			ResultNumberDisPlay(395,295,TRD,255,200,200,255);
			ResultNumberDisPlay(395,340,TOTAL,255,200,200,255);

			let AllFragmentResult=GetCommonDataDefaultEx(NsScore,NsAllFragment,0);
			let AllFragmentResult2=GetCommonDataDefaultEx(NsScore,NsAllFragment2,0);
			if(AllFragmentResult2>=1)
			{
				AllFragmentResult+=1000000;
			}
			ALLFragmentDisplay(50,410,255,255,255,255);
			ResultNumberDisPlayFragment(395,405,AllFragmentResult,255,200,200,255);
			if(AllFragmentResult2!=0)
			{
			ResultNumberDisPlayFragment(395-72,405,AllFragmentResult2,255,200,200,255);
			}


		}
//////////////////////////////////////////////////////////////////////////////////
		}
}	
