sub MenuDraw
{
		SetFontColor(255,255,255,50,50,255);
		if(StageState==Menu)
		{
/////////////////////////////////////////////////////////////////////////////
////////////////////////メニュー描画部/////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
		if(MenuState==Menu)
		{
		DrawText("Choose Mode",120,28,32,255);
			if(Select==Start)
			{
				DrawText("Game Start",80,80,32,255);
				DrawText("本編を開始します",80,360,18,255);
			}
			else
			{
				DrawText("Game Start",80,80,18,255);
			}

			if(Select==Extra)
			{
				DrawText("Extra",80,120,32,255);
			}
			else
			{
				DrawText("Extra",80,120,18,255);
			}

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

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

			if(Select==Quit)
			{
				DrawText("Quit",80,240,32,255);
				DrawText("普通に終了します",80,360,18,255);
			}
			else
			{
				DrawText("Quit",80,240,18,255);
			}
			if(Select==Secret)
			{
				DrawText("Secret",240,80,32,255);
				DrawText("おまけです",80,360,18,255);
			}
		}
/////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////難易度選択描画部/////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////
		if(MenuState==MenuDifficult)
		{
		DrawText("Choose Level",120,28,32,255);
			if(Select==EASY)
			{
				DrawText("Easy",80,80,32,255);
				DrawText("Easyモード",80,360,18,255);
			}
			else
			{
				DrawText("Easy",80,80,18,255);
			}

			if(Select==NORMAL)
			{
				DrawText("Normal",80,120,32,255);
				DrawText("普通の難易度",80,360,18,255);
			}
			else
			{
				DrawText("Normal",80,120,18,255);
			}

			if(Select==HARD)
			{
				DrawText("Hard",80,160,32,255);
				DrawText("ちょっと難しい",80,360,18,255);
			}
			else
			{
				DrawText("Hard",80,160,18,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)
			{
				DrawText("Easy",80,80,32,255);
				DrawText("Easyのプラクティスを開始",80,360,18,255);
			}
			else
			{
				DrawText("Easy",80,80,18,255);
			}

			if(Select==NORMALPRACTICE)
			{
				DrawText("Normal",80,120,32,255);
				DrawText("Normalのプラクティスを開始",80,360,18,255);
			}
			else
			{
				DrawText("Normal",80,120,18,255);
			}

			if(Select==HARDPRACTICE)
			{
				DrawText("Hard",80,160,32,255);
				DrawText("Hardのプラクティスを開始",80,360,18,255);
			}
			else
			{
				DrawText("Hard",80,160,18,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)
			{
				DrawText("STAGE1",80,80,32,255);
				DrawText("STAGE1のプラクティスを開始",80,360,18,255);
			}
			else
			{
				DrawText("STAGE1",80,80,18,255);
			}

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

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

			if(Select==STAGE4)
			{
				DrawText("STAGE4",80,200,32,255);
				DrawText("未実装",80,360,18,255);
			}
			else
			{
				DrawText("STAGE4",80,200,18,255);
			}
			if(Select==STAGE5)
			{
				DrawText("STAGE5",80,240,32,255);
				DrawText("未実装",80,360,18,255);
			}
			else
			{
				DrawText("STAGE5",80,240,18,255);
			}
			if(Select==STAGE6)
			{
				DrawText("STAGE6",80,280,32,255);
				DrawText("未実装",80,360,18,255);
			}
			else
			{
				DrawText("STAGE6",80,280,18,255);
			}
		}
//////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////リザルト描画部//////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////
		if(MenuState==MenuResult)
		{
		DrawText("Choose Result",120,28,32,255);
			if(Select==ResultSCORE)
			{
				DrawText("SCORE",80,120,32,255);
				DrawText("ハイスコアなどが見れます",80,360,18,255);
			}
			else
			{
				DrawText("SCORE",80,120,18,255);
			}
			if(Select==ResultSPELL)
			{
				DrawText("SPELL",80,160,32,255);
				DrawText("スペルカード戦歴が見れます",80,360,18,255);
			}
			else
			{
				DrawText("SPELL",80,160,18,255);
			}
			if(Select==ResultOTHERS)
			{
				DrawText("OTHERS",80,200,32,255);
				DrawText("その他の記録が見れます",80,360,18,255);
			}
			else
			{
				DrawText("OTHERS",80,200,18,255);
			}
		}
/////////////////////////////////////////////////////////////////////////////////
//////////////////////////////スコア描画部/////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////
		let ScoreDrawX=260;
		if(MenuState==ViewResultScore)
		{
			DrawText("決定キーでスペルカード戦歴へ",80,420,12,255);
			DrawText("ScoreHistory",120,30,32,255);
			DrawText("No",120,130,14,255);
			DrawText("SCORE",ScoreDrawX,130,14,255);
		//	DrawText("STAGE",295,130,14,255);
			ascent(let i in 0..10)
			{		
			//	DrawText(NumToString(i+1),35,150+i*25,14,255);
				ResultHiscoreDisPlay2(ScoreDrawX-130,150+i*25,i+1,0);
			}
		}
		alternative(ResultScoreState)
		case(ResultEASYP1)
		{
				DrawText("EASY",180,70,32,255);
				DrawText(DrawDefinedPlayer1,150,105,18,255);
				ascent(let i in 0..10)
				{
					//DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuAEasy[i],0)),ScoreDrawX-45,150+i*25,14,255);
					ResultHiscoreDisPlay(ScoreDrawX+50,150+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuAEasy[i],0),NsHiScoreReimuAEasy2[i]);
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuAEasy2[i],0)!=0)
					{
					//	DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuAEasy2[i],0)),ScoreDrawX-93,150+i*25,14,255);
						ResultHiscoreDisPlay2(ScoreDrawX-10,150+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuAEasy2[i],0),0);
					}
				}
		}

		case(ResultEASYP2)
		{
				DrawText("EASY",180,70,32,255);
				DrawText(DrawDefinedPlayer2,150,105,18,255);
				ascent(let i in 0..10)
				{
					//DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBEasy[i],0)),ScoreDrawX-45,150+i*25,14,255);
					ResultHiscoreDisPlay(ScoreDrawX+50,150+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBEasy[i],0),NsHiScoreReimuBEasy2[i]);
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBEasy2[i],0)!=0)
					{
					//	DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBEasy2[i],0)),ScoreDrawX-93,150+i*25,14,255);
						ResultHiscoreDisPlay2(ScoreDrawX-10,150+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBEasy2[i],0),0);
					}
				}
		}	

		case(ResultEASYP3)
		{
				DrawText("EASY",180,70,32,255);
				DrawText(DrawDefinedPlayer3,150,105,18,255);
				ascent(let i in 0..10)
				{
				//	DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaAEasy[i],0)),ScoreDrawX-45,150+i*25,14,255);
					ResultHiscoreDisPlay(ScoreDrawX+50,150+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaAEasy[i],0),NsHiScoreMarisaAEasy2[i]);
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaAEasy2[i],0)!=0)
					{
				//		DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaAEasy2[i],0)),ScoreDrawX-93,150+i*25,14,255);
						ResultHiscoreDisPlay2(ScoreDrawX-10,150+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaAEasy2[i],0),0);
					}
				}
		}	

		case(ResultEASYP4)
		{
				DrawText("EASY",180,70,32,255);
				DrawText(DrawDefinedPlayer4,150,105,18,255);
				ascent(let i in 0..10)
				{
				//	DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaBEasy[i],0)),ScoreDrawX-45,150+i*25,14,255);
					ResultHiscoreDisPlay(ScoreDrawX+50,150+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaBEasy[i],0),NsHiScoreMarisaBEasy2[i]);
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaBEasy2[i],0)!=0)
					{
				//		DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaBEasy2[i],0)),ScoreDrawX-93,150+i*25,14,255);
						ResultHiscoreDisPlay2(ScoreDrawX-10,150+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaBEasy2[i],0),0);
					}
				}
		}	

		case(ResultEASYP5)
		{
				DrawText("EASY",180,70,32,255);
				DrawText("その他のプレイヤー",150,105,18,255);
				ascent(let i in 0..10)
				{
					DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreOthersEasy[i],0)),ScoreDrawX-45,150+i*25,14,255);
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreOthersEasy2[i],0)!=0)
					{
						DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreOthersEasy2[i],0)),ScoreDrawX-93,150+i*25,14,255);
					}
				}
		}
