mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-26 16:24:35 +01:00
add drawing of other object previews
This commit is contained in:
@@ -51,6 +51,17 @@ void EntranceObject::Unload()
|
||||
gfx_object_free_images(_legacyType.image_id, GetImageTable()->GetCount());
|
||||
}
|
||||
|
||||
void EntranceObject::DrawPreview(rct_drawpixelinfo * dpi) const
|
||||
{
|
||||
int x = dpi->width / 2;
|
||||
int y = dpi->height / 2;
|
||||
|
||||
uint32 imageId = _legacyType.image_id;
|
||||
gfx_draw_sprite(dpi, imageId + 1, x - 32, y + 14, 0);
|
||||
gfx_draw_sprite(dpi, imageId + 0, x + 0, y + 28, 0);
|
||||
gfx_draw_sprite(dpi, imageId + 2, x + 32, y + 44, 0);
|
||||
}
|
||||
|
||||
const utf8 * EntranceObject::GetName() const
|
||||
{
|
||||
const utf8 * name = GetStringTable()->GetString(OBJ_STRING_ID_NAME);
|
||||
|
||||
Reference in New Issue
Block a user