This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
button [2020/11/30 17:45] – justin | button [2021/06/24 21:18] (current) – justin | ||
---|---|---|---|
Line 6: | Line 6: | ||
=====Element Properties===== | =====Element Properties===== | ||
^Icon^Property^Description^ | ^Icon^Property^Description^ | ||
+ | |{{: | ||
|{{: | |{{: | ||
|{{: | |{{: | ||
- | |{{: | + | |{{: |
|{{: | |{{: | ||
|{{: | |{{: | ||
Line 15: | Line 16: | ||
|{{: | |{{: | ||
|{{: | |{{: | ||
+ | |||
+ | =====Scripting===== | ||
+ | You can access and change certain properties of a button from within a [[script]] by simply referencing the parent [[widget]] and the button element by their unique IDs. See below for examples of changing the text, [[image]], and [[script]] of a button. In these cases, the [[widget]] has an ID of " | ||
+ | |||
+ | **Changing a button' | ||
+ | <code bauxite> | ||
+ | widget[" | ||
+ | </ | ||
+ | |||
+ | **Changing a button' | ||
+ | <code bauxite> | ||
+ | widget[" | ||
+ | </ | ||
+ | |||
+ | **Changing a button' | ||
+ | <code bauxite> | ||
+ | widget[" | ||
+ | </ | ||
~~NOTOC~~ | ~~NOTOC~~ |