task DrawAchievement(num,x,y,Alpha)//メニューバーを表示
{
		let scx=1.0;
		let scy=1.0;
		let obj = Obj_Create(OBJ_EFFECT);
		if(GetCommonDataDefault("TitleMenu",false)==false)
		{
			ObjEffect_SetTexture(obj, imgStageAchievement);
			ObjEffect_SetRenderState(obj, ADD); 
		}
		else
		{
		ObjEffect_SetTexture(obj, imgAchievement);
		}
		ObjEffect_SetPrimitiveType(obj, PRIMITIVE_TRIANGLEFAN);
		//ObjEffect_SetRenderState(obj, ADD); 
		ObjEffect_CreateVertex(obj, 4);
		ObjEffect_SetVertexXY(obj, 0, -0, -11);
		ObjEffect_SetVertexXY(obj, 1,400,  -11);
		ObjEffect_SetVertexXY(obj, 2,400, 11);
		ObjEffect_SetVertexXY(obj, 3,  -0,  11);
		
		ObjEffect_SetVertexUV(obj, 0,  0,  0+num*22);
		ObjEffect_SetVertexUV(obj, 1,  400, 0+num*22);
		ObjEffect_SetVertexUV(obj, 2, 400, 22+num*22);
		ObjEffect_SetVertexUV(obj, 3, 0, 22+num*22);
if(num==10 || num==11)
{
		num-=10;
		ObjEffect_SetVertexXY(obj, 0, -0, -9);
		ObjEffect_SetVertexXY(obj, 1,400,  -9);
		ObjEffect_SetVertexXY(obj, 2,400, 9);
		ObjEffect_SetVertexXY(obj, 3,  -0,  9);
		ObjEffect_SetVertexUV(obj, 0,  0,  220+num*18+1);
		ObjEffect_SetVertexUV(obj, 1,  400, 220+num*18+1);
		ObjEffect_SetVertexUV(obj, 2, 400, 238+num*18+1);
		ObjEffect_SetVertexUV(obj, 3, 0, 238+num*18+1);
}
if(num>=12 && num<13)
{
		num-=12;
		let size=20;
		ObjEffect_SetVertexXY(obj, 0, -0, -size/2);
		ObjEffect_SetVertexXY(obj, 1,400,  -size/2);
		ObjEffect_SetVertexXY(obj, 2,400, size/2);
		ObjEffect_SetVertexXY(obj, 3,  -0,  size/2);
		ObjEffect_SetVertexUV(obj, 0,  0,  256+num*size+2);
		ObjEffect_SetVertexUV(obj, 1,  400, 256+num*size+2);
		ObjEffect_SetVertexUV(obj, 2, 400, 256+size+num*size+2);
		ObjEffect_SetVertexUV(obj, 3, 0, 256+size+num*size+2);
}
if(num>=13 && num<35)
{
		num-=14;
		let size=19;
		ObjEffect_SetVertexXY(obj, 0, -0, -size/2);
		ObjEffect_SetVertexXY(obj, 1,400,  -size/2);
		ObjEffect_SetVertexXY(obj, 2,400, size/2);
		ObjEffect_SetVertexXY(obj, 3,  -0,  size/2);
		ObjEffect_SetVertexUV(obj, 0,  0,  296+num*size+1);
		ObjEffect_SetVertexUV(obj, 1,  400, 296+num*size+1);
		ObjEffect_SetVertexUV(obj, 2, 400, 296+size+num*size-1);
		ObjEffect_SetVertexUV(obj, 3, 0, 296+size+num*size-1);
}
if(num>=35 && num<38)
{
		num-=14;
		let size=19;
		ObjEffect_SetVertexXY(obj, 0, -0, -size/2);
		ObjEffect_SetVertexXY(obj, 1,400,  -size/2);
		ObjEffect_SetVertexXY(obj, 2,400, size/2);
		ObjEffect_SetVertexXY(obj, 3,  -0,  size/2);
		ObjEffect_SetVertexUV(obj, 0,  0,  296+num*size+1);
		ObjEffect_SetVertexUV(obj, 1,  400, 296+num*size+1);
		ObjEffect_SetVertexUV(obj, 2, 400, 296+size+num*size);
		ObjEffect_SetVertexUV(obj, 3, 0, 296+size+num*size);
}
if(num>=38 && num<40)
{
		num-=38;
		let size=21;
		ObjEffect_SetVertexXY(obj, 0, -0, -size/2);
		ObjEffect_SetVertexXY(obj, 1,400,  -size/2);
		ObjEffect_SetVertexXY(obj, 2,400, size/2);
		ObjEffect_SetVertexXY(obj, 3,  -0,  size/2);
		ObjEffect_SetVertexUV(obj, 0,  0,  753+num*size+1);
		ObjEffect_SetVertexUV(obj, 1,  400, 753+num*size+1);
		ObjEffect_SetVertexUV(obj, 2, 400, 753+size+num*size);
		ObjEffect_SetVertexUV(obj, 3, 0, 753+size+num*size);
}
if(num>=40 && num<50)
{
		num-=40;
		let size=22;
		ObjEffect_SetVertexXY(obj, 0, -0, -size/2);
		ObjEffect_SetVertexXY(obj, 1,400,  -size/2);
		ObjEffect_SetVertexXY(obj, 2,400, size/2);
		ObjEffect_SetVertexXY(obj, 3,  -0,  size/2);
		ObjEffect_SetVertexUV(obj, 0,  0,  795+num*size+2);
		ObjEffect_SetVertexUV(obj, 1,  400, 795+num*size+2);
		ObjEffect_SetVertexUV(obj, 2, 400, 795+size+num*size+2);
		ObjEffect_SetVertexUV(obj, 3, 0, 795+size+num*size+2);
}
if(num>=50 && num<55)
{
		num-=50;
		let size=19;
		ObjEffect_SetVertexXY(obj, 0, -0, -size/2);
		ObjEffect_SetVertexXY(obj, 1,400,  -size/2);
		ObjEffect_SetVertexXY(obj, 2,400, size/2);
		ObjEffect_SetVertexXY(obj, 3,  -0,  size/2);
		ObjEffect_SetVertexUV(obj, 0,  0,  1015+num*size+1);
		ObjEffect_SetVertexUV(obj, 1,  400, 1015+num*size+1);
		ObjEffect_SetVertexUV(obj, 2, 400, 1015+size+num*size+1);
		ObjEffect_SetVertexUV(obj, 3, 0, 1015+size+num*size+1);
}
if(num>=55 && num<56)
{
		num-=55;
		let size=19;
		ObjEffect_SetVertexXY(obj, 0, -0, -size/2);
		ObjEffect_SetVertexXY(obj, 1,400,  -size/2);
		ObjEffect_SetVertexXY(obj, 2,400, size/2);
		ObjEffect_SetVertexXY(obj, 3,  -0,  size/2);
		ObjEffect_SetVertexUV(obj, 0,  0,  1111+num*size+1);
		ObjEffect_SetVertexUV(obj, 1,  400, 1111+num*size+1);
		ObjEffect_SetVertexUV(obj, 2, 400, 1111+size+num*size-1);
		ObjEffect_SetVertexUV(obj, 3, 0, 1111+size+num*size-1);
}
if(num>=56 && num<60)
{
		num-=56;
		let size=19;
		ObjEffect_SetVertexXY(obj, 0, -0, -size/2);
		ObjEffect_SetVertexXY(obj, 1,400,  -size/2);
		ObjEffect_SetVertexXY(obj, 2,400, size/2);
		ObjEffect_SetVertexXY(obj, 3,  -0,  size/2);
		ObjEffect_SetVertexUV(obj, 0,  0,  1132+num*size-1);
		ObjEffect_SetVertexUV(obj, 1,  400, 1132+num*size-1);
		ObjEffect_SetVertexUV(obj, 2, 400, 1132+size+num*size-2);
		ObjEffect_SetVertexUV(obj, 3, 0, 1132+size+num*size-2);
}
if(num>=60 && num<61)
{
		num-=60;
		let size=18;
		ObjEffect_SetVertexXY(obj, 0, -0, -size/2);
		ObjEffect_SetVertexXY(obj, 1,400,  -size/2);
		ObjEffect_SetVertexXY(obj, 2,400, size/2);
		ObjEffect_SetVertexXY(obj, 3,  -0,  size/2);
		ObjEffect_SetVertexUV(obj, 0,  0,  1209+num*size);
		ObjEffect_SetVertexUV(obj, 1,  400, 1209+num*size);
		ObjEffect_SetVertexUV(obj, 2, 400, 1209+size+num*size);
		ObjEffect_SetVertexUV(obj, 3, 0, 1209+size+num*size);
}
if(num>=61 && num<62)
{
		num-=60;
		let size=18;
		ObjEffect_SetVertexXY(obj, 0, -0, -size/2);
		ObjEffect_SetVertexXY(obj, 1,400,  -size/2);
		ObjEffect_SetVertexXY(obj, 2,400, size/2);
		ObjEffect_SetVertexXY(obj, 3,  -0,  size/2);
		ObjEffect_SetVertexUV(obj, 0,  0,  1209+num*size+1);
		ObjEffect_SetVertexUV(obj, 1,  400, 1209+num*size+1);
		ObjEffect_SetVertexUV(obj, 2, 400, 1209+size+num*size+1);
		ObjEffect_SetVertexUV(obj, 3, 0, 1209+size+num*size+1);
}
if(num>=62 && num<63)
{
		num-=62;
		let size=20;
		ObjEffect_SetVertexXY(obj, 0, -0, -size/2);
		ObjEffect_SetVertexXY(obj, 1,400,  -size/2);
		ObjEffect_SetVertexXY(obj, 2,400, size/2);
		ObjEffect_SetVertexXY(obj, 3,  -0,  size/2);
		ObjEffect_SetVertexUV(obj, 0,  0,  1246+num*size+1);
		ObjEffect_SetVertexUV(obj, 1,  400, 1246+num*size+1);
		ObjEffect_SetVertexUV(obj, 2, 400, 1246+size+num*size);
		ObjEffect_SetVertexUV(obj, 3, 0, 1246+size+num*size);
}
if(num>=63 && num<71)
{
		num-=63;
		let size=19;
		ObjEffect_SetVertexXY(obj, 0, -0, -size/2);
		ObjEffect_SetVertexXY(obj, 1,400,  -size/2);
		ObjEffect_SetVertexXY(obj, 2,400, size/2);
		ObjEffect_SetVertexXY(obj, 3,  -0,  size/2);
		ObjEffect_SetVertexUV(obj, 0,  0,  1267+num*size);
		ObjEffect_SetVertexUV(obj, 1,  400, 1267+num*size);
		ObjEffect_SetVertexUV(obj, 2, 400, 1267+size+num*size-1);
		ObjEffect_SetVertexUV(obj, 3, 0, 1267+size+num*size-1);
}
if(num>=71 && num<73)
{
		num-=71;
		let size=19;
		ObjEffect_SetVertexXY(obj, 0, -0, -size/2);
		ObjEffect_SetVertexXY(obj, 1,400,  -size/2);
		ObjEffect_SetVertexXY(obj, 2,400, size/2);
		ObjEffect_SetVertexXY(obj, 3,  -0,  size/2);
		ObjEffect_SetVertexUV(obj, 0,  0,  1420+num*size);
		ObjEffect_SetVertexUV(obj, 1,  400, 1420+num*size);
		ObjEffect_SetVertexUV(obj, 2, 400, 1420+size+num*size-1);
		ObjEffect_SetVertexUV(obj, 3, 0, 1420+size+num*size-1);
}
if(num>=73 && num<78)
{
		num-=73;
		let size=19;
		ObjEffect_SetVertexXY(obj, 0, -0, -size/2);
		ObjEffect_SetVertexXY(obj, 1,400,  -size/2);
		ObjEffect_SetVertexXY(obj, 2,400, size/2);
		ObjEffect_SetVertexXY(obj, 3,  -0,  size/2);
		ObjEffect_SetVertexUV(obj, 0,  0,  1461+num*size-3);
		ObjEffect_SetVertexUV(obj, 1,  400, 1461+num*size-3);
		ObjEffect_SetVertexUV(obj, 2, 400, 1461+size+num*size-4);
		ObjEffect_SetVertexUV(obj, 3, 0, 1461+size+num*size-4);
}
if(num>=78 && num<79)
{
		num-=78;
		let size=19;
		ObjEffect_SetVertexXY(obj, 0, -0, -size/2);
		ObjEffect_SetVertexXY(obj, 1,400,  -size/2);
		ObjEffect_SetVertexXY(obj, 2,400, size/2);
		ObjEffect_SetVertexXY(obj, 3,  -0,  size/2);
		ObjEffect_SetVertexUV(obj, 0,  0,  1556+num*size-3);
		ObjEffect_SetVertexUV(obj, 1,  400, 1556+num*size-3);
		ObjEffect_SetVertexUV(obj, 2, 400, 1556+size+num*size-3);
		ObjEffect_SetVertexUV(obj, 3, 0, 1556+size+num*size-4);
}
if(num>=79 && num<84)
{
		num-=79;
		let size=19;
		ObjEffect_SetVertexXY(obj, 0, -0, -size/2);
		ObjEffect_SetVertexXY(obj, 1,400,  -size/2);
		ObjEffect_SetVertexXY(obj, 2,400, size/2);
		ObjEffect_SetVertexXY(obj, 3,  -0,  size/2);
		ObjEffect_SetVertexUV(obj, 0,  0,  1575+num*size-3);
		ObjEffect_SetVertexUV(obj, 1,  400, 1575+num*size-3);
		ObjEffect_SetVertexUV(obj, 2, 400, 1575+size+num*size-4);
		ObjEffect_SetVertexUV(obj, 3, 0, 1575+size+num*size-4);
}
if(num>=84 && num<100)
{
		num-=84;
		let size=19;
		ObjEffect_SetVertexXY(obj, 0, -0, -size/2);
		ObjEffect_SetVertexXY(obj, 1,400,  -size/2);
		ObjEffect_SetVertexXY(obj, 2,400, size/2);
		ObjEffect_SetVertexXY(obj, 3,  -0,  size/2);
		ObjEffect_SetVertexUV(obj, 0,  0,  1673+num*size-7);
		ObjEffect_SetVertexUV(obj, 1,  400, 1673+num*size-7);
		ObjEffect_SetVertexUV(obj, 2, 400, 1673+size+num*size-7);
		ObjEffect_SetVertexUV(obj, 3, 0, 1673+size+num*size-7);
}
		let R=255;let G=255; let B=255;

		ObjEffect_SetVertexColor(obj,0,Alpha,255,255,255);
		ObjEffect_SetVertexColor(obj,1,Alpha,255,255,255);
		ObjEffect_SetVertexColor(obj,2,Alpha,255,255,255);
		ObjEffect_SetVertexColor(obj,3,Alpha,255,255,255);

		ObjEffect_SetLayer(obj,7);
		Obj_SetPosition(obj,x,y+5);

		if(GetCommonDataDefault("TitleMenu",false)==false)
		{
		ObjEffect_SetScale(obj, 0.6,0.6);
		}
		else
		{
		ObjEffect_SetScale(obj, scx,scy);
		}

		yield;
		Obj_Delete(obj);
}

