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_ActorTarget::Refresh() { contents->Clear(); item_max = Main_Data::game_party->GetActors().size(); int y = 0; for (int i = 0; i < item_max; ++i) { DrawActorFace(Main_Data::game_party->GetActors()[i], 0, i * 48 + y); DrawActorName(Main_Data::game_party->GetActors()[i], 48 + 8, i * 48 + 2 + y); DrawActorLevel(Main_Data::game_party->GetActors()[i], 48 + 8, i * 48 + 2 + 16 + y); DrawActorState(Main_Data::game_party->GetActors()[i], 48 + 8, i * 48 + 2 + 16 + 16 + y); int x_offset = 48 + 8 + 42 + (Player::IsRPG2k() ? 16 : 0); DrawActorHp(Main_Data::game_party->GetActors()[i], x_offset, i * 48 + 2 + 16 + y); DrawActorSp(Main_Data::game_party->GetActors()[i], x_offset, i * 48 + 2 + 16 + 16 + y); y += 10; } }
void Window_ActorTarget::Refresh() { 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) { DrawActorFace(Game_Party::GetActors()[i], 0, i * 48 + y); DrawActorName(Game_Party::GetActors()[i], 48 + 8, i * 48 + 2 + y); DrawActorLevel(Game_Party::GetActors()[i], 48 + 8, i * 48 + 2 + 16 + y); DrawActorState(Game_Party::GetActors()[i], 48 + 8, i * 48 + 2 + 16 + 16 + y); DrawActorHp(Game_Party::GetActors()[i], 48 + 8 + 58, i * 48 + 2 + 16 + y); DrawActorSp(Game_Party::GetActors()[i], 48 + 8 + 58, i * 48 + 2 + 16 + 16 + y); y += 10; } }