ProgressBar: Difference between revisions
From Crumbled World Wiki
(Created page with "{{:ProgressBarExampleCode}} ==Inheritance== Button ==Constructor== {| class="wikitable" !|function !|description |- |ProgressBar(PanelSize size) | |- |ProgressBar(PanelSize size, Text text, float value) | |- |ProgressBar(ProgressBar progressBar) | |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- |float |getValue() |Get from value. |- | |setValue(float value)...") |
(No difference)
|
Latest revision as of 14:18, 5 July 2025
Inheritance
Constructor
| function | description |
|---|---|
| ProgressBar(PanelSize size) | |
| ProgressBar(PanelSize size, Text text, float value) | |
| ProgressBar(ProgressBar progressBar) |
Functions
| return | function | description |
|---|---|---|
| float | getValue() | Get from value. |
| setValue(float value) | Set value [0-1]. | |
| {float()} | getValues() | Return a list of all values. |
| setValue(table values) | Set a list of values. all values combines should be bettwen [0-1] | |
| setColor(table color) | Set a list of colors for the progressbar. the number of colors should be x2 numbers of values, example bar:setColor({Vec3(),Vec3()}), this set a top and bottom color for 1 value | |
| setColor(Vec4 topColor, Vec4 bottomColor) | Set ProgressBar color. | |
| setColor(Vec3 topColor, Vec3 bottomColor) | Set ProgressBar color. | |
| setText(string text) | set button text. | |
| setText(Text text) | set ProgressBar text. | |
| setTextAnchor(Anchor textAnchor) | set text anchor. | |
| setTextColor(Vec3 color) | set text color. | |
| setTextColor(Vec4 color) | set text color. | |
| setInnerColor(Vec3 color) | set ProgressBar color. | |
| setInnerColor(Vec4 color) | set ProgressBar color. | |
| setInnerColor(Vec3 topColor, Vec3 bottomColor) | set ProgressBar color. | |
| setInnerColor(Vec4 topColor, Vec4 bottomColor) | set ProgressBar color. | |
| setEdgeColor(Vec3 color) | set button edge color. | |
| setEdgeColor(Vec4 color) | set ProgressBar edge color. | |
| setEdgeColor(Vec3 topColor, Vec3 bottomColor) | set ProgressBar edge color. | |
| setEdgeColor(Vec4 topColor, Vec4 bottomColor) | set ProgressBar edge color. |