forked from rosebudai/OpenRCT2-Web
add drawing of other object previews
This commit is contained in:
1 parent
ebcbb085d2
commit
aa62c3f03f
19 files changed
+108
-3
No files matched your search
@@ -67,6 +67,13 @@ void FootpathItemObject::Unload()
|
||||
gfx_object_free_images(_legacyType.image, GetImageTable()->GetCount());
|
||||
}
|
||||
|
||||
void FootpathItemObject::DrawPreview(rct_drawpixelinfo * dpi) const
|
||||
{
|
||||
int x = dpi->width / 2;
|
||||
int y = dpi->height / 2;
|
||||
gfx_draw_sprite(dpi, _legacyType.image, x - 22, y - 24, 0);
|
||||
}
|
||||
|
||||
const utf8 * FootpathItemObject::GetName() const
|
||||
{
|
||||
const utf8 * name = GetStringTable()->GetString(OBJ_STRING_ID_NAME);
|
||||
|
||||
Reference in new issue
Block a user