mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
add ride previews
This commit is contained in:
@@ -327,6 +327,20 @@ void RideObject::Unload()
|
||||
gfx_object_free_images(_legacyType.images_offset, GetImageTable()->GetCount());
|
||||
}
|
||||
|
||||
void RideObject::DrawPreview(rct_drawpixelinfo * dpi) const
|
||||
{
|
||||
uint32 imageId = _legacyType.images_offset;
|
||||
if (_legacyType.ride_type[0] == 0xFF)
|
||||
{
|
||||
imageId++;
|
||||
if (_legacyType.ride_type[1] == 0xFF)
|
||||
{
|
||||
imageId++;
|
||||
}
|
||||
}
|
||||
gfx_draw_sprite(dpi, imageId, 0, 0, 0);
|
||||
}
|
||||
|
||||
const utf8 * RideObject::GetName() const
|
||||
{
|
||||
const utf8 * name = GetStringTable()->GetString(OBJ_STRING_ID_NAME);
|
||||
|
||||
Reference in New Issue
Block a user