void Window_MenuStatus::Refresh() {
	contents->SetTransparentColor(windowskin->GetTransparentColor());
	contents->Clear();

	DisplayUi->SetBackcolor(Cache::system_info.bg_color);

	item_max = Game_Party::GetActors().size();

	int y = 0;
	for (int i = 0; i < item_max; ++i)
	{
		Game_Actor* actor = Game_Party::GetActors()[i];

		int face_x = 0;
		if (Player::engine == Player::EngineRpg2k3) {
			face_x = actor->GetBattleRow() == 1 ? 5 : 0;
		}
		DrawActorFace(actor, face_x, i*48 + y);

		DrawActorName(actor, 48 + 8, i*48 + 2 + y);
		DrawActorClass(actor, 48 + 8 + 88, i*48 + 2 + y);
		DrawActorLevel(actor, 48 + 8, i*48 + 2 + 16 + y);
		DrawActorState(actor, 48 + 8 + 42, i*48 + 2 + 16 + y);
		DrawActorExp(actor, 48 + 8, i*48 + 2 + 16 + 16 + y);
		DrawActorHp(actor, 48 + 8 + 106, i*48 + 2 + 16 + y);
		DrawActorSp(actor, 48 + 8 + 106, i*48 + 2 + 16 + 16 + y);

		y += 10;
	}
}
void Window_ActorInfo::DrawInfo() {

	// Draw Row formation.
	std::string battle_row = Game_Actors::GetActor(actor_id)->GetBattleRow() == 1 ? "Back" : "Front";
	contents->TextDraw(contents->GetWidth(), 5, Font::ColorDefault, battle_row, Text::AlignRight);

	// Draw Face
	DrawActorFace(Game_Actors::GetActor(actor_id), 0, 0);
	
	// Draw Name
	contents->TextDraw(3, 50, 1, "Name");
	DrawActorName(Game_Actors::GetActor(actor_id), 36, 65);
	
	// Draw Profession
	contents->TextDraw(3, 80, 1, "Profession");
	DrawActorClass(Game_Actors::GetActor(actor_id), 36, 95);

	// Draw Rank
	contents->TextDraw(3, 110, 1, "Title");
	DrawActorTitle(Game_Actors::GetActor(actor_id), 36, 125);

	// Draw Status
	contents->TextDraw(3, 140, 1, "Status");
	DrawActorState(Game_Actors::GetActor(actor_id), 36, 155);

	//Draw Level
	contents->TextDraw(3, 170, 1, Data::terms.lvl_short);
	std::stringstream ss;
	ss << Game_Actors::GetActor(actor_id)->GetLevel();
	contents->TextDraw(79, 170, Font::ColorDefault, ss.str(), Text::AlignRight);

}