ProgressBar
< Modding | ComponentsModding/Components/ProgressBar
Jump to navigation
Jump to search
A part sub-component that causes a progress bar to be displayed below the part's health bar.
Used by weapons, shields, etc.
Name | Type | Required? | Buffable? | Default value | Description |
---|---|---|---|---|---|
ShowProgressFor | ID<PartComponentRules>
meaning : string |
Yes | No | - | The source of data for the progress bar. It needs to know what it's displaying. |
LowColor | color
meaning : a color code (see default) |
No | - | Color.Gray | Presumably the color displayed when the value from the source is "low". |
HighColor | color
meaning : a color code (see default) |
No | - | Color.Gray | Presumably the color displayed when the value from the source is "high". |
FullColor | color
meaning : a color code (see default) |
No | - | Color.White | Presumably the color displayed when the value from the source is full. |
Height | float | No | - | 5 | How tall the bar is in the UI. The small shield has 10. |
Invert | bool | No | - | false (effectively) | The bar will be inverted, as in empty when the source value is full, and vice-versa.
Shields don't use this, weapons have "true". |
ValueRange | Range<float>
meaning: [float, float] |
No | No | new Range<float>(0.0f, 1f)
meaning : between 0 and 1 |
?? |