1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +01:00

Add moveTo() to Widget

This commit is contained in:
Gymnasiast
2024-05-19 19:44:01 +02:00
parent b5743eccbc
commit 7d3ac7ea9d

View File

@@ -130,6 +130,12 @@ struct Widget
bottom += amount;
}
void moveTo(ScreenCoordsXY coords)
{
moveRight(coords.x - left);
moveDown(coords.y - top);
}
bool IsVisible() const
{
return !(flags & WIDGET_FLAGS::IS_HIDDEN);