This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| progress_bar [2020/12/03 09:59] – justin | progress_bar [2024/01/27 12:45] (current) – justin | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| =====Element Properties===== | =====Element Properties===== | ||
| ^Icon^Property^Description^ | ^Icon^Property^Description^ | ||
| - | |{{: | + | |{{: | 
| - | |{{:wiki:image.png? | + | |{{:wiki:progress_bar.png? | 
| - | |{{:wiki:arrow_in_out.png? | + | |{{:wiki:variable.png? | 
| - | |{{:wiki:margin_left.png? | + | |{{:wiki:variable.png? | 
| + | |||
| + | =====Scripting===== | ||
| + | You can access and change certain properties of a progress bar from within a [[script]] by simply referencing the parent [[widget]] and the element by their unique IDs. See below for examples of changing the current value and maximum value. In this case, the [[widget]] has an ID of " | ||
| + | |||
| + | **Changing a progress bar's current value:** | ||
| + | <code bauxite> | ||
| + | widget[" | ||
| + | </ | ||
| + | |||
| + | **Changing a progress bar's maximum value:** | ||
| + | <code bauxite> | ||
| + | widget[" | ||
| + | </ | ||
| ~~NOTOC~~ | ~~NOTOC~~ | ||