task DrawKirokusimasita
{
		let bx=GetCenterX;
		let by=300;
		let sx=0.5;
		let sy=0.5;

		let obj = Obj_Create(OBJ_EFFECT);
		ObjEffect_SetTexture(obj, imgLetter);
		ObjEffect_SetPrimitiveType(obj, PRIMITIVE_TRIANGLEFAN);
	//	ObjEffect_SetRenderState(obj, ADD); 
		ObjEffect_CreateVertex(obj, 4);

		ObjEffect_SetVertexXY(obj, 0, -129, -13);
		ObjEffect_SetVertexXY(obj, 1, 129,  -13);
		ObjEffect_SetVertexXY(obj, 2, 129, 13);
		ObjEffect_SetVertexXY(obj, 3,  -129,  13);
		
		ObjEffect_SetVertexUV(obj, 0,  5,  141);
		ObjEffect_SetVertexUV(obj, 1,  263, 141);
		ObjEffect_SetVertexUV(obj, 2, 263,  166);
		ObjEffect_SetVertexUV(obj, 3, 5, 166);

		Obj_SetPosition(obj,bx,by);
		ObjEffect_SetLayer(obj,8);
		ObjEffect_SetScale(obj, sx,sy);
		wait(30);
		Obj_Delete(obj);
}

task DrawScene(x,y,UR,UG,UB,DR,DG,DB)
{

		let obj = Obj_Create(OBJ_EFFECT);
		ObjEffect_SetTexture(obj, imgMenuLetter);
		ObjEffect_SetPrimitiveType(obj, PRIMITIVE_TRIANGLEFAN);
		ObjEffect_SetRenderState(obj, ADD); 
		ObjEffect_CreateVertex(obj, 4);

		ObjEffect_SetVertexXY(obj, 0, 0, 2);
		ObjEffect_SetVertexXY(obj, 1, 93,  2);
		ObjEffect_SetVertexXY(obj, 2, 93, 30);
		ObjEffect_SetVertexXY(obj, 3,  0,  30);
		
		ObjEffect_SetVertexUV(obj, 0,  8,  6);
		ObjEffect_SetVertexUV(obj, 1,  101, 6);
		ObjEffect_SetVertexUV(obj, 2, 101,  34);
		ObjEffect_SetVertexUV(obj, 3, 8, 34);

		Obj_SetPosition(obj,x,y);
		ObjEffect_SetLayer(obj,8);
		ObjEffect_SetScale(obj, 0.5,0.5);

		ObjEffect_SetVertexColor(obj,0,255,UR,UG,UB);
		ObjEffect_SetVertexColor(obj,1,255,UR,UG,UB);
		ObjEffect_SetVertexColor(obj,2,255,DR,DG,DB);
		ObjEffect_SetVertexColor(obj,3,255,DR,DG,DB);
		wait(1);
		Obj_Delete(obj);
}

task DrawStageSelect(x,y,UR,UG,UB,DR,DG,DB)
{

		let obj = Obj_Create(OBJ_EFFECT);
		ObjEffect_SetTexture(obj, imgMenuLetter);
		ObjEffect_SetPrimitiveType(obj, PRIMITIVE_TRIANGLEFAN);
		ObjEffect_SetRenderState(obj, ADD); 
		ObjEffect_CreateVertex(obj, 4);

		ObjEffect_SetVertexXY(obj, 0, 0, 4);
		ObjEffect_SetVertexXY(obj, 1, 310,  4);
		ObjEffect_SetVertexXY(obj, 2, 310, 41);
		ObjEffect_SetVertexXY(obj, 3,  0,  41);
		
		ObjEffect_SetVertexUV(obj, 0,  6,  44);
		ObjEffect_SetVertexUV(obj, 1,  303, 44);
		ObjEffect_SetVertexUV(obj, 2, 303,  81);
		ObjEffect_SetVertexUV(obj, 3, 6, 81);

		Obj_SetPosition(obj,x,y);
		ObjEffect_SetLayer(obj,8);
		ObjEffect_SetScale(obj, 0.5,0.5);

		ObjEffect_SetVertexColor(obj,0,255,UR,UG,UB);
		ObjEffect_SetVertexColor(obj,1,255,UR,UG,UB);
		ObjEffect_SetVertexColor(obj,2,255,DR,DG,DB);
		ObjEffect_SetVertexColor(obj,3,255,DR,DG,DB);
		wait(1);
		Obj_Delete(obj);
}

