Hide: Difference between revisions
(Marked this version for translation) |
(Marked this version for translation) |
||
(2 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"/><p id="tooltip">Hides a selected widget. | <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--> | <!--T:7--> | ||
Line 16: | Line 16: | ||
<!--T:3--> | <!--T:3--> | ||
==Syntax== | ==Syntax== | ||
[[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: | Inputs: | ||
#Select the desired widget from the drop down menu | #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
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
Inputs:
- Select the desired widget from the drop down menu
Example
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.