//--------------------------------------------------------------------------------------------------------------------------
		case(ResultNORMALP1)
		{
				DrawText("NORMAL",180,70,32,255);
				DrawText(DrawDefinedPlayer1,150,105,18,255);
				ascent(let i in 0..10)
				{
				//	DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuANormal[i],0)),ScoreDrawX-45,150+i*25,14,255);
					ResultHiscoreDisPlay(ScoreDrawX+50,150+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuANormal[i],0),NsHiScoreReimuANormal2[i]);
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuANormal2[i],0)!=0)
					{
				//		DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuANormal2[i],0)),ScoreDrawX-93,150+i*25,14,255);
						ResultHiscoreDisPlay2(ScoreDrawX-10,150+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuANormal2[i],0),0);
					}
				}
		}

		case(ResultNORMALP2)
		{
				DrawText("NORMAL",180,70,32,255);
				DrawText(DrawDefinedPlayer2,150,105,18,255);
				ascent(let i in 0..10)
				{
				//	DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBNormal[i],0)),ScoreDrawX-45,150+i*25,14,255);
					ResultHiscoreDisPlay(ScoreDrawX+50,150+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBNormal[i],0),NsHiScoreReimuBNormal2[i]);
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBNormal2[i],0)!=0)
					{
				//		DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBNormal2[i],0)),ScoreDrawX-93,150+i*25,14,255);
						ResultHiscoreDisPlay2(ScoreDrawX-10,150+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBNormal2[i],0),0);
					}
				}
		}	

		case(ResultNORMALP3)
		{
				DrawText("NORMAL",180,70,32,255);
				DrawText(DrawDefinedPlayer3,150,105,18,255);
				ascent(let i in 0..10)
				{
				//	DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaANormal[i],0)),ScoreDrawX-45,150+i*25,14,255);
					ResultHiscoreDisPlay(ScoreDrawX+50,150+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaANormal[i],0),NsHiScoreMarisaANormal2[i]);
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaANormal2[i],0)!=0)
					{
				//		DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaANormal2[i],0)),ScoreDrawX-93,150+i*25,14,255);
						ResultHiscoreDisPlay2(ScoreDrawX-10,150+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaANormal2[i],0),0);
					}
				}
		}	

		case(ResultNORMALP4)
		{
				DrawText("NORMAL",180,70,32,255);
				DrawText(DrawDefinedPlayer4,150,105,18,255);
				ascent(let i in 0..10)
				{
				//	DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaBNormal[i],0)),ScoreDrawX-45,150+i*25,14,255);
					ResultHiscoreDisPlay(ScoreDrawX+50,150+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaBNormal[i],0),NsHiScoreMarisaBNormal2[i]);
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaBNormal2[i],0)!=0)
					{
				//		DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaBNormal2[i],0)),ScoreDrawX-93,150+i*25,14,255);
						ResultHiscoreDisPlay2(ScoreDrawX-10,150+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaBNormal2[i],0),0);
					}
				}
		}	

		case(ResultNORMALP5)
		{
				DrawText("NORMAL",180,70,32,255);
				DrawText("その他のプレイヤー",150,105,18,255);
				ascent(let i in 0..10)
				{
					DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreOthersNormal[i],0)),ScoreDrawX-45,150+i*25,14,255);
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreOthersNormal2[i],0)!=0)
					{
						DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreOthersNormal2[i],0)),ScoreDrawX-93,150+i*25,14,255);
					}
				}
		}
