Hide: Difference between revisions
mNo edit summary |
(Marked this version for translation) |
||
(One intermediate revision 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 20: | Line 20: | ||
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.