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 09:43] – justin | button [2020/12/01 10:03] – justin | ||
---|---|---|---|
Line 18: | Line 18: | ||
=====Scripting===== | =====Scripting===== | ||
- | You can access and change certain properties of a button from within a [[script]] by simply referencing the parent [[widget]] by its ID followed by a reference to the button element by its ID. | + | You can access and change certain properties of a button from within a [[script]] by simply referencing the parent [[widget]] by its ID followed by a reference to the button element by its ID. 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' |