OverlayManager

Methods
6
Fields
1

Methods

MethodReturnsDescription
add(Overlay)booleanAdds the overlay and loads its saved position; false when it was already added. It draws at the client's own layer points where the table h…
remove(Overlay)booleanRemoves the overlay; false when it was not added.
removeIf((Overlay) -> boolean)booleanRemoves this plugin's overlays filter answers true for, in the order they were added; whether any was.
anyMatch((Overlay) -> boolean)booleanWhether filter answers true for any of this plugin's overlays.
resetOverlay(Overlay)()Forgets the overlay's dragged position, size and corner, saves that, and calls revalidate on this plugin's overlays.
saveOverlay(Overlay)()Saves the overlay's position, size and location to the client's config, and rebuilds the layers.

Fields

FieldTypeDescription
OPTION_CONFIGUREstringOverlayManager.OPTION_CONFIGURE: "Configure", the option of an overlay's config entry.

Method details

add

add: (OverlayManager, Overlay) -> boolean

Adds the overlay and loads its saved position; false when it was already added. It draws at the client's own layer points where the table has them on; on any other client it draws at present time over the game's interfaces, and an overlay placed after an interface or a layer draws nothing there.

removeIf

removeIf: (OverlayManager, (Overlay) -> boolean) -> boolean

Removes this plugin's overlays filter answers true for, in the order they were added; whether any was.

resetOverlay

resetOverlay: (OverlayManager, Overlay) -> ()

Forgets the overlay's dragged position, size and corner, saves that, and calls revalidate on this plugin's overlays.