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==LightConfig)
			{
		SelectBer(300);
				LightConfigDisplay(78,300,255,255,255,255);
		//		DrawText("普通に終了します",80,360,18,255);
			}
			else
			{
				LightConfigDisplay(78,300,150,255,255,255);
			}

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

			if(Select==NORMAL)
			{
			SelectBer(185);
				ExtreamDisplay(GetCenterX,185,255,255,255,255);
			}
			else
			{
				ExtreamDisplay(GetCenterX,185,150,255,250,255);
			}

			if(Select==HARD)
			{
			SelectBer(250);
			ApocalypseDisplay(GetCenterX,250,255,255,255,255);
			}
			else
			{
			ApocalypseDisplay(GetCenterX,250,150,255,255,255);
			}
/*
			if(Select==LUNATIC)
			{
			SelectBer(315-195);
			ArrangeDisplay(GetCenterX,315-195,255,255,255,255);
			}
			else
			{
			ArrangeDisplay(GetCenterX,315-195,150,255,255,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)
			{
		SelectBer(315);
			ArrangeDisplay(GetCenterX,315,255,255,255,255);
			//	DrawText("Lunaticのプラクティスを開始",80,360,18,255);
			}
			else
			{
			ArrangeDisplay(GetCenterX,315,150,255,255,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)
		{
			PlayerScoreDisplay(112,40,255,255,255,255);
			ToStageHiScoreDisplay(45,420,255,255,255,255);
			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)
		{
			ScoreLetterDisplay(260,135,255,255,255,255);
				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)
		{
			ScoreLetterDisplay(260,135,255,255,255,255);
				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)
		{
			ScoreLetterDisplay(260,135,255,255,255,255);
				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)
		{
			ScoreLetterDisplay(260,135,255,255,255,255);
				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(ResultEASYP5)
		{
			ScoreLetterDisplay(260-40,135,255,255,255,255);
			NameDisplay(260+60,135,255,255,255,255);
				ModerateDisplay(GetCenterX,85,255,255,255,255);
				OtherPlayersDisplay(GetCenterX-164*0.4,115,255,255,255,255);
				ascent(let i in 0..10)
				{
					ResultHiscoreDisPlay(ScoreDrawX+60-40,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuEEasy[i],0),GetCommonDataDefaultEx(NsScore,NsHiScoreReimuDEasy2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuDEasy2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0-40,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuEEasy2[i],0),0);
					}
					//SetFontColor(255,255,255,255,255,255);
					DrawNameText(GetCommonDataDefaultEx(NsScore,NsHiScoreEasyName[i],0),320,158+i*25,18,255);
				}
		}
//--------------------------------------------------------------------------------------------------------------------------
		case(ResultNORMALP1)
		{
			ScoreLetterDisplay(260,135,255,255,255,255);
				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)
		{
			ScoreLetterDisplay(260,135,255,255,255,255);
				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)
		{
			ScoreLetterDisplay(260,135,255,255,255,255);
				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)
		{
			ScoreLetterDisplay(260,135,255,255,255,255);
				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(ResultNORMALP5)
		{
			ScoreLetterDisplay(260-40,135,255,255,255,255);
			NameDisplay(260+60,135,255,255,255,255);
				ExtreamDisplay(GetCenterX,85,255,255,255,255);
				OtherPlayersDisplay(GetCenterX-164*0.4,115,255,255,255,255);
				ascent(let i in 0..10)
				{
					ResultHiscoreDisPlay(ScoreDrawX+60-40,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuENormal[i],0),GetCommonDataDefaultEx(NsScore,NsHiScoreReimuDNormal2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuDNormal2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0-40,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuENormal2[i],0),0);
					}
					DrawNameText(GetCommonDataDefaultEx(NsScore,NsHiScoreNormalName[i],0),320,158+i*25,18,255);
				}
		}
//-------------------------------------------------------------------------------------------------------------------------
		case(ResultHARDP1)
		{
			ScoreLetterDisplay(260,135,255,255,255,255);
				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)
		{
			ScoreLetterDisplay(260,135,255,255,255,255);
				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)
		{
			ScoreLetterDisplay(260,135,255,255,255,255);
				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)
		{
			ScoreLetterDisplay(260,135,255,255,255,255);
				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);
					}
				}
		}
		case(ResultHARDP5)
		{
			ScoreLetterDisplay(260-40,135,255,255,255,255);
			NameDisplay(260+60,135,255,255,255,255);
				ApocalypseDisplay(GetCenterX,85,255,255,255,255);
				OtherPlayersDisplay(GetCenterX-164*0.4,115,255,255,255,255);
				ascent(let i in 0..10)
				{
					ResultHiscoreDisPlay(ScoreDrawX+60-40,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuEHard[i],0),GetCommonDataDefaultEx(NsScore,NsHiScoreReimuDHard2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuCHard2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0-40,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuEHard2[i],0),0);
					}
					DrawNameText(GetCommonDataDefaultEx(NsScore,NsHiScoreHardName[i],0),320,158+i*25,18,255);
				}
		}
//-------------------------------------------------------------------------------------------------------------------------
		case(ResultLUNATICP1)
		{
				ArrangeDisplay(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,NsHiScoreReimuALuna[i],0),GetCommonDataDefaultEx(NsScore,NsHiScoreReimuALuna2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuALuna2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuALuna2[i],0),0);
					}
				}
		}

		case(ResultLUNATICP2)
		{
				ArrangeDisplay(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,NsHiScoreReimuBLuna[i],0),GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBLuna2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBLuna2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBLuna2[i],0),0);
					}
				}
		}	

		case(ResultLUNATICP3)
		{
				ArrangeDisplay(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,NsHiScoreReimuCLuna[i],0),GetCommonDataDefaultEx(NsScore,NsHiScoreReimuCLuna2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuCLuna2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuCLuna2[i],0),0);
					}
				}
		}	
		case(ResultLUNATICP4)
		{
				ArrangeDisplay(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,NsHiScoreReimuDLuna[i],0),GetCommonDataDefaultEx(NsScore,NsHiScoreReimuDLuna2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuCLuna2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuDLuna2[i],0),0);
					}
				}
		}
		case(ResultLUNATICP5)
		{
				ArrangeDisplay(GetCenterX,85,255,255,255,255);
				OtherPlayersDisplay(GetCenterX-164*0.4,115,255,255,255,255);
				ascent(let i in 0..10)
				{
					ResultHiscoreDisPlay(ScoreDrawX+60,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuELuna[i],0),GetCommonDataDefaultEx(NsScore,NsHiScoreReimuDLuna2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuCLuna2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0,160+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuELuna2[i],0),0);
					}
				}
		}
	}
//-----------------------------------------------------------------------------------------------------------------------
		if(MenuState==ViewResultStageScore)
		{
			PlayerScoreDisplay(112,40,255,255,255,255);
			ToHiScoreDisplay(85,420,255,255,255,255);

			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)
		{
			ScoreLetterDisplay(260,135,255,255,255,255);
				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)
		{
			ScoreLetterDisplay(260,135,255,255,255,255);
				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)
		{
			ScoreLetterDisplay(260,135,255,255,255,255);
				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)
		{
			ScoreLetterDisplay(260,135,255,255,255,255);
				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(ResultEASYP5)
		{
			ScoreLetterDisplay(260-40,135,255,255,255,255);
			NameDisplay(260+60,135,255,255,255,255);
				ModerateDisplay(GetCenterX,85,255,255,255,255);
				OtherPlayersDisplay(GetCenterX-164*0.4,115,255,255,255,255);
				ascent(let i in 0..5)
				{
					ResultHiscoreDisPlay(ScoreDrawX+60-40,160+i*25,GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuEEasy[i],0),GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuEEasy2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuEEasy2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0-40,160+i*25,GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuEEasy2[i],0),0);
					}
					DrawNameText(GetCommonDataDefaultEx(NsScore,NsStageHiScoreEasyName[i],0),320,158+i*25,18,255);
				}
		}
//--------------------------------------------------------------------------------------------------------------------------
		case(ResultNORMALP1)
		{
			ScoreLetterDisplay(260,135,255,255,255,255);
				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)
		{
			ScoreLetterDisplay(260,135,255,255,255,255);
				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)
		{
			ScoreLetterDisplay(260,135,255,255,255,255);
				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)
		{
			ScoreLetterDisplay(260,135,255,255,255,255);
				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(ResultNORMALP5)
		{
			ScoreLetterDisplay(260-40,135,255,255,255,255);
			NameDisplay(260+60,135,255,255,255,255);
				ExtreamDisplay(GetCenterX,85,255,255,255,255);
				OtherPlayersDisplay(GetCenterX-164*0.4,115,255,255,255,255);
				ascent(let i in 0..5)
				{
					ResultHiscoreDisPlay(ScoreDrawX+60-40,160+i*25,GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuENormal[i],0),GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuENormal2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuENormal2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0-40,160+i*25,GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuENormal2[i],0),0);
					}
				DrawNameText(GetCommonDataDefaultEx(NsScore,NsStageHiScoreNormalName[i],0),320,158+i*25,18,255);
				}
		}
//-------------------------------------------------------------------------------------------------------------------------
		case(ResultHARDP1)
		{
			ScoreLetterDisplay(260,135,255,255,255,255);
				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)
		{
			ScoreLetterDisplay(260,135,255,255,255,255);
				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)
		{
			ScoreLetterDisplay(260,135,255,255,255,255);
				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)
		{
			ScoreLetterDisplay(260,135,255,255,255,255);
				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,NsStageHiScoreReimuDHard2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0,160+i*25,GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuDHard2[i],0),0);
					}
				}
		}
		case(ResultHARDP5)
		{
			ScoreLetterDisplay(260-40,135,255,255,255,255);
			NameDisplay(260+60,135,255,255,255,255);
				ApocalypseDisplay(GetCenterX,85,255,255,255,255);
				OtherPlayersDisplay(GetCenterX-164*0.4,115,255,255,255,255);
				ascent(let i in 0..5)
				{
					ResultHiscoreDisPlay(ScoreDrawX+60-40,160+i*25,GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuEHard[i],0),GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuEHard2[i],0));
					if(GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuEHard2[i],0)!=0)
					{
						ResultHiscoreDisPlay2(ScoreDrawX-0-40,160+i*25,GetCommonDataDefaultEx(NsScore,NsStageHiScoreReimuEHard2[i],0),0);
					}
				DrawNameText(GetCommonDataDefaultEx(NsScore,NsStageHiScoreHardName[i],0),320,158+i*25,18,255);
				}
		}
	}
///////////////////////////////////////////////////////////////////////////////////
//////////////////////////////実績描画部///////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////
		if(MenuState==ViewAchievement)
		{
			let x=50;
			let y=80;
			let Sy=80;
			let ComY=400;
			let yadd=30;
			PageDisplay(x,40,255,255,255,255);
			SlashDisplay(x+105,40,255,255,255,255);
			ConfigNumDisplay(x+125,40,255,255,255,255,1);
			ConfigNumDisplay(x+138,40,255,255,255,255,0);

			SlashDisplay(x+305,40,255,255,255,255);
			ConfigNumDisplay(x+325,40,255,255,255,255,1);
			ConfigNumDisplay(x+338,40,255,255,255,255,0);
			ConfigNumDisplay(x+351,40,255,255,255,255,0);
	
			let ACP=0;
			ascent(i in 0..100)
			{
				if(GetCommonDataDefaultEx(NsScore,NsAchievement[i],0))
				{
					ACP+=1;
				}
			}
			if(ACP<10)
			{
				ConfigNumDisplay(x+295,40,255,255,255,255,ACP%10);
			}
			else if(ACP<100)
			{
				ConfigNumDisplay(x+295,40,255,255,255,255,ACP%10);
				ConfigNumDisplay(x+282,40,255,255,255,255,floor(ACP/10));
			}
			else
			{
				ConfigNumDisplay(x+295,40,255,255,255,255,0);
				ConfigNumDisplay(x+282,40,255,255,255,255,0);
				ConfigNumDisplay(x+269,40,255,255,255,255,1);
			}

			if(floor(AchievementState/100)<10)
			{
				ConfigNumDisplay(x+95,40,255,255,255,255,floor(AchievementState/100));
			}
			else
			{
				ConfigNumDisplay(x+82,40,255,255,255,255,1);
				ConfigNumDisplay(x+95,40,255,255,255,255,0);
			}
			ascent(i in 0..100)
			{
				if(AchievementState==(floor(i/10)+1)*100+i%10)
				{
					SelectBerA(y+yadd*(i%10));
					if(GetCommonDataDefaultEx(NsScore,NsAchievement[i],0))
					{
					DrawAchievement(i,x,y+yadd*(i%10),255);
					DrawAchievementComment(i,x,ComY,255);
					//CommentAtypeClear(x,ComY,255);
					}
					else
					{
					QuestionDisplay(x,y+yadd*(i%10),255);
					}
				}
				else if(floor(AchievementState/10)==10*(floor(i/10)+1))
				{
					if(GetCommonDataDefaultEx(NsScore,NsAchievement[i],0))
					{
						DrawAchievement(i,x,y+yadd*(i%10),150);
					//	AtypeClear(x,y,150);
				}
				else
				{
					QuestionDisplay(x,y+yadd*(i%10),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=32;
			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(304,ConfigDrawY,255,255,255,255);
			}
			else
			{
				ConfigOffDisplay(304,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(324,ConfigDrawY,255,255,255,255,1);
			}
			case(2)
			{
				ConfigNumDisplay(324,ConfigDrawY,255,255,255,255,2);
			}
			case(3)
			{
				ConfigNumDisplay(324,ConfigDrawY,255,255,255,255,3);
			}
			case(4)
			{
				ConfigNumDisplay(324,ConfigDrawY,255,255,255,255,4);
			}
			case(5)
			{
				ConfigNumDisplay(324,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(324,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+7,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);
			}

			ConfigBurstRankNumDisplay(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(360,ConfigDrawY,255,255,255,255,PracticeStartRushGauge);


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

			ConfigNumDisplay(324,ConfigDrawY,255,255,255,255,InitialLife);
		ConfigDrawY+=ConfigDrawYPlus;
			if(Select==ConfigLightMode)
			{
		SelectBerA(ConfigDrawY);
				ConfigInitialBombDisplay(80,ConfigDrawY,255,255,255,255);
		//		DrawText("普通に終了します",80,360,18,255);
			}
			else
			{
				ConfigInitialBombDisplay(80,ConfigDrawY,150,255,255,255);
			}
			ConfigNumDisplay(324,ConfigDrawY,255,255,255,255,InitialBomb);

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

			if(PreLoad==1)
			{
				ConfigOnDisplay(304,ConfigDrawY,255,255,255,255);
			}
			else if(PreLoad==0)
			{
				ConfigOffDisplay(304,ConfigDrawY,255,255,255,255);
			}
			else
			{
				LightConfigFullDisplay(304,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-7);
			}
			if(ConfigBurstRankChangeMode==1)
			{
				SelectBerV(290+ConfigBurstRankChangefigure*14-7);
			}
			if(ConfigRushGaugeChangeMode==1)
			{
				SelectBerV(290+ConfigRushGaugeChangefigure*14-14);
			}
		//	}
		}

/////////////////////////////////////////////////////////////////////////////
////////////////////////ライトコンフィグ描画部/////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
		if(MenuState==MenuLightConfig)
		{
		let ConfigDrawY=60;
		let ConfigDrawYPlus=32;
			if(Select==LightConfigAutoBomb)
			{
		SelectBerA(60);
				LightConfigBGDrawDisplay(80,ConfigDrawY,255,255,255,255);
			}
			else
			{
				LightConfigBGDrawDisplay(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==LightConfigDifficult)
			{
		SelectBerA(ConfigDrawY);
				LightConfigLightModeDisplay(80,ConfigDrawY,255,255,255,255);
			}
			else
			{
				LightConfigLightModeDisplay(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==LightConfigStageSelect)
			{
		SelectBerA(ConfigDrawY);
				LightConfigHiScoreDrawDisplay(80,ConfigDrawY,255,255,255,255);
			}
			else
			{
				LightConfigHiScoreDrawDisplay(80,ConfigDrawY,150,255,255,255);
			}

			if(LightMode_HiscoreDraw==0)
			{
				ConfigOnDisplay(300,ConfigDrawY,255,255,255,255);
			}
			else if(LightMode_HiscoreDraw==1)
			{
				ConfigOffDisplay(300,ConfigDrawY,255,255,255,255);
			}
			else
			{
				LightConfigFullDisplay(300,ConfigDrawY,255,255,255,255);
			}

		ConfigDrawY+=ConfigDrawYPlus;
			if(Select==LightConfigStagePhage)
			{
		SelectBerA(ConfigDrawY);
				LightConfigPlayerIntervalEffectDisplay(80,ConfigDrawY,255,255,255,255);
			}
			else
			{
				LightConfigPlayerIntervalEffectDisplay(80,ConfigDrawY,150,255,255,255);
			}

			if(LightMode_PlayerIntervalEffect==0)
			{
				ConfigOnDisplay(300,ConfigDrawY,255,255,255,255);
			}
			else
			{
				ConfigOffDisplay(300,ConfigDrawY,255,255,255,255);
			}

		ConfigDrawY+=ConfigDrawYPlus;
			if(Select==LightConfigBurstCounter)
			{
		SelectBerA(ConfigDrawY);
				LightConfigShotEffectDisplay(80,ConfigDrawY,255,255,255,255);
			}
			else
			{
				LightConfigShotEffectDisplay(80,ConfigDrawY,150,255,255,255);
			}

			if(LightMode_ShotEffect==0)
			{
				ConfigOnDisplay(300,ConfigDrawY,255,255,255,255);
			}
			else
			{
				ConfigOffDisplay(300,ConfigDrawY,255,255,255,255);
			}

		ConfigDrawY+=ConfigDrawYPlus;
			if(Select==LightConfigMagicCounter)
			{
		SelectBerA(ConfigDrawY);
				LightConfigBombEffectDisplay(80,ConfigDrawY,255,255,255,255);
			}
			else
			{
				LightConfigBombEffectDisplay(80,ConfigDrawY,150,255,255,255);
			}


			if(LightMode_BombEffect==0)
			{
				ConfigOnDisplay(300,ConfigDrawY,255,255,255,255);
			}
			else
			{
				ConfigOffDisplay(300,ConfigDrawY,255,255,255,255);
			}
		ConfigDrawY+=ConfigDrawYPlus;
			if(Select==LightConfigBurstRank)
			{
		SelectBerA(ConfigDrawY);
				LightConfigPlayerBlurDisplay(80,ConfigDrawY,255,255,255,255);
			}
			else
			{
				LightConfigPlayerBlurDisplay(80,ConfigDrawY,150,255,255,255);
			}

			if(LightMode_PlayerBlur==0)
			{
				ConfigOnDisplay(300,ConfigDrawY,255,255,255,255);
			}
			else
			{
				ConfigOffDisplay(300,ConfigDrawY,255,255,255,255);
			}
		ConfigDrawY+=ConfigDrawYPlus;
			if(Select==LightConfigRushGauge)
			{
		SelectBerA(ConfigDrawY);
				LightConfigBossBlurDisplay(80,ConfigDrawY,255,255,255,255);
			}
			else
			{
				LightConfigBossBlurDisplay(80,ConfigDrawY,150,255,255,255);
			}

			if(LightMode_BossBlur==0)
			{
				ConfigOnDisplay(300,ConfigDrawY,255,255,255,255);
			}
			else
			{
				ConfigOffDisplay(300,ConfigDrawY,255,255,255,255);
			}

		ConfigDrawY+=ConfigDrawYPlus;
			if(Select==LightConfigBGDraw)
			{
		SelectBerA(ConfigDrawY);
				LightConfigElementalBlurDisplay(80,ConfigDrawY,255,255,255,255);
			}
			else
			{
				LightConfigElementalBlurDisplay(80,ConfigDrawY,150,255,255,255);
			}

			if(LightMode_ElementalBlur==0)
			{
				ConfigOnDisplay(300,ConfigDrawY,255,255,255,255);
			}
			else
			{
				ConfigOffDisplay(300,ConfigDrawY,255,255,255,255);
			}
		ConfigDrawY+=ConfigDrawYPlus;
			if(Select==LightConfigLightMode)
			{
		SelectBerA(ConfigDrawY);
				LightConfigSpecialEffectDisplay(80,ConfigDrawY,255,255,255,255);
			}
			else
			{
				LightConfigSpecialEffectDisplay(80,ConfigDrawY,150,255,255,255);
			}

			if(LightMode_SpecialEffect==0)
			{
				ConfigOnDisplay(300,ConfigDrawY,255,255,255,255);
			}
			else
			{
				ConfigOffDisplay(300,ConfigDrawY,255,255,255,255);
			}

		ConfigDrawY+=ConfigDrawYPlus;
			if(Select==LightConfigBreakEffect)
			{
		SelectBerA(ConfigDrawY);
				LightConfigBreakEffectDisplay(80,ConfigDrawY,255,255,255,255);
			}
			else
			{
				LightConfigBreakEffectDisplay(80,ConfigDrawY,150,255,255,255);
			}

			if(LightMode_BreakEffect==0)
			{
				ConfigOnDisplay(300,ConfigDrawY,255,255,255,255);
			}
			else
			{
				ConfigOffDisplay(300,ConfigDrawY,255,255,255,255);
			}

		ConfigDrawY+=ConfigDrawYPlus;
			if(Select==LightConfigDefault)
			{
		SelectBerA(ConfigDrawY);
				ConfigDefaultDisplay(80,ConfigDrawY,255,255,255,255);
			}
			else
			{
				ConfigDefaultDisplay(80,ConfigDrawY,150,255,255,255);
			}
		}
///////////////////////////////////////////////////////////////////////////////////
//////////////////////////////その他描画部///////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////
		if(MenuState==ResultOTHERS)
		{
			MemoryDisplay(80,45,255,255,255,255);
			PlayerHistoryDisplay(160,70,255,255,255,255);
		//	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,235,255,255,255,255);
			MarisaCDisplay(50,260,255,255,255,255);
//			MarisaDDisplay(50,285,255,255,255,255);
			OtherPlayersDisplay(50,300,255,255,255,255);
			ZenPlayerDisplay(50,340,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);
		//	ArDisplay(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 REE=GetCommonDataDefaultEx(NsScore,NsFrequencyReimuEEasy,0);
			let TE=RAE+RBE+RCE+RDE+REE;

			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 REN=GetCommonDataDefaultEx(NsScore,NsFrequencyReimuENormal,0);
			let TN=RAN+RBN+RCN+RDN+REN;

			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 REH=GetCommonDataDefaultEx(NsScore,NsFrequencyReimuEHard,0);
			let TH=RAH+RBH+RCH+RDH+REH;

			let RAL=GetCommonDataDefaultEx(NsScore,NsFrequencyReimuALuna,0);
			let RBL=GetCommonDataDefaultEx(NsScore,NsFrequencyReimuBLuna,0);
			let RCL=GetCommonDataDefaultEx(NsScore,NsFrequencyReimuCLuna,0);
			let RDL=GetCommonDataDefaultEx(NsScore,NsFrequencyReimuDLuna,0);
			let REL=GetCommonDataDefaultEx(NsScore,NsFrequencyReimuELuna,0);
			let TL=RAL+RBL+RCL+RDL+REL;

			let TRA=RAE+RAN+RAH+RAL;
			let TRB=RBE+RBN+RBH+RBL;
			let TRC=RCE+RCN+RCH+RCL;
			let TRD=RDE+RDN+RDH+RDL;
			let TRE=REE+REN+REH+REL;		
			let TOTAL=TE+TN+TH+TL;

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

			if(RAE>9999){RAE=9999;}//9999でカンスト
			if(RBE>9999){RBE=9999;}
			if(RCE>9999){RCE=9999;}
			if(RDE>9999){RDE=9999;}
			if(REE>9999){REE=9999;}
			if(TE>9999){TE=9999;}
			if(RAN>9999){RAN=9999;}
			if(RBN>9999){RBN=9999;}
			if(RCN>9999){RCE=9999;}
			if(RDN>9999){RDE=9999;}
			if(REN>9999){REE=9999;}
			if(TN>9999){TN=9999;}
			if(RAH>9999){RAH=9999;}
			if(RBH>9999){RBH=9999;}
			if(RCH>9999){RCE=9999;}
			if(RDH>9999){RDE=9999;}
			if(REH>9999){REE=9999;}
			if(TH>9999){TH=9999;}
			if(RAL>9999){RAL=9999;}
			if(RBL>9999){RBL=9999;}
			if(RCL>9999){RCL=9999;}
			if(RDL>9999){RDL=9999;}
			if(REL>9999){REL=9999;}
			if(TL>9999){TL=9999;}
			if(TRA>9999){TRA=9999;}
			if(TRB>9999){TRB=9999;}
			if(TRC>9999){TRC=9999;}
			if(TRD>9999){TRD=9999;}
			if(TRE>9999){TRE=9999;}

			if(TOTAL>9999){TOTAL=9999;}

			ResultNumberDisPlay(230,205,RAE,255,200,200,255);
			ResultNumberDisPlay(230,230,RBE,255,200,200,255);
			ResultNumberDisPlay(230,255,RCE,255,200,200,255);
//			ResultNumberDisPlay(230,280,RDE,255,200,200,255);
			ResultNumberDisPlay(230,340-5,TE,255,200,200,255);
	ResultNumberDisPlay(230,295,REE,255,200,200,255);
			ResultNumberDisPlay(285,205,RAN,255,200,200,255);
			ResultNumberDisPlay(285,230,RBN,255,200,200,255);
			ResultNumberDisPlay(285,255,RCN,255,200,200,255);
//			ResultNumberDisPlay(285,280,RDN,255,200,200,255);
			ResultNumberDisPlay(285,340-5,TN,255,200,200,255);
	ResultNumberDisPlay(285,295,REN,255,200,200,255);
			ResultNumberDisPlay(340,205,RAH,255,200,200,255);
			ResultNumberDisPlay(340,230,RBH,255,200,200,255);
			ResultNumberDisPlay(340,255,RCH,255,200,200,255);
//			ResultNumberDisPlay(340,280,RDH,255,200,200,255);
			ResultNumberDisPlay(340,340-5,TH,255,200,200,255);
	ResultNumberDisPlay(340,295,REH,255,200,200,255);
/*
			ResultNumberDisPlay(370,205,RAL,255,200,200,255);
			ResultNumberDisPlay(370,235,RBL,255,200,200,255);
			ResultNumberDisPlay(370,265,RCL,255,200,200,255);
			ResultNumberDisPlay(370,295,RDL,255,200,200,255);
*/
//	ResultNumberDisPlay(370,320,REL,255,200,200,255);


			ResultNumberDisPlay(395,205,TRA,255,200,200,255);
			ResultNumberDisPlay(395,230,TRB,255,200,200,255);
			ResultNumberDisPlay(395,255,TRC,255,200,200,255);
//			ResultNumberDisPlay(395,280,TRD,255,200,200,255);

		ResultNumberDisPlay(395,295,TRE,255,200,200,255);

			ResultNumberDisPlay(395,340-5,TOTAL,255,200,200,255);

			let AllScoreResult=GetCommonDataDefaultEx(NsScore,NsAllScore,0);
			let AllScoreResult2=GetCommonDataDefaultEx(NsScore,NsAllScore2,0);
			let AllScoreResult3=GetCommonDataDefaultEx(NsScore,NsAllScore3,0);
			if(AllScoreResult2>=1)
			{
				AllScoreResult+=1000000;
			}
			if(AllScoreResult3>=1)
			{
				AllScoreResult2+=1000000;
			}
			ALLScoreDisplay(50,380,255,255,255,255);
			ResultNumberDisPlayFragment(395,375,AllScoreResult,255,200,200,255);
			if(AllScoreResult2!=0)
			{
			ResultNumberDisPlayFragment(395-72,375,AllScoreResult2,255,255,200,200);
			}
			if(AllScoreResult3!=0)
			{
			ResultNumberDisPlayFragment(395-72*2,375,AllScoreResult3,255,255,255,200);
			}

			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,255,200,200);
			}


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