This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
button [2020/12/01 10:04] – justin | button [2021/04/21 20:12] – justin | ||
---|---|---|---|
Line 20: | Line 20: | ||
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 " | 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' | + | **Changing a button' |
<code bauxite> | <code bauxite> | ||
- | widget[" | + | widget[" |
</ | </ | ||
- | Changing a button' | + | **Changing a button' |
<code bauxite> | <code bauxite> | ||
- | widget[" | + | widget[" |
</ | </ | ||
- | Changing a button' | + | **Changing a button' |
<code bauxite> | <code bauxite> | ||
- | widget[" | + | widget[" |
</ | </ | ||
~~NOTOC~~ | ~~NOTOC~~ |