UIProgressBar Class
Definition
Namespace: Brine2D.UI
Progress bar UI component for displaying progress/percentage.
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. |