This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
hide_widget [2020/12/05 20:29] – created justin | hide_widget [2023/11/02 19:59] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Hides the widget with the specified widget ID. | + | Hides the widget with the specified widget ID (with an optional fade out over a duration of time). |
====Signature: | ====Signature: | ||
Line 10: | Line 10: | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |widget_id|Widget | + | |widget_id|ID of the widget (as defined in the [[Widget Editor]]).|[[String]]|Yes| |
+ | |fade_length|Length of the fade out effect (in seconds).|[[Number]]|No| | ||
====Example: | ====Example: | ||
<code bauxite> | <code bauxite> | ||
- | hide_widget(" | + | hide_widget(" |
</ | </ | ||
- | // | + | // |
- | + | ||
- | <WRAP center round tip 100%> | + | |
- | Use the **Show Group** function to reveal a previously hidden room or secret area after a lever or other mechanism has been activated by the player. | + | |
- | </ | + | |
---- | ---- | ||
Line 27: | Line 24: | ||
<WRAP half column> | <WRAP half column> | ||
====Editor Node:==== | ====Editor Node:==== | ||
- | {{:wiki: | + | {{: |
</ | </ | ||