Hide: Difference between revisions

From StarLogo Nova Wiki
No edit summary
(Marked this version for translation)
 
(6 intermediate revisions by the same user not shown)
Line 5: Line 5:
<section begin="image"/>
<section begin="image"/>
[[File:Hide.png|alt=hide|thumb]]
[[File:Hide.png|alt=hide|thumb]]
<section end="image"/>
<section end="image"/><p id="tooltip">Hides a selected widget. Once hidden, you need to use “show _” to make it visible again.</p>
 
<!--T:7-->
<section begin="name" />{{Block|hide [▼]}}<section end="name" /> is a code block from the [[Interface]] drawer.
<section begin="name" />{{Block|hide [▼]}}<section end="name" /> is a code block from the [[Interface]] drawer.


<!--T:2-->
<!--T:2-->
==Usage==
==Usage==
<p id="tooltip">{{Block|hide [▼]}} hides a selected widget. Once hidden, you need to use “show” to make it visible again.</p>
{{Block|hide [▼]}} hides a selected widget. Once hidden, you need to use “show” to make it visible again.


<!--T:3-->
<!--T:3-->
==Syntax==
==Syntax==
<section begin=image/>[[File:Hide Nums.png|right|alt=The Hide Block|thumb]]<section end=image/>
[[File:Hide Nums.png|right|alt=The Hide Block|thumb]]
<code>hide [Dropdown: Type of Widget]</code>
<!-- <code>hide [Dropdown: Type of Widget]</code> -->
Inputs:
#Select the desired widget from the drop down menu
 
==Example== <!--T:8-->
 
<!--T:9-->
[[File:hide_example.gif|alt=Hide example gif|thumb]]
[[File:hide_example.png|alt=Hide example code|thumb]]
 
<!--T:10-->
The game above involves shooting down enemy spaceships, while trying to avoid crashing into them. After you crash into an enemy spaceship, everyone is deleted and the ‘GAME OVER’ label is shown using the ‘show’ block. This label is hidden in the setup of the game using the ‘hide’ block so that it is invisible until the game is over. 


==Nuances== <!--T:4-->
==Nuances== <!--T:4-->

Latest revision as of 19:27, 11 August 2023

Other languages:


hide

Hides a selected widget. Once hidden, you need to use “show _” to make it visible again.

hide [▼] is a code block from the Interface drawer.

Usage

hide [▼] hides a selected widget. Once hidden, you need to use “show” to make it visible again.

Syntax

The Hide Block

Inputs:

  1. Select the desired widget from the drop down menu

Example

Hide example gif
Hide example code

The game above involves shooting down enemy spaceships, while trying to avoid crashing into them. After you crash into an enemy spaceship, everyone is deleted and the ‘GAME OVER’ label is shown using the ‘show’ block. This label is hidden in the setup of the game using the ‘hide’ block so that it is invisible until the game is over.

Nuances

Related Blocks