Hide: Difference between revisions
(Marked this version for translation) |
(Marked this version for translation) |
||
(7 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== | ||
{{Block|hide [▼]}} hides a selected widget. Once hidden, you need to use “show” to make it visible again. | |||
<!--T:3--> | <!--T:3--> | ||
==Syntax== | |||
<code>hide [Dropdown: Type of Widget]</code> | [[File:Hide Nums.png|right|alt=The Hide Block|thumb]] | ||
<!-- <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
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.