This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
progress_bar [2020/11/30 20:30] – justin | progress_bar [2024/01/27 12:45] (current) – justin | ||
---|---|---|---|
Line 6: | Line 6: | ||
=====Element Properties===== | =====Element Properties===== | ||
^Icon^Property^Description^ | ^Icon^Property^Description^ | ||
- | (WIP) | + | |{{: |
+ | |{{: | ||
+ | |{{: | ||
+ | |{{: | ||
=====Scripting===== | =====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 " | ||
- | (WIP - Accessing/changing properties of the element | + | **Changing a progress bar's current value:** |
+ | <code bauxite> | ||
+ | widget[" | ||
+ | </code> | ||
+ | |||
+ | **Changing a progress bar's maximum value:** | ||
+ | <code bauxite> | ||
+ | widget[" | ||
+ | </ | ||
~~NOTOC~~ | ~~NOTOC~~ |