/tg/ Station 13 - Modules - TypesVar Details - Proc Details

modular_computer

Vars

all_componentsList of "connection ports" in this computer and the components with which they are plugged
expansion_baysLazy List of extra hardware slots that can be used modularly.
looping_soundWhether or not this modular computer uses the looping sound
max_baysNumber of total expansion bays this computer has available.
soundloopLooping sound for when the computer is on

Procs

alert_callDisplays notification text alongside a soundbeep when requested to by a program.
set_flashlight_colorSets the computer's light color, if it has a light.
toggle_flashlightToggles the computer's flashlight, if it has one.

Var Details

all_components

List of "connection ports" in this computer and the components with which they are plugged

expansion_bays

Lazy List of extra hardware slots that can be used modularly.

looping_sound

Whether or not this modular computer uses the looping sound

max_bays

Number of total expansion bays this computer has available.

soundloop

Looping sound for when the computer is on

Proc Details

alert_call

Displays notification text alongside a soundbeep when requested to by a program.

After checking tha the requesting program is allowed to send an alert, creates a visible message of the requested text alongside a soundbeep. This proc adds text to indicate that the message is coming from this device and the program on it, so the supplied text should be the exact message and ending punctuation.

Arguments: The program calling this proc. The message that the program wishes to display.

set_flashlight_color

Sets the computer's light color, if it has a light.

Called from ui_act(), this proc takes a color string and applies it. It is seperated from ui_act() to be overwritten as needed. Arguments:

toggle_flashlight

Toggles the computer's flashlight, if it has one.

Called from ui_act(), does as the name implies. It is seperated from ui_act() to be overwritten as needed.