add drawing of other object previews

This commit is contained in:
Ted John committed 2016-07-08 22:58:38 +01:00
1 parent ebcbb085d2
commit aa62c3f03f
19 files changed
+108 -3

No files matched your search

+8
View File
@@ -56,6 +56,14 @@ void FootpathObject::Unload()
gfx_object_free_images(_legacyType.image, GetImageTable()->GetCount());
}
void FootpathObject::DrawPreview(rct_drawpixelinfo * dpi) const
{
int x = dpi->width / 2;
int y = dpi->height / 2;
gfx_draw_sprite(dpi, _legacyType.image + 71, x - 49, y - 17, 0);
gfx_draw_sprite(dpi, _legacyType.image + 72, x + 4, y - 17, 0);
}
const utf8 * FootpathObject::GetName() const
{
const utf8 * name = GetStringTable()->GetString(OBJ_STRING_ID_NAME);