Class OverlayTheme
java.lang.Object
privbot.ui.overlay.OverlayTheme
The one palette for in-game overlays.
Nineteen plugin overlays used to declare the same private constants (COLOR_TITLE = new
Color(255, 215, 0), a (18, 20, 26, 200) card, green/amber/red for good/warn/bad). They live
here now, derived from ModernTheme where the sidebar already has a token, and slightly
lighter where text has to stay legible over the game scene rather than over a flat card.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ColorDanger or failure (red).static final ColorTranslucent card behind a HUD panel.static final Color1 px card outline.static final ColorHealthy, safe, done (green).static final ColorDraws the eye without meaning good or bad (cyan), e.g.static final ColorLighter thanModernTheme.ACCENT_INFO: 6.4:1 over the card instead of 4:1.static final ColorRow labels (left column).static final ColorValues that are merely informational, or "idle".static final intDefault HUD panel width; the plugin values ranged 200..260 for the same content.static final ColorDrop shadow under scene text.static final intAlpha for filled tiles: the value every tile overlay converged on.static final ColorHUD panel title: the brand gold every plugin overlay already used.static final ColorRow values (right column) when they carry no meaning of their own.static final ColorNeeds attention soon (amber). -
Method Summary
Modifier and TypeMethodDescriptionstatic ColorThe same hue with a different alpha.static ColorcardBackground(int opacityPercent) CARD_BGatopacityPercent(0..100, clamped) instead of its fixed alpha: the per-panel background of a HUD whose opacity is a setting.static ColorA tile fill forc: same hue atTILE_ALPHA.
-
Field Details
-
TITLE
HUD panel title: the brand gold every plugin overlay already used. -
CARD_BG
Translucent card behind a HUD panel. -
CARD_BORDER
1 px card outline. -
LABEL
Row labels (left column). -
VALUE
Row values (right column) when they carry no meaning of their own. -
MUTED
Values that are merely informational, or "idle". -
GOOD
Healthy, safe, done (green). -
WARN
Needs attention soon (amber). -
BAD
Danger or failure (red). -
INFO
Lighter thanModernTheme.ACCENT_INFO: 6.4:1 over the card instead of 4:1. -
HIGHLIGHT
Draws the eye without meaning good or bad (cyan), e.g. a tile a condition tests. -
TEXT_SHADOW
Drop shadow under scene text. -
TILE_ALPHA
public static final int TILE_ALPHAAlpha for filled tiles: the value every tile overlay converged on.- See Also:
-
PANEL_WIDTH
public static final int PANEL_WIDTHDefault HUD panel width; the plugin values ranged 200..260 for the same content.- See Also:
-
-
Method Details
-
alpha
-
cardBackground
-
tileFill
A tile fill forc: same hue atTILE_ALPHA.
-