diff --git a/src/openrct2/interface/Window.h b/src/openrct2/interface/Window.h index e1b64c8d62..7a18b7fb2f 100644 --- a/src/openrct2/interface/Window.h +++ b/src/openrct2/interface/Window.h @@ -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);