1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-02 19:56:13 +01:00

Rename G1Element members, add unions for palette entries

This commit is contained in:
Gymnasiast
2025-12-27 14:30:36 +01:00
parent 8ce8eec426
commit e6fa262b9e
18 changed files with 92 additions and 84 deletions

View File

@@ -151,7 +151,7 @@ namespace OpenRCT2::Scripting
DukObject obj(ctx);
obj.Set("id", id);
obj.Set("offset", ToDuk<ScreenCoordsXY>(ctx, { g1->x_offset, g1->y_offset }));
obj.Set("offset", ToDuk<ScreenCoordsXY>(ctx, { g1->xOffset, g1->yOffset }));
obj.Set("width", g1->width);
obj.Set("height", g1->height);
@@ -162,7 +162,7 @@ namespace OpenRCT2::Scripting
if (g1->flags & G1_FLAG_HAS_ZOOM_SPRITE)
{
obj.Set("nextZoomId", id - g1->zoomed_offset);
obj.Set("nextZoomId", id - g1->zoomedOffset);
}
else
{