#include "./Functions.txt"

let Normal = GetCurrentScriptDirectory ~ "./img/ReimuNormal.png";
let Sueur = GetCurrentScriptDirectory ~ "./img/ReimuEnSueur.png";
let Enerve = GetCurrentScriptDirectory ~ "./img/ReimuEnerve.png";
let Question = GetCurrentScriptDirectory ~ "./img/ReimuQuestion.png";
let Content = GetCurrentScriptDirectory ~ "./img/ReimuContent.png";


task ReimuNormal {
	let portrait = ObjPrim_Create(OBJ_SPRITE_2D);
	Obj_SetRenderPriority(portrait, 0.51);
	ObjPrim_SetTexture(portrait, Normal);
	ObjRender_SetBlendType(portrait, BLEND_ALPHA);
	ObjRender_SetAlpha(portrait, 255);
	ObjSprite2D_SetSourceRect(portrait, 0, 0, 720, 720);
	ObjSprite2D_SetDestRect(portrait, -150, 130, 350, 630);
	Obj_SetRenderPriorityI(portrait, 99);
	while(teste == 0){yield;}
	Obj_Delete(portrait);
}

task ReimuNormalOmbre {
	let portrait = ObjPrim_Create(OBJ_SPRITE_2D);
	Obj_SetRenderPriority(portrait, 0.51);
	ObjPrim_SetTexture(portrait, Normal);
	ObjRender_SetBlendType(portrait, BLEND_ALPHA);
	ObjSprite2D_SetSourceRect(portrait, 0, 0, 720, 720);
	ObjRender_SetColor(portrait,111,111,111);
	ObjSprite2D_SetDestRect(portrait, -150, 130, 350, 630);
	Obj_SetRenderPriorityI(portrait, 99);
	while(teste == 1){yield;}
	Obj_Delete(portrait);
}

task ReimuSueur {
	let portrait = ObjPrim_Create(OBJ_SPRITE_2D);
	Obj_SetRenderPriority(portrait, 0.51);
	ObjPrim_SetTexture(portrait, Sueur);
	ObjRender_SetBlendType(portrait, BLEND_ALPHA);
	ObjRender_SetAlpha(portrait, 255);
	ObjSprite2D_SetSourceRect(portrait, 0, 0, 720, 720);
	ObjSprite2D_SetDestRect(portrait, -150, 130, 350, 630);
	Obj_SetRenderPriorityI(portrait, 99);
	while(teste == 0){yield;}
	Obj_Delete(portrait);
}

task ReimuSueurOmbre {
	let portrait = ObjPrim_Create(OBJ_SPRITE_2D);
	Obj_SetRenderPriority(portrait, 0.51);
	ObjPrim_SetTexture(portrait, Sueur);
	ObjRender_SetBlendType(portrait, BLEND_ALPHA);
	ObjSprite2D_SetSourceRect(portrait, 0, 0, 720, 720);
	ObjRender_SetColor(portrait,111,111,111);
	ObjSprite2D_SetDestRect(portrait, -150, 130, 350, 630);
	Obj_SetRenderPriorityI(portrait, 99);
	while(teste == 1){yield;}
	Obj_Delete(portrait);
}

task ReimuEnerve {
	let portrait = ObjPrim_Create(OBJ_SPRITE_2D);
	Obj_SetRenderPriority(portrait, 0.51);
	ObjPrim_SetTexture(portrait, Enerve);
	ObjRender_SetBlendType(portrait, BLEND_ALPHA);
	ObjRender_SetAlpha(portrait, 255);
	ObjSprite2D_SetSourceRect(portrait, 0, 0, 720, 720);
	ObjSprite2D_SetDestRect(portrait, -150, 130, 350, 630);
	Obj_SetRenderPriorityI(portrait, 99);
	while(teste == 0){yield;}
	Obj_Delete(portrait);
}

task ReimuEnerveOmbre {
	let portrait = ObjPrim_Create(OBJ_SPRITE_2D);
	Obj_SetRenderPriority(portrait, 0.51);
	ObjPrim_SetTexture(portrait, Enerve);
	ObjRender_SetBlendType(portrait, BLEND_ALPHA);
	ObjSprite2D_SetSourceRect(portrait, 0, 0, 720, 720);
	ObjRender_SetColor(portrait,111,111,111);
	ObjSprite2D_SetDestRect(portrait, -150, 130, 350, 630);
	Obj_SetRenderPriorityI(portrait, 99);
	while(teste == 1){yield;}
	Obj_Delete(portrait);
}

task ReimuQuestion {
	let portrait = ObjPrim_Create(OBJ_SPRITE_2D);
	Obj_SetRenderPriority(portrait, 0.51);
	ObjPrim_SetTexture(portrait, Question);
	ObjRender_SetBlendType(portrait, BLEND_ALPHA);
	ObjRender_SetAlpha(portrait, 255);
	ObjSprite2D_SetSourceRect(portrait, 0, 0, 720, 720);
	ObjSprite2D_SetDestRect(portrait, -150, 130, 350, 630);
	Obj_SetRenderPriorityI(portrait, 99);
	while(teste == 0){yield;}
	Obj_Delete(portrait);
}

task ReimuQuestionOmbre {
	let portrait = ObjPrim_Create(OBJ_SPRITE_2D);
	Obj_SetRenderPriority(portrait, 0.51);
	ObjPrim_SetTexture(portrait, Question);
	ObjRender_SetBlendType(portrait, BLEND_ALPHA);
	ObjSprite2D_SetSourceRect(portrait, 0, 0, 720, 720);
	ObjRender_SetColor(portrait,111,111,111);
	ObjSprite2D_SetDestRect(portrait, -150, 130, 350, 630);
	Obj_SetRenderPriorityI(portrait, 99);
	while(teste == 1){yield;}
	Obj_Delete(portrait);
}

task ReimuContent {
	let portrait = ObjPrim_Create(OBJ_SPRITE_2D);
	Obj_SetRenderPriority(portrait, 0.51);
	ObjPrim_SetTexture(portrait, Content);
	ObjRender_SetBlendType(portrait, BLEND_ALPHA);
	ObjRender_SetAlpha(portrait, 255);
	ObjSprite2D_SetSourceRect(portrait, 0, 0, 720, 720);
	ObjSprite2D_SetDestRect(portrait, -150, 130, 350, 630);
	Obj_SetRenderPriorityI(portrait, 99);
	while(teste == 0){yield;}
	Obj_Delete(portrait);
}

task ReimuContentOmbre {
	let portrait = ObjPrim_Create(OBJ_SPRITE_2D);
	Obj_SetRenderPriority(portrait, 0.51);
	ObjPrim_SetTexture(portrait, Content);
	ObjRender_SetBlendType(portrait, BLEND_ALPHA);
	ObjSprite2D_SetSourceRect(portrait, 0, 0, 720, 720);
	ObjRender_SetColor(portrait,111,111,111);
	ObjSprite2D_SetDestRect(portrait, -150, 130, 350, 630);
	Obj_SetRenderPriorityI(portrait, 99);
	while(teste == 1){yield;}
	Obj_Delete(portrait);
}