User Tools

Site Tools


hide_widget

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
hide_widget [2020/12/05 20:29] – created justinhide_widget [2023/11/06 14:31] (current) 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:====
 <code python> <code python>
-hide_widget(widget_id)+hide_widget(widget_id, fade_out_length)
 </code> </code>
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|widget_id|Widget ID of the widget to hide (as defined in the [[Widget Editor]]).|[[String]]|Yes|+|widget_id|ID of the widget (as defined in the [[Widget Editor]]).|[[String]]|Yes
 +|fade_out_length|Length of the fade out effect (in seconds).|[[Number]]|No|
  
 ====Example:==== ====Example:====
 <code bauxite> <code bauxite>
-hide_widget("my_widget")+hide_widget("my_widget", 1);
 </code> </code>
-//Results:// The widget with an ID of "my_widget" will be hidden. +//Results:// The widget with an ID of "my_widget" will be hidden, fading out over 1 second.
- +
-<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. +
-</WRAP>+
  
 ---- ----
Line 27: Line 24:
 <WRAP half column> <WRAP half column>
 ====Editor Node:==== ====Editor Node:====
-{{:wiki:hide_widget_node.png?nolink|}}+{{:hide_widget_node.png?nolink|}}
 </WRAP> </WRAP>
  
hide_widget.1607228975.txt.gz · Last modified: 2020/12/05 20:29 by justin