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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user