task DrawAchievementComment(num,x,y,Alpha)//メニューバーを表示
{
		let scx=0.70;
		let scy=1.0;
		let obj = Obj_Create(OBJ_EFFECT);
		ObjEffect_SetTexture(obj, imgAchievement);
		ObjEffect_SetPrimitiveType(obj, PRIMITIVE_TRIANGLEFAN);
	//	ObjEffect_SetRenderState(obj, ADD); 
		ObjEffect_CreateVertex(obj, 4);
		ObjEffect_SetVertexXY(obj, 0, -0, -11);
		ObjEffect_SetVertexXY(obj, 1,400,  -11);
		ObjEffect_SetVertexXY(obj, 2,400, 11);
		ObjEffect_SetVertexXY(obj, 3,  -0,  11);
		
		ObjEffect_SetVertexUV(obj, 0,  478,  0+num*22);
		ObjEffect_SetVertexUV(obj, 1,  878, 0+num*22);
		ObjEffect_SetVertexUV(obj, 2, 878, 22+num*22);
		ObjEffect_SetVertexUV(obj, 3, 478, 22+num*22);
if(num==10 || num==11)
{
		num-=10;
		ObjEffect_SetVertexXY(obj, 0, -0, -9);
		ObjEffect_SetVertexXY(obj, 1,400,  -9);
		ObjEffect_SetVertexXY(obj, 2,400, 9);
		ObjEffect_SetVertexXY(obj, 3,  -0,  9);
		ObjEffect_SetVertexUV(obj, 0,  478,  220+num*19+1);
		ObjEffect_SetVertexUV(obj, 1,  878, 220+num*19+1);
		ObjEffect_SetVertexUV(obj, 2, 878, 238+num*19+1);
		ObjEffect_SetVertexUV(obj, 3, 478, 238+num*19+1);
}
if(num>=12 && num<14)
{
		num-=12;
		let size=19;
		ObjEffect_SetVertexXY(obj, 0, -0, -size/2);
		ObjEffect_SetVertexXY(obj, 1,400,  -size/2);
		ObjEffect_SetVertexXY(obj, 2,400, size/2);
		ObjEffect_SetVertexXY(obj, 3,  -0,  size/2);
		ObjEffect_SetVertexUV(obj, 0,  478,  256+num*size+3);
		ObjEffect_SetVertexUV(obj, 1,  878, 256+num*size+3);
		ObjEffect_SetVertexUV(obj, 2, 878, 256+size+num*size+3);
		ObjEffect_SetVertexUV(obj, 3, 478, 256+size+num*size+3);
}
if(num>=14 && num<38)
{
		num-=14;
		let size=19;
		ObjEffect_SetVertexXY(obj, 0, -0, -size/2);
		ObjEffect_SetVertexXY(obj, 1,500,  -size/2);
		ObjEffect_SetVertexXY(obj, 2,500, size/2);
		ObjEffect_SetVertexXY(obj, 3,  -0,  size/2);
		ObjEffect_SetVertexUV(obj, 0,  478,  296+num*size+1);
		ObjEffect_SetVertexUV(obj, 1,  978, 296+num*size+1);
		ObjEffect_SetVertexUV(obj, 2, 978, 296+size+num*size-0);
		ObjEffect_SetVertexUV(obj, 3, 478, 296+size+num*size-0);
}
if(num>=38 && num<40)
{
		num-=38;
		let size=22;
		ObjEffect_SetVertexXY(obj, 0, -0, -size/2);
		ObjEffect_SetVertexXY(obj, 1,400,  -size/2);
		ObjEffect_SetVertexXY(obj, 2,400, size/2);
		ObjEffect_SetVertexXY(obj, 3,  -0,  size/2);
		ObjEffect_SetVertexUV(obj, 0,  478,  753+num*size);
		ObjEffect_SetVertexUV(obj, 1,  878, 753+num*size);
		ObjEffect_SetVertexUV(obj, 2, 878, 753+size+num*size-1);
		ObjEffect_SetVertexUV(obj, 3, 478, 753+size+num*size-1);
}
if(num>=40 && num<50)
{
		num-=40;
		let size=22;
		ObjEffect_SetVertexXY(obj, 0, -0, -size/2);
		ObjEffect_SetVertexXY(obj, 1,400,  -size/2);
		ObjEffect_SetVertexXY(obj, 2,400, size/2);
		ObjEffect_SetVertexXY(obj, 3,  -0,  size/2);
		ObjEffect_SetVertexUV(obj, 0,  478,  795+num*size+1);
		ObjEffect_SetVertexUV(obj, 1,  878, 795+num*size+1);
		ObjEffect_SetVertexUV(obj, 2, 878, 795+size+num*size);
		ObjEffect_SetVertexUV(obj, 3, 478, 795+size+num*size);
}
if(num>=50 && num<55)
{
		num-=50;
		let size=19;
		ObjEffect_SetVertexXY(obj, 0, -0, -size/2);
		ObjEffect_SetVertexXY(obj, 1,400,  -size/2);
		ObjEffect_SetVertexXY(obj, 2,400, size/2);
		ObjEffect_SetVertexXY(obj, 3,  -0,  size/2);
		ObjEffect_SetVertexUV(obj, 0,  478,  1015+num*size+2);
		ObjEffect_SetVertexUV(obj, 1,  878, 1015+num*size+2);
		ObjEffect_SetVertexUV(obj, 2, 878, 1015+size+num*size+1);
		ObjEffect_SetVertexUV(obj, 3, 478, 1015+size+num*size+1);
}
if(num>=55 && num<56)
{
		num-=55;
		let size=19;
		ObjEffect_SetVertexXY(obj, 0, -0, -size/2);
		ObjEffect_SetVertexXY(obj, 1,400,  -size/2);
		ObjEffect_SetVertexXY(obj, 2,400, size/2);
		ObjEffect_SetVertexXY(obj, 3,  -0,  size/2);
		ObjEffect_SetVertexUV(obj, 0,  478,  1111+num*size);
		ObjEffect_SetVertexUV(obj, 1,  878, 1111+num*size);
		ObjEffect_SetVertexUV(obj, 2, 878, 1111+size+num*size);
		ObjEffect_SetVertexUV(obj, 3, 478, 1111+size+num*size);
}
if(num>=56 && num<60)
{
		num-=56;
		let size=19;
		ObjEffect_SetVertexXY(obj, 0, -0, -size/2);
		ObjEffect_SetVertexXY(obj, 1,400,  -size/2);
		ObjEffect_SetVertexXY(obj, 2,400, size/2);
		ObjEffect_SetVertexXY(obj, 3,  -0,  size/2);
		ObjEffect_SetVertexUV(obj, 0,  478,  1132+num*size);
		ObjEffect_SetVertexUV(obj, 1,  878, 1132+num*size);
		ObjEffect_SetVertexUV(obj, 2, 878, 1132+size+num*size-1);
		ObjEffect_SetVertexUV(obj, 3, 478, 1132+size+num*size-1);
}
if(num>=60 && num<62)
{
		num-=60;
		let size=18;
		ObjEffect_SetVertexXY(obj, 0, -0, -size/2);
		ObjEffect_SetVertexXY(obj, 1,400,  -size/2);
		ObjEffect_SetVertexXY(obj, 2,400, size/2);
		ObjEffect_SetVertexXY(obj, 3,  -0,  size/2);
		ObjEffect_SetVertexUV(obj, 0,  478,  1209+num*size-2);
		ObjEffect_SetVertexUV(obj, 1,  878, 1209+num*size-2);
		ObjEffect_SetVertexUV(obj, 2, 878, 1209+size+num*size-2);
		ObjEffect_SetVertexUV(obj, 3, 478, 1209+size+num*size-2);
}
if(num>=62 && num<63)
{
		num-=62;
		let size=19;
		ObjEffect_SetVertexXY(obj, 0, -0, -size/2);
		ObjEffect_SetVertexXY(obj, 1,500,  -size/2);
		ObjEffect_SetVertexXY(obj, 2,500, size/2);
		ObjEffect_SetVertexXY(obj, 3,  -0,  size/2);
		ObjEffect_SetVertexUV(obj, 0,  478,  1246+num*size-1);
		ObjEffect_SetVertexUV(obj, 1,  978, 1246+num*size-1);
		ObjEffect_SetVertexUV(obj, 2, 978, 1246+size+num*size-1);
		ObjEffect_SetVertexUV(obj, 3, 478, 1246+size+num*size-1);
}
if(num>=63 && num<71)
{
		num-=63;
		let size=19;
		ObjEffect_SetVertexXY(obj, 0, -0, -size/2);
		ObjEffect_SetVertexXY(obj, 1,500,  -size/2);
		ObjEffect_SetVertexXY(obj, 2,500, size/2);
		ObjEffect_SetVertexXY(obj, 3,  -0,  size/2);
		ObjEffect_SetVertexUV(obj, 0,  478,  1267+num*size-3);
		ObjEffect_SetVertexUV(obj, 1,  978, 1267+num*size-3);
		ObjEffect_SetVertexUV(obj, 2, 978, 1267+size+num*size-4);
		ObjEffect_SetVertexUV(obj, 3, 478, 1267+size+num*size-4);
}
if(num>=71 && num<73)
{
		num-=71;
		let size=19;
		ObjEffect_SetVertexXY(obj, 0, -0, -size/2);
		ObjEffect_SetVertexXY(obj, 1,400,  -size/2);
		ObjEffect_SetVertexXY(obj, 2,400, size/2);
		ObjEffect_SetVertexXY(obj, 3,  -0,  size/2);
		ObjEffect_SetVertexUV(obj, 0,  478,  1420+num*size-3);
		ObjEffect_SetVertexUV(obj, 1,  878, 1420+num*size-3);
		ObjEffect_SetVertexUV(obj, 2, 878, 1420+size+num*size-4);
		ObjEffect_SetVertexUV(obj, 3, 478, 1420+size+num*size-4);
}
if(num>=73 && num<78)
{
		num-=73;
		let size=19;
		ObjEffect_SetVertexXY(obj, 0, -0, -size/2);
		ObjEffect_SetVertexXY(obj, 1,600,  -size/2);
		ObjEffect_SetVertexXY(obj, 2,600, size/2);
		ObjEffect_SetVertexXY(obj, 3,  -0,  size/2);
		ObjEffect_SetVertexUV(obj, 0,  478,  1461+num*size-6);
		ObjEffect_SetVertexUV(obj, 1,  1078, 1461+num*size-6);
		ObjEffect_SetVertexUV(obj, 2, 1078, 1461+size+num*size-7);
		ObjEffect_SetVertexUV(obj, 3, 478, 1461+size+num*size-7);
}
if(num>=78 && num<79)
{
		num-=78;
		let size=19;
		ObjEffect_SetVertexXY(obj, 0, -0, -size/2);
		ObjEffect_SetVertexXY(obj, 1,500,  -size/2);
		ObjEffect_SetVertexXY(obj, 2,500, size/2);
		ObjEffect_SetVertexXY(obj, 3,  -0,  size/2);
		ObjEffect_SetVertexUV(obj, 0,  478,  1556+num*size-6);
		ObjEffect_SetVertexUV(obj, 1,  978, 1556+num*size-6);
		ObjEffect_SetVertexUV(obj, 2, 978, 1556+size+num*size-7);
		ObjEffect_SetVertexUV(obj, 3, 478, 1556+size+num*size-7);
}
if(num>=79 && num<84)
{
		num-=79;
		let size=19;
		ObjEffect_SetVertexXY(obj, 0, -0, -size/2);
		ObjEffect_SetVertexXY(obj, 1,500,  -size/2);
		ObjEffect_SetVertexXY(obj, 2,500, size/2);
		ObjEffect_SetVertexXY(obj, 3,  -0,  size/2);
		ObjEffect_SetVertexUV(obj, 0,  478,  1575+num*size-6);
		ObjEffect_SetVertexUV(obj, 1,  978, 1575+num*size-6);
		ObjEffect_SetVertexUV(obj, 2, 978, 1575+size+num*size-7);
		ObjEffect_SetVertexUV(obj, 3, 478, 1575+size+num*size-7);
}
if(num>=84 && num<91)
{
		num-=84;
		let size=19;
		ObjEffect_SetVertexXY(obj, 0, -0, -size/2);
		ObjEffect_SetVertexXY(obj, 1,600,  -size/2);
		ObjEffect_SetVertexXY(obj, 2,600, size/2);
		ObjEffect_SetVertexXY(obj, 3,  -0,  size/2);
		ObjEffect_SetVertexUV(obj, 0,  478,  1673+num*size-8);
		ObjEffect_SetVertexUV(obj, 1,  1078, 1673+num*size-8);
		ObjEffect_SetVertexUV(obj, 2, 1078, 1673+size+num*size-10);
		ObjEffect_SetVertexUV(obj, 3, 478, 1673+size+num*size-10);
}
if(num>=91 && num<100)
{
		num-=84;
		let size=19;
		ObjEffect_SetVertexXY(obj, 0, -0, -size/2);
		ObjEffect_SetVertexXY(obj, 1,600,  -size/2);
		ObjEffect_SetVertexXY(obj, 2,600, size/2);
		ObjEffect_SetVertexXY(obj, 3,  -0,  size/2);
		ObjEffect_SetVertexUV(obj, 0,  478,  1673+num*size-7);
		ObjEffect_SetVertexUV(obj, 1,  1078, 1673+num*size-7);
		ObjEffect_SetVertexUV(obj, 2, 1078, 1673+size+num*size-8);
		ObjEffect_SetVertexUV(obj, 3, 478, 1673+size+num*size-8);
}
		let R=255;let G=255; let B=255;

		ObjEffect_SetVertexColor(obj,0,Alpha,255,255,255);
		ObjEffect_SetVertexColor(obj,1,Alpha,255,255,255);
		ObjEffect_SetVertexColor(obj,2,Alpha,255,255,255);
		ObjEffect_SetVertexColor(obj,3,Alpha,255,255,255);

		ObjEffect_SetLayer(obj,7);
		Obj_SetPosition(obj,x-5,y+5);

		ObjEffect_SetScale(obj, scx,scy);

		yield;
		Obj_Delete(obj);
}

