mirror of
https://github.com/rosebudai/OpenRCT2-Web.git
synced 2026-12-05 12:45:14 +01:00
add ride previews
This commit is contained in:
1 parent
52c11267bc
commit
ebcbb085d2
3 files changed
+19
-3
No files matched your search
@@ -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