From cbf00f6c412d679c28e543469d0612d28b1c2886 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 19 May 2022 09:52:35 -0400 Subject: [PATCH] api: add setForcedPosition widget method --- .../src/main/java/net/runelite/api/widgets/Widget.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/runelite-api/src/main/java/net/runelite/api/widgets/Widget.java b/runelite-api/src/main/java/net/runelite/api/widgets/Widget.java index b46ea4e4ec..afa6579099 100644 --- a/runelite-api/src/main/java/net/runelite/api/widgets/Widget.java +++ b/runelite-api/src/main/java/net/runelite/api/widgets/Widget.java @@ -182,6 +182,14 @@ public interface Widget @Deprecated void setRelativeY(int y); + /** + * Set a forced position for the widget. This position overrides the relative x/y for the + * widget, even if the widget is revalidated. To clear the forced position pass -1 for x/y. + * @param x x pos relative to the parent + * @param y y pos relative to the parent + */ + void setForcedPosition(int x, int y); + /** * Gets the text displayed on this widget. *