Class Rows
java.lang.Object
privbot.ui.overlay.Rows
The rows of a HUD panel, composed fresh on every render.
Wraps a RuneLite PanelComponent with the handful of row shapes every plugin overlay
ended up writing privately: label/value with a meaningful colour, a vital against a threshold, a
progress bar (RuneLite's own ProgressBarComponent, which no plugin had used), and a runtime
formatted by Time.format(Duration). Values may be null; they render as "-".
-
Method Summary
Modifier and TypeMethodDescriptiondivider()A thin spacer between groups of rows.value/maxcoloured byramp; an unknown max renders as"-".net.runelite.client.ui.overlay.components.PanelComponentpanel()Access to the underlying component for anything the row shapes do not cover.A bar filled tofraction(0..1) withlabelon the left andvalueTexton the right, e.g.A progress barvalueofmaxincolor, withvalue/maxas its text.A plain label / value row.A label / value row whose value colour means something (OverlayTheme.GOODetc).row(String, Object, Color)only whenconditionholds.elapsedashh:mm:ssin the muted colour; null renders"-".Elapsed time sincestartedAtashh:mm:ss; null start renders"-".A state row: the value is a status word coloured bycolor.A single line of muted text (no value column).A single line of text incolor(no value column).A title line inOverlayTheme.TITLEgold.A title line incolor; null text renders empty.static StringHow a value renders: null and empty become a dash.
-
Method Details
-
panel
public net.runelite.client.ui.overlay.components.PanelComponent panel()Access to the underlying component for anything the row shapes do not cover. -
title
A title line inOverlayTheme.TITLEgold. -
title
-
row
-
row
A label / value row whose value colour means something (OverlayTheme.GOODetc). -
rowIf
row(String, Object, Color)only whenconditionholds. -
status
-
fraction
-
progress
-
progress
-
progress
-
runtime
-
runtime
-
text
-
text
-
divider
A thin spacer between groups of rows. -
valueText
-