mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-20 13:33:02 +01:00
add drawing of other object previews
This commit is contained in:
@@ -56,6 +56,14 @@ void StexObject::Unload()
|
||||
language_free_object_string(_legacyType.details);
|
||||
}
|
||||
|
||||
void StexObject::DrawPreview(rct_drawpixelinfo * dpi) const
|
||||
{
|
||||
// Write (no image)
|
||||
int x = dpi->width / 2;
|
||||
int y = dpi->height / 2;
|
||||
gfx_draw_string_centred(dpi, 3326, x, y, 0, nullptr);
|
||||
}
|
||||
|
||||
const utf8 * StexObject::GetName() const
|
||||
{
|
||||
return GetScenarioName();
|
||||
|
||||
Reference in New Issue
Block a user