ProgressBar

A progress bar to be displayed at any point on the screen Fills from left to right its progress TODO: allow bar direction to be modified

Constructors

this
this(Display container, iRectangle location, Color backColor, Color foreColor, T maxVal, T currentVal = 0)

Constructs a new health bar at the given location with the given values

Members

Functions

draw
void draw()

Draws the progress bar to the screen

Properties

location
iRectangle location [@property getter]

Returns the location of the progress bar

location
iRectangle location [@property setter]

Sets the location of the progress bar

Variables

_location
iRectangle _location;

The location and dimensions of the bar

backColor
Color backColor;

The background color of the bar

currentVal
T currentVal;

The current value of the quantity measured

foreColor
Color foreColor;

The forground color of the bar

maxVal
T maxVal;

The maximum value of the quantity measured

Meta