ProgressBarAttribute¶
Namespace:
SideXP.Core| Inherits from:PropertyAttribute
Draws a progress bar next to a numeric field in the inspector.
Constructors¶
ProgressBarAttribute(FColor)¶
Draws a progress bar from 0 to 100 next to a numeric field in the inspector.
Parameters
color
ProgressBarAttribute(float, FColor)¶
Draws a progress bar from 0 to max next to a numeric field in the inspector.
Parameters
maxcolor
ProgressBarAttribute(float, float, FColor)¶
Draws a progress bar from min to max next to a numeric field in the inspector.
Parameters
minmaxcolor
Fields¶
DefaultColor¶
Properties¶
Min¶
The minimum value of the progress bar.
Max¶
The maximum value of the progress bar.
Color¶
The color of the progress bar.
Prefix¶
The prefix to write before the value on the progress bar.
Suffix¶
The suffix to write after the value on the progress bar.
Clamp¶
If enabled, the field's value will be clamped between min and max.
Wide¶
If enabled, the field is completely hidden by the progress bar.
Readonly¶
Should the field be readonly?
Methods¶
GetLabel(float)¶
Gets the label of the progress bar, using the defined prefix and suffix.
Parameters
value: The current value of the field.
Returns
Returns the computed label.