//-------------------------------------------------------------------------------------------------------------------------
		case(ResultHARDP1)
		{
				DrawText("HARD",180,70,32,255);
				DrawText(DrawDefinedPlayer1,150,105,18,255);
				ascent(let i in 0..10)
				{
				//	DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuAHard[i],0)),ScoreDrawX-45,150+i*25,14,255);
					ResultHiscoreDisPlay(ScoreDrawX+50,150+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuAHard[i],0),NsHiScoreReimuAHard2[i]);
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuAHard2[i],0)!=0)
					{
				//		DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuAHard2[i],0)),ScoreDrawX-93,150+i*25,14,255);
						ResultHiscoreDisPlay2(ScoreDrawX-10,150+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuAHard2[i],0),0);
					}
				}
		}

		case(ResultHARDP2)
		{
				DrawText("HARD",180,70,32,255);
				DrawText(DrawDefinedPlayer2,150,105,18,255);
				ascent(let i in 0..10)
				{
				//	DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBHard[i],0)),ScoreDrawX-45,150+i*25,14,255);
					ResultHiscoreDisPlay(ScoreDrawX+50,150+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBHard[i],0),NsHiScoreReimuBHard2[i]);
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBHard2[i],0)!=0)
					{
				//		DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBHard2[i],0)),ScoreDrawX-93,150+i*25,14,255);
						ResultHiscoreDisPlay2(ScoreDrawX-10,150+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBHard2[i],0),0);
					}
				}
		}	

		case(ResultHARDP3)
		{
				DrawText("HARD",180,70,32,255);
				DrawText(DrawDefinedPlayer3,150,105,18,255);
				ascent(let i in 0..10)
				{
				//	DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaAHard[i],0)),ScoreDrawX-45,150+i*25,14,255);
					ResultHiscoreDisPlay(ScoreDrawX+50,150+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaAHard[i],0),NsHiScoreMarisaAHard2[i]);
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaAHard2[i],0)!=0)
					{
				//		DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaAHard2[i],0)),ScoreDrawX-93,150+i*25,14,255);
						ResultHiscoreDisPlay2(ScoreDrawX-10,150+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaAHard2[i],0),0);
					}
				}
		}	

		case(ResultHARDP4)
		{
				DrawText("HARD",180,70,32,255);
				DrawText(DrawDefinedPlayer4,150,105,18,255);
				ascent(let i in 0..10)
				{
				//	DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaBHard[i],0)),ScoreDrawX-45,150+i*25,14,255);
					ResultHiscoreDisPlay(ScoreDrawX+50,150+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaBHard[i],0),NsHiScoreMarisaBHard2[i]);
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaBHard2[i],0)!=0)
					{
				//		DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaAHard2[i],0)),ScoreDrawX-93,150+i*25,14,255);
						ResultHiscoreDisPlay2(ScoreDrawX-10,150+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaBHard2[i],0),0);
					}
				}
		}	

		case(ResultHARDP5)
		{
				DrawText("HARD",180,70,32,255);
				DrawText("その他のプレイヤー",150,105,18,255);
				ascent(let i in 0..10)
				{
					DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreOthersHard[i],0)),ScoreDrawX-45,150+i*25,14,255);
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreOthersHard2[i],0)!=0)
					{
						DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreOthersHard2[i],0)),ScoreDrawX-93,150+i*25,14,255);
					}
				}
		}
