Show / Hide Element
Shows, hides or toggles one HUD element: a key icon that appears once the key is found, a hint that goes away. Since 1.74.
Output: none (it writes into its element)
Inputs
| Handle | Type | Meaning |
|---|---|---|
| trigger | event | each pulse does the action once |
| visible | number | wired, the element follows it instead: above 0 = shown, 0 or less = hidden |
Parameters
| Parameter | Default | Options |
|---|---|---|
| element | (none) | the HUD element, picked on the card |
| action | hide | show, hide, toggle |
Per player
Like a HUD Screen, this works on each player's own HUD. A shared pulse (an ordinary On Click) shows or hides it for everyone; a pulse only one player makes acts for that player alone.
A hidden element keeps its place on the screen. It draws nothing and takes no press.
Practical example
A key icon that shows once you pick the key up:
- In the HUD editor, add an Icon row or an Image for the key, and leave it on the Playing screen.
- Add a Show / Hide Element for that element with action hide, and drive it from an On Play start: the icon starts hidden.
- Add a second Show / Hide Element for the same element with action show, driven by an On Click on the key.
See also
- HUD Screen — show or hide a whole screen
- HUD Editor