HudVisible

Family: Studio · One form

What it does

Shows or hides a HUD element found by the name it has in the editor.

Syntax

HudVisible(element string, visible integer)

Parameters

NameTypeMeaning
elementstringThe HUD element's id or name. The name is matched exactly first, then ignoring case.
visibleinteger1 to show the element, 0 to hide it.

Every form returns

nothing

Good to know

  • Every element with that name is changed. An unknown name changes nothing and writes one warning to the console, once per name.

Example · generated

HudVisible("value", 1)DO  Sync()LOOP

HudVisible is called with values of the types its signature asks for. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

Related commands

133 commands in Studio