diff --git a/src/openrct2-ui/windows/EditorObjectSelection.cpp b/src/openrct2-ui/windows/EditorObjectSelection.cpp index ebda03eda8..c4feb89191 100644 --- a/src/openrct2-ui/windows/EditorObjectSelection.cpp +++ b/src/openrct2-ui/windows/EditorObjectSelection.cpp @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include @@ -1334,6 +1335,24 @@ namespace OpenRCT2::Ui::Windows } } + StringId GetAnimationPeepTypeStringId(AnimationPeepType type) + { + switch (type) + { + case AnimationPeepType::Handyman: + return STR_HANDYMAN_PLURAL; + case AnimationPeepType::Mechanic: + return STR_MECHANIC_PLURAL; + case AnimationPeepType::Security: + return STR_SECURITY_GUARD_PLURAL; + case AnimationPeepType::Entertainer: + return STR_ENTERTAINER_PLURAL; + case AnimationPeepType::Guest: + default: + return STR_GUESTS; + } + } + void DrawDebugData(DrawPixelInfo& dpi) { ObjectListItem* listItem = &_listItems[selected_list_item]; @@ -1353,6 +1372,14 @@ namespace OpenRCT2::Ui::Windows DrawTextBasic(dpi, screenPos, stringId, {}, { COLOUR_WHITE, TextAlignment::RIGHT }); } + // Draw peep animation object type + if (GetSelectedObjectType() == ObjectType::PeepAnimations) + { + auto* animObj = reinterpret_cast(_loadedObject.get()); + auto stringId = GetAnimationPeepTypeStringId(animObj->GetPeepType()); + DrawTextBasic(dpi, screenPos, stringId, {}, { COLOUR_WHITE, TextAlignment::RIGHT }); + } + screenPos.y += kListRowHeight; // Draw object source