//-----------------------------------------------------------------------------------------------------------------------
		case(ResultLUNATICP1)
		{
				DrawText("LUNATIC",180,70,32,255);
				DrawText(DrawDefinedPlayer1,150,105,18,255);
				ascent(let i in 0..10)
				{
				//	DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuALunatic[i],0)),ScoreDrawX-45,150+i*25,14,255);
					ResultHiscoreDisPlay(ScoreDrawX+50,150+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuALunatic[i],0),NsHiScoreReimuALunatic2[i]);
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuALunatic2[i],0)!=0)
					{
				//		DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuALunatic2[i],0)),ScoreDrawX-93,150+i*25,14,255);
						ResultHiscoreDisPlay2(ScoreDrawX-10,150+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuALunatic2[i],0),0);
					}
				}
		}

		case(ResultLUNATICP2)
		{
				DrawText("LUNATIC",180,70,32,255);
				DrawText(DrawDefinedPlayer2,150,105,18,255);
				ascent(let i in 0..10)
				{
				//	DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBLunatic[i],0)),ScoreDrawX-45,150+i*25,14,255);
					ResultHiscoreDisPlay(ScoreDrawX+50,150+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBLunatic[i],0),NsHiScoreReimuBLunatic2[i]);
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBLunatic2[i],0)!=0)
					{
				//		DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBLunatic2[i],0)),ScoreDrawX-93,150+i*25,14,255);
						ResultHiscoreDisPlay2(ScoreDrawX-10,150+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBLunatic2[i],0),0);
					}
				}
		}	

		case(ResultLUNATICP3)
		{
				DrawText("LUNATIC",180,70,32,255);
				DrawText(DrawDefinedPlayer3,150,105,18,255);
				ascent(let i in 0..10)
				{
				//	DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaALunatic[i],0)),ScoreDrawX-45,150+i*25,14,255);
					ResultHiscoreDisPlay(ScoreDrawX+50,150+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaALunatic[i],0),NsHiScoreMarisaALunatic2[i]);
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaALunatic2[i],0)!=0)
					{
				//		DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaALunatic2[i],0)),ScoreDrawX-93,150+i*25,14,255);
						ResultHiscoreDisPlay2(ScoreDrawX-10,150+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaALunatic2[i],0),0);
					}
				}
		}	

		case(ResultLUNATICP4)
		{
				DrawText("LUNATIC",180,70,32,255);
				DrawText(DrawDefinedPlayer4,150,105,18,255);
				ascent(let i in 0..10)
				{
				//	DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaBLunatic[i],0)),ScoreDrawX-45,150+i*25,14,255);
					ResultHiscoreDisPlay(ScoreDrawX+50,150+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaBLunatic[i],0),NsHiScoreMarisaBLunatic2[i]);
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaBLunatic2[i],0)!=0)
					{
				//		DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaBLunatic2[i],0)),ScoreDrawX-93,150+i*25,14,255);
						ResultHiscoreDisPlay2(ScoreDrawX-10,150+i*25,GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaBLunatic2[i],0),0);
					}
				}
		}	
		case(ResultLUNATICP5)
		{
				DrawText("LUNATIC",180,70,32,255);
				DrawText("その他のプレイヤー",150,105,18,255);
				ascent(let i in 0..10)
				{
					DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreOthersLunatic[i],0)),ScoreDrawX-45,150+i*25,14,255);
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreOthersLunatic2[i],0)!=0)
					{
						DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreOthersLunatic2[i],0)),ScoreDrawX-93,150+i*25,14,255);
					}
				}
		}
