Loading
Docs / Components / Progress Bars
v1.0.0 JAVA MOD LIBRARY

Progress Bars

Determinate progress track across all 10 OreAccent colors in vibrant and pastel palettes.

ui.progressBar(...) renders a #48494A (OreTone.CARD) track with a 0.5px #6D6D6E (OreTone.CARD_STROKE) border, a bottom-right drop shadow (OreTone.CARD_SHADOW), and a colored progress fill with a top-left 20% white highlight (OreTone.INNER_LIGHT). Use ui.progressBar(...) for known completion fractions (0.0F..1.0F) and ui.loadingBar(...) for the framed loading bar.

Interactive Preview

blue
turquoise
green
red
pink
yellow
orange
purple
gray
dark-gray

Method Signatures (OreUi)

// Default vibrant blue progress bar (progress clamped to 0.0F..1.0F)
public void progressBar(int x, int y, int w, float progress)

// Custom OreAccent and OreColorType (VIBRANT or PASTEL)
public void progressBar(int x, int y, int w, float progress, OreAccent accent, OreColorType colorType)

Parameters

ParameterTypeDefaultDescription
x, yint—Top-left GUI pixel coordinates.
wint—Total bar width in GUI pixels.
progressfloat—Completion fraction in 0.0F..1.0F.
accentOreAccentOreAccent.BLUEAny of the 10 OreAccent colors (GRAY, DARK_GRAY, RED, PINK, PURPLE, BLUE, TURQUOISE, GREEN, YELLOW, ORANGE).
colorTypeOreColorTypeOreColorType.VIBRANTPalette intensity (VIBRANT or PASTEL).

Example

float progress = 0.72F;

// Vibrant green bar
ui.progressBar(x, y, 200, progress, OreAccent.GREEN, OreColorType.VIBRANT);

// Pastel turquoise bar
ui.progressBar(x, y + 10, 200, progress, OreAccent.TURQUOISE, OreColorType.PASTEL);