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. *