//------------------------------------------------------------------------------------------------------------------------------------
		case(ResultEXTRAP1)
		{
				DrawText("EXTRA",180,70,32,255);
				DrawText(DrawDefinedPlayer1,150,105,18,255);
				ascent(let i in 0..10)
				{
					DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuAExtra[i],0)),ScoreDrawX-45,150+i*25,14,255);
				}
		}

		case(ResultEXTRAP2)
		{
				DrawText("EXTRA",180,70,32,255);
				DrawText(DrawDefinedPlayer2,150,105,18,255);
				ascent(let i in 0..10)
				{
					DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBExtra[i],0)),ScoreDrawX-45,150+i*25,14,255);
				}
		}	

		case(ResultEXTRAP3)
		{
				DrawText("EXTRA",180,70,32,255);
				DrawText(DrawDefinedPlayer3,150,105,18,255);
				ascent(let i in 0..10)
				{
					DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaAExtra[i],0)),ScoreDrawX-45,150+i*25,14,255);
				}
		}	

		case(ResultEXTRAP4)
		{
				DrawText("EXTRA",180,70,32,255);
				DrawText(DrawDefinedPlayer4,150,105,18,255);
				ascent(let i in 0..10)
				{
					DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaBExtra[i],0)),ScoreDrawX-45,150+i*25,14,255);
				}
		}	

		case(ResultEXTRAP5)
		{
				DrawText("EXTRA",180,70,32,255);
				DrawText("その他のプレイヤー",150,105,18,255);
				ascent(let i in 0..10)
				{
					DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreOthersExtra[i],0)),ScoreDrawX-45,150+i*25,14,255);
					if(GetCommonDataDefaultEx(NsScore,NsHiScoreOthersExtra2[i],0)!=0)
					{
						DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsHiScoreOthersExtra2[i],0)),ScoreDrawX-45,150+i*25,14,255);
					}
				}
		}
///////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////スペル戦歴描画部////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////
		if(MenuState==ViewResultSpell)
		{
			DrawText("SpellCardHistory",80,30,32,255);
			//DrawText("決定キーでハイスコア一覧へ",80,420,12,255);
			ResultKetteiDisplay(164,421,255,255,255,255);//決定キーでハイスコア一覧へを表示
		}
		ascent(let j in 0..20)
		{
			if(ResultSpellState>=10000 && ResultSpellState%100==j)//ResultSpellStateがResultSpell1~ResultSpell1Oと同じ意味
			{
				ascent(let i in 1+j*8..9+j*8)
				{
				ResultSpellDrawEachPlayer(i,SpellName[i],100+(i-1)%8*40,ResultSpellState);
				}
			}
		}