task DrawAchievementBlack(num,x,y,Alpha)//メニューバーを表示
{
		let scx=1.00;
		let scy=1.0;
		let obj = Obj_Create(OBJ_EFFECT);
		ObjEffect_SetTexture(obj, imgBer2);
		ObjEffect_SetPrimitiveType(obj, PRIMITIVE_TRIANGLEFAN);
		ObjEffect_SetRenderState(obj, ADD); 
		ObjEffect_CreateVertex(obj, 4);
		ObjEffect_SetVertexXY(obj, 0, 0, -6);
		ObjEffect_SetVertexXY(obj, 1, 400,  -6);
		ObjEffect_SetVertexXY(obj, 2, 400, 6);
		ObjEffect_SetVertexXY(obj, 3,  0,  6);
		
		ObjEffect_SetVertexUV(obj, 0,  6,  37);
		ObjEffect_SetVertexUV(obj, 1,  148, 37);
		ObjEffect_SetVertexUV(obj, 2, 148,  47);
		ObjEffect_SetVertexUV(obj, 3, 6, 47);

		let R=255;let G=255; let B=255;

		ObjEffect_SetVertexColor(obj,0,Alpha*0.2,255,255,255);
		ObjEffect_SetVertexColor(obj,1,Alpha*0.2,255,255,255);
		ObjEffect_SetVertexColor(obj,2,Alpha*0.2,255,255,255);
		ObjEffect_SetVertexColor(obj,3,Alpha*0.2,255,255,255);

		ObjEffect_SetLayer(obj,7);
		Obj_SetPosition(obj,x-5,y+5);

		ObjEffect_SetScale(obj, scx,scy);

		yield;
		Obj_Delete(obj);
}
