This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
widget [2020/11/27 09:49] – justin | widget [2020/12/01 15:06] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | A **widget** is a UI component such as the [[inventory]] window or [[item container]] window. A widget' | + | A **widget** is a UI component such as the [[inventory]] window or [[item container]] window. A widget' |
- | {{: | + | <WRAP center round info 100%> |
+ | Custom widgets can be displayed in-game using the [[Show Widget]] scripting function. You can also add them to the [[management screen]] by adding their IDs to the comma-separated list of widgets in the " | ||
+ | </ | ||
+ | |||
+ | =====Scripting===== | ||
+ | |||
+ | <code bauxite> | ||
+ | hide_widget(" | ||
+ | $name = widget[" | ||
+ | display_message(" | ||
+ | </ | ||
+ | |||
+ | (WIP - Accessing elements within a widget to change them or get a value from them) | ||
~~NOTOC~~ | ~~NOTOC~~ |