Class ProgressBar
A bar that displays a value within a range, e.g. a health bar
public class ProgressBar : Control
- Inheritance
-
objectProgressBar
- Inherited Members
Remarks
This control is purely informative; it does not handle any user input.
Constructors
ProgressBar(Dialog)
Create new progress bar instance
public ProgressBar(Dialog parent)
Parameters
parentDialog
Fields
BackgroundLayer
public const int BackgroundLayer = 0
Field Value
FillColor
public Color4 FillColor
Field Value
- Color4
FillColorLow
public Color4 FillColorLow
Field Value
- Color4
FillLayer
public const int FillLayer = 1
Field Value
Reversed
Fill the bar from right to left instead of from left to right
public bool Reversed
Field Value
Properties
Fraction
How much of the bar is filled, between 0 and 1
public float Fraction { get; }
Property Value
Max
The upper end of the range displayed by the bar
public float Max { get; set; }
Property Value
Min
The lower end of the range displayed by the bar
public float Min { get; set; }
Property Value
Value
public float Value { get; set; }
Property Value
Methods
Render(Device, float)
Render the progress bar
public override void Render(Device device, float elapsedTime)
Parameters
deviceDeviceelapsedTimefloat