UIProgressBar Class

Progress bar UI component for displaying progress/percentage.

public class UIProgressBar : Brine2D.UI.IUIComponent

Inheritance System.Object → UIProgressBar

Implements IUIComponent

Properties
BackgroundColor Background color (empty portion).
BorderColor Border color.
Direction Direction the bar fills.
FillColor Fill color (filled portion).
Label Optional label text (e.g., "Health", "Loading").
LabelColor Label text color.
ShowPercentage Whether to show percentage text.
TextColor Text color for percentage display.
Value Current value (0.0 to 1.0, representing 0% to 100%).
Methods
SetPercentage(float) Sets the value from a percentage (0-100).
SetValue(float) Sets the value and fires the OnValueChanged event.
Events
OnValueChanged Event fired when value changes.