Class PrivBotOverlays.PanelBuilder
java.lang.Object
privbot.ui.overlay.PrivBotOverlays.PanelBuilder
- Enclosing class:
PrivBotOverlays
Describes a HUD panel;
rows(java.util.function.Supplier<S>, java.util.function.BiConsumer<privbot.ui.overlay.Rows, S>) is the terminal step.-
Method Summary
Modifier and TypeMethodDescriptionlayer(net.runelite.client.ui.overlay.OverlayLayer l) Overlay layer; defaultABOVE_WIDGETS.position(net.runelite.client.ui.overlay.OverlayPosition p) Screen anchor; defaultTOP_LEFT.priority(net.runelite.client.ui.overlay.OverlayPriority p) Overlay priority; defaultLOW.<S> PrivBotOverlayPanel<S> rows(Supplier<S> state, BiConsumer<Rows, S> composer) The terminal step: rows composed fromstateon every render.visibleWhen(BooleanSupplier condition) Draw only whileconditionis true.width(int px) Panel width in pixels (at least 80); defaultOverlayTheme.PANEL_WIDTH.
-
Method Details
-
position
Screen anchor; defaultTOP_LEFT. -
layer
Overlay layer; defaultABOVE_WIDGETS. -
priority
Overlay priority; defaultLOW. -
width
Panel width in pixels (at least 80); defaultOverlayTheme.PANEL_WIDTH. -
visibleWhen
Draw only whileconditionis true. It runs on the render thread every frame, so it must read published state (a volatile flag such asplugin::isEnabled), never the client. -
rows
The terminal step: rows composed fromstateon every render.
-