////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////シークレット部//////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
		if(MenuState==MenuSecret)
		{
				DrawText("SPELL",80,120,32,255);
				DrawText("パチェさんが色々スペルカードを",80,360,18,255);
				DrawText("みせてくれます(没スペル？）",80,380,18,255);
		}
		if(MenuState==SecretSpell)
		{
			if(Select==SecretSpell1)
			{
				DrawText("Spell1",80,120,32,255);
				DrawText("スペルその１",80,360,18,255);
			}
			else
			{
				DrawText("Spell1",80,120,18,255);
			}
			if(Select==SecretSpell2)
			{
				DrawText("Spell2",80,160,32,255);
				DrawText("スペルその２",80,360,18,255);
			}
			else
			{
				DrawText("Spell2",80,160,18,255);
			}
		}
		if(MenuState==SecretSpellEnd)
		{
			if(Select==SecretSpellRetry)
			{
				DrawText("RETRY",80,120,32,255);
				DrawText("再挑戦します",80,360,18,255);
			}
			else
			{
				DrawText("RETRY",80,120,18,255);
			}
			if(Select==SecretSpellFinish)
			{
				DrawText("END",80,160,32,255);
				DrawText("メニューに戻ります",80,360,18,255);
			}
			else
			{
				DrawText("END",80,160,18,255);
			}
		}