task DrawHiscore(x,y,UR,UG,UB,DR,DG,DB)
{

		let obj = Obj_Create(OBJ_EFFECT);
		ObjEffect_SetTexture(obj, imgMenuLetter);
		ObjEffect_SetPrimitiveType(obj, PRIMITIVE_TRIANGLEFAN);
		ObjEffect_SetRenderState(obj, ADD); 
		ObjEffect_CreateVertex(obj, 4);

		ObjEffect_SetVertexXY(obj, 0, 0, 0);
		ObjEffect_SetVertexXY(obj, 1, 97,  0);
		ObjEffect_SetVertexXY(obj, 2, 97, 18);
		ObjEffect_SetVertexXY(obj, 3,  0,  18);
		
		ObjEffect_SetVertexUV(obj, 0,  8,  96);
		ObjEffect_SetVertexUV(obj, 1,  98, 96);
		ObjEffect_SetVertexUV(obj, 2, 98,  114);
		ObjEffect_SetVertexUV(obj, 3, 8, 114);

		Obj_SetPosition(obj,x,y);
		ObjEffect_SetLayer(obj,8);
		ObjEffect_SetScale(obj, 0.5,0.5);

		ObjEffect_SetVertexColor(obj,0,255,UR,UG,UB);
		ObjEffect_SetVertexColor(obj,1,255,UR,UG,UB);
		ObjEffect_SetVertexColor(obj,2,255,DR,DG,DB);
		ObjEffect_SetVertexColor(obj,3,255,DR,DG,DB);
		wait(1);
		Obj_Delete(obj);
}


task DrawBestShot(x,y,UR,UG,UB,DR,DG,DB)
{

		let obj = Obj_Create(OBJ_EFFECT);
		ObjEffect_SetTexture(obj, imgMenuLetter);
		ObjEffect_SetPrimitiveType(obj, PRIMITIVE_TRIANGLEFAN);
		ObjEffect_SetRenderState(obj, ADD); 
		ObjEffect_CreateVertex(obj, 4);

		ObjEffect_SetVertexXY(obj, 0, 0, 0);
		ObjEffect_SetVertexXY(obj, 1, 110,  0);
		ObjEffect_SetVertexXY(obj, 2, 110, 18);
		ObjEffect_SetVertexXY(obj, 3,  0,  18);
		
		ObjEffect_SetVertexUV(obj, 0,  109,  96);
		ObjEffect_SetVertexUV(obj, 1,  211, 96);
		ObjEffect_SetVertexUV(obj, 2, 211,  114);
		ObjEffect_SetVertexUV(obj, 3, 109, 114);

		Obj_SetPosition(obj,x,y);
		ObjEffect_SetLayer(obj,8);
		ObjEffect_SetScale(obj, 0.5,0.5);

		ObjEffect_SetVertexColor(obj,0,255,UR,UG,UB);
		ObjEffect_SetVertexColor(obj,1,255,UR,UG,UB);
		ObjEffect_SetVertexColor(obj,2,255,DR,DG,DB);
		ObjEffect_SetVertexColor(obj,3,255,DR,DG,DB);
		wait(1);
		Obj_Delete(obj);
}