///////////////////////////////////////////////////////////////////////////////////
//////////////////////////////その他描画部///////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////
		if(MenuState==ResultOTHERS)
		{
			DrawText("PlayerHistory",120,40,32,255);

		//	DrawText("総起動時間",50,110,12,255);
			ResultSoukidouDisplay(50,110,255,255,255,255);
			DrawText(":",180,110,12,255);
			DrawText(":",210,110,12,255);
		//	DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsUpTime,0)/216000),80,110,12,255);
		//	DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsUpTime,0)/3600%60),110,110,12,255);
		//	DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsUpTime,0)/60%60),140,110,12,255);
			ResultNumberDisPlay(170,110,GetCommonDataDefaultEx(NsScore,NsUpTime,0)/216000,255,200,200,255);
			ResultNumberDisPlay(200,110,GetCommonDataDefaultEx(NsScore,NsUpTime,0)/3600%60,255,200,200,255);
			ResultNumberDisPlay(230,110,GetCommonDataDefaultEx(NsScore,NsUpTime,0)/60%60,255,200,200,255);


		//	DrawText("総プレイ時間",50,130,12,255);
			ResultSouPlayDisplay(50,130,255,255,255,255);
			DrawText(":",180,130,12,255);
			DrawText(":",210,130,12,255);
		//	DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsPlayTime,0)/216000),80,130,12,255);
		//	DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsPlayTime,0)/3600%60),110,130,12,255);
		//	DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsPlayTime,0)/60%60),140,130,12,255);
			ResultNumberDisPlay(170,130,GetCommonDataDefaultEx(NsScore,NsPlayTime,0)/216000,255,200,200,255);
			ResultNumberDisPlay(200,130,GetCommonDataDefaultEx(NsScore,NsPlayTime,0)/3600%60,255,200,200,255);
			ResultNumberDisPlay(230,130,GetCommonDataDefaultEx(NsScore,NsPlayTime,0)/60%60,255,200,200,255);


		//	DrawText("プレイ回数",50,160,12,255);
			ResultPlayKaisuuDisplay(50,160,255,255,255,255);
		//	DrawText(DrawDefinedPlayer1,50,180,12,255);
			ResultReimuADisplay(50,180,255,255,255,255);
		//	DrawText(DrawDefinedPlayer2,50,200,12,255);
			ResultReimuBDisplay(50,200,255,255,255,255);
		//	DrawText(DrawDefinedPlayer3,50,220,12,255);
			ResultMarisaADisplay(50,220,255,255,255,255);
		//	DrawText(DrawDefinedPlayer4,50,240,12,255);
			ResultMarisaBDisplay(50,240,255,255,255,255);
		//	DrawText("その他のキャラ",50,260,12,255);
			ResultSonotaDisplay(50,260,255,255,255,255);
		//	DrawText("全プレイヤー合計",50,280,12,255);
			ResultZenDisplay(50,280,255,255,255,255);

			let RAE=GetCommonDataDefaultEx(NsScore,NsFrequencyReimuAEasy,0);
			let RBE=GetCommonDataDefaultEx(NsScore,NsFrequencyReimuBEasy,0);
			let MAE=GetCommonDataDefaultEx(NsScore,NsFrequencyMarisaAEasy,0);
			let MBE=GetCommonDataDefaultEx(NsScore,NsFrequencyMarisaBEasy,0);
			let OE=GetCommonDataDefaultEx(NsScore,NsFrequencyOthersEasy,0);
			let TE=RAE+RBE+MAE+MBE+OE;

			let RAN=GetCommonDataDefaultEx(NsScore,NsFrequencyReimuANormal,0);
			let RBN=GetCommonDataDefaultEx(NsScore,NsFrequencyReimuBNormal,0);
			let MAN=GetCommonDataDefaultEx(NsScore,NsFrequencyMarisaANormal,0);
			let MBN=GetCommonDataDefaultEx(NsScore,NsFrequencyMarisaBNormal,0);
			let ON=GetCommonDataDefaultEx(NsScore,NsFrequencyOthersNormal,0);
			let TN=RAN+RBN+MAN+MBN+ON;


			let RAH=GetCommonDataDefaultEx(NsScore,NsFrequencyReimuAHard,0);
			let RBH=GetCommonDataDefaultEx(NsScore,NsFrequencyReimuBHard,0);
			let MAH=GetCommonDataDefaultEx(NsScore,NsFrequencyMarisaAHard,0);
			let MBH=GetCommonDataDefaultEx(NsScore,NsFrequencyMarisaBHard,0);
			let OH=GetCommonDataDefaultEx(NsScore,NsFrequencyOthersHard,0);
			let TH=RAH+RBH+MAH+MBH+OH;

			let RAL=GetCommonDataDefaultEx(NsScore,NsFrequencyReimuALunatic,0);
			let RBL=GetCommonDataDefaultEx(NsScore,NsFrequencyReimuBLunatic,0);
			let MAL=GetCommonDataDefaultEx(NsScore,NsFrequencyMarisaALunatic,0);
			let MBL=GetCommonDataDefaultEx(NsScore,NsFrequencyMarisaBLunatic,0);
			let OL=GetCommonDataDefaultEx(NsScore,NsFrequencyOthersLunatic,0);
			let TL=RAL+RBL+MAL+MBL+OL;

			let RAEX=GetCommonDataDefaultEx(NsScore,NsFrequencyReimuAExtra,0);
			let RBEX=GetCommonDataDefaultEx(NsScore,NsFrequencyReimuBExtra,0);
			let MAEX=GetCommonDataDefaultEx(NsScore,NsFrequencyMarisaAExtra,0);
			let MBEX=GetCommonDataDefaultEx(NsScore,NsFrequencyMarisaBExtra,0);
			let OEX=GetCommonDataDefaultEx(NsScore,NsFrequencyOthersExtra,0);
			let TEX=RAEX+RBEX+MAEX+MBEX+OEX;

			let TRA=RAE+RAN+RAH+RAL+RAEX;
			let TRB=RBE+RBN+RBH+RBL+RBEX;
			let TMA=MAE+MAN+MAH+MAL+MAEX;
			let TMB=MBE+MBN+MBH+MBL+MBEX;
			let TO=OE+ON+OH+OL+OEX;
			
			let TOTAL=TE+TN+TH+TL+TEX;

			ResultZenDifficultDisplay(160,160,255,255,255,255);

		//	DrawText("Easy",160,160,12,255);
		//	DrawText(NumToString(RAE),105,180,12,255);
			ResultNumberDisPlay(185,180,RAE,255,200,200,255);
		//	DrawText(NumToString(RBE),105,200,12,255);
			ResultNumberDisPlay(185,200,RBE,255,200,200,255);
		//	DrawText(NumToString(MAE),105,220,12,255);
			ResultNumberDisPlay(185,220,MAE,255,200,200,255);
		//	DrawText(NumToString(MBE),105,240,12,255);
			ResultNumberDisPlay(185,240,MBE,255,200,200,255);
		//	DrawText(NumToString(OE),105,260,12,255);
			ResultNumberDisPlay(185,260,OE,255,200,200,255);
		//	DrawText(NumToString(TE),105,280,12,255);
			ResultNumberDisPlay(185,280,TE,255,200,200,255);

		//	DrawText("Norm",200,160,12,255);
		//	DrawText(NumToString(RAN),145,180,12,255);
			ResultNumberDisPlay(225,180,RAN,255,200,200,255);
		//	DrawText(NumToString(RBN),145,200,12,255);
			ResultNumberDisPlay(225,200,RBN,255,200,200,255);
		//	DrawText(NumToString(MAN),145,220,12,255);
			ResultNumberDisPlay(225,220,MAN,255,200,200,255);
		//	DrawText(NumToString(MBN),145,240,12,255);
			ResultNumberDisPlay(225,240,MBN,255,200,200,255);
		//	DrawText(NumToString(ON),145,260,12,255);
			ResultNumberDisPlay(225,260,ON,255,200,200,255);
		//	DrawText(NumToString(TN),145,280,12,255);
			ResultNumberDisPlay(225,280,TN,255,200,200,255);

		//	DrawText("Hard",240,160,12,255);
		//	DrawText(NumToString(RAH),185,180,12,255);
			ResultNumberDisPlay(265,180,RAH,255,200,200,255);
		//	DrawText(NumToString(RBH),185,200,12,255);
			ResultNumberDisPlay(265,200,RBH,255,200,200,255);
		//	DrawText(NumToString(MAH),185,220,12,255);
			ResultNumberDisPlay(265,220,MAH,255,200,200,255);
		//	DrawText(NumToString(MBH),185,240,12,255);
			ResultNumberDisPlay(265,240,MBH,255,200,200,255);
		//	DrawText(NumToString(OH),185,260,12,255);
			ResultNumberDisPlay(265,260,OH,255,200,200,255);
		//	DrawText(NumToString(TH),185,280,12,255);
			ResultNumberDisPlay(265,280,TH,255,200,200,255);

		//	DrawText("Luna",280,160,12,255);
		//	DrawText(NumToString(RAL),225,180,12,255);
			ResultNumberDisPlay(305,180,RAL,255,200,200,255);
		//	DrawText(NumToString(RBL),225,200,12,255);
			ResultNumberDisPlay(305,200,RBL,255,200,200,255);
		//	DrawText(NumToString(MAL),225,220,12,255);
			ResultNumberDisPlay(305,220,MAL,255,200,200,255);
		//	DrawText(NumToString(MBL),225,240,12,255);
			ResultNumberDisPlay(305,240,MBL,255,200,200,255);
		//	DrawText(NumToString(OL),225,260,12,255);
			ResultNumberDisPlay(305,260,OL,255,200,200,255);
		//	DrawText(NumToString(TL),225,280,12,255);
			ResultNumberDisPlay(305,280,TL,255,200,200,255);

		//	DrawText("Extra",320,160,12,255);
		//	DrawText(NumToString(RAEX),265,180,12,255);
			ResultNumberDisPlay(345,180,RAEX,255,200,200,255);
		//	DrawText(NumToString(RBEX),265,200,12,255);
			ResultNumberDisPlay(345,200,RBEX,255,200,200,255);
		//	DrawText(NumToString(MAEX),265,220,12,255);
			ResultNumberDisPlay(345,220,MAEX,255,200,200,255);
		//	DrawText(NumToString(MBEX),265,240,12,255);
			ResultNumberDisPlay(345,240,MBEX,255,200,200,255);
		//	DrawText(NumToString(OEX),265,260,12,255);
			ResultNumberDisPlay(345,260,OEX,255,200,200,255);
		//	DrawText(NumToString(TEX),265,280,12,255);
			ResultNumberDisPlay(345,280,TEX,255,200,200,255);

		//	DrawText("Total",365,160,12,255);
		//	DrawText(NumToString(TRA),305,180,12,255);
			ResultNumberDisPlay(385,180,TRA,255,200,200,255);
		//	DrawText(NumToString(TRB),305,200,12,255);
			ResultNumberDisPlay(385,200,TRB,255,200,200,255);
		//	DrawText(NumToString(TMA),305,220,12,255);
			ResultNumberDisPlay(385,220,TMA,255,200,200,255);
		//	DrawText(NumToString(TMB),305,240,12,255);
			ResultNumberDisPlay(385,240,TMB,255,200,200,255);
		//	DrawText(NumToString(TO),305,260,12,255);
			ResultNumberDisPlay(385,260,TO,255,200,200,255);
		//	DrawText(NumToString(TOTAL),305,280,12,255);
			ResultNumberDisPlay(385,280,TOTAL,255,200,200,255);

		//	DrawText("クリア回数",50,300,12,255);
		//	DrawText("コンテニュー",50,320,12,255);
		//	DrawText("プラクティス",50,340,12,255);
		//	DrawText("リトライ回数",50,360,12,255);

			ResultClearKaisuuDisplay(50,300,255,255,255,255);
			ResultContenuDisplay(50,320,255,255,255,255);
			ResultPlacticDisplay(50,340,255,255,255,255);
			ResultRetrayDisplay(50,360,255,255,255,255);


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