task DrawLevel(x,y,UR,UG,UB,DR,DG,DB)
{

		let obj = Obj_Create(OBJ_EFFECT);
		ObjEffect_SetTexture(obj, imgMenuLetter);
		ObjEffect_SetPrimitiveType(obj, PRIMITIVE_TRIANGLEFAN);
		ObjEffect_SetRenderState(obj, ADD); 
		ObjEffect_CreateVertex(obj, 4);

		ObjEffect_SetVertexXY(obj, 0, 0, 0);
		ObjEffect_SetVertexXY(obj, 1,103,  0);
		ObjEffect_SetVertexXY(obj, 2, 103, 31);
		ObjEffect_SetVertexXY(obj, 3,  0,  31);
		
		ObjEffect_SetVertexUV(obj, 0,  119,  4);
		ObjEffect_SetVertexUV(obj, 1,  222, 4);
		ObjEffect_SetVertexUV(obj, 2, 222,  35);
		ObjEffect_SetVertexUV(obj, 3, 119, 35);

		Obj_SetPosition(obj,x,y);
		ObjEffect_SetLayer(obj,8);
		ObjEffect_SetScale(obj, 0.5,0.5);

		ObjEffect_SetVertexColor(obj,0,255,UR,UG,UB);
		ObjEffect_SetVertexColor(obj,1,255,UR,UG,UB);
		ObjEffect_SetVertexColor(obj,2,255,DR,DG,DB);
		ObjEffect_SetVertexColor(obj,3,255,DR,DG,DB);
		wait(1);
		Obj_Delete(obj);
}

task DrawSumi(x,y,Al,UR,UG,UB,DR,DG,DB)
{

		let obj = Obj_Create(OBJ_EFFECT);
		ObjEffect_SetTexture(obj, imgMenuLetter);
		ObjEffect_SetPrimitiveType(obj, PRIMITIVE_TRIANGLEFAN);
		ObjEffect_SetRenderState(obj, ADD); 
		ObjEffect_CreateVertex(obj, 4);

		ObjEffect_SetVertexXY(obj, 0, 0, -1);
		ObjEffect_SetVertexXY(obj, 1,36,  -1);
		ObjEffect_SetVertexXY(obj, 2, 36, 33);
		ObjEffect_SetVertexXY(obj, 3,  0,  33);
		
		ObjEffect_SetVertexUV(obj, 0,  241,  3);
		ObjEffect_SetVertexUV(obj, 1,  275, 3);
		ObjEffect_SetVertexUV(obj, 2, 275,  35);
		ObjEffect_SetVertexUV(obj, 3, 241, 35);

		Obj_SetPosition(obj,x,y);
		ObjEffect_SetLayer(obj,8);
		ObjEffect_SetScale(obj, 0.5,0.5);

		ObjEffect_SetVertexColor(obj,0,Al,UR,UG,UB);
		ObjEffect_SetVertexColor(obj,1,Al,UR,UG,UB);
		ObjEffect_SetVertexColor(obj,2,Al,DR,DG,DB);
		ObjEffect_SetVertexColor(obj,3,Al,DR,DG,DB);
		wait(1);
		Obj_Delete(obj);
}

task DrawSatueiMaisuu(x,y,UR,UG,UB,DR,DG,DB)
{

		let obj = Obj_Create(OBJ_EFFECT);
		ObjEffect_SetTexture(obj, imgMenuLetter);
		ObjEffect_SetPrimitiveType(obj, PRIMITIVE_TRIANGLEFAN);
		ObjEffect_SetRenderState(obj, ADD); 
		ObjEffect_CreateVertex(obj, 4);

		ObjEffect_SetVertexXY(obj, 0, 0, 0);
		ObjEffect_SetVertexXY(obj, 1,102,  0);
		ObjEffect_SetVertexXY(obj, 2, 102, 21);
		ObjEffect_SetVertexXY(obj, 3,  0,  21);
		
		ObjEffect_SetVertexUV(obj, 0,  8,  122);
		ObjEffect_SetVertexUV(obj, 1,  106, 122);
		ObjEffect_SetVertexUV(obj, 2, 106,  143);
		ObjEffect_SetVertexUV(obj, 3, 8, 143);

		Obj_SetPosition(obj,x,y);
		ObjEffect_SetLayer(obj,8);
		ObjEffect_SetScale(obj, 0.5,0.5);

		ObjEffect_SetVertexColor(obj,0,255,UR,UG,UB);
		ObjEffect_SetVertexColor(obj,1,255,UR,UG,UB);
		ObjEffect_SetVertexColor(obj,2,255,DR,DG,DB);
		ObjEffect_SetVertexColor(obj,3,255,DR,DG,DB);
		wait(1);
		Obj_Delete(obj);
}