Space Station 13 - Modules - TypesVar Details - Proc Details

label

The label component.

This component is used to manage labels applied by the hand labeler.

Atoms can only have one instance of this component, and therefore only one label at a time. This is to avoid having names like "Backpack (label1) (label2) (label3)". This is annoying and abnoxious to read.

When a player clicks the atom with a hand labeler to apply a label, this component gets applied to it. If the labeler is off, the component will be removed from it, and the label will be removed from its name.

Vars

label_nameThe name of the label the player is applying to the parent.

Procs

InheritComponentThis proc will fire after the parent is hit by a hand labeler which is trying to apply another label. Since the parent already has a label, it will remove the old one from the parent's name, and apply the new one.
apply_labelApplies a label to the name of the parent in the format of: "parent_name (label)"
on_update_nameThis proc will trigger when someone examines the parent. It will attach the text found in the body of the proc to the examine_list and display it to the player examining the parent.
remove_labelRemoves the label from the parent's name

Var Details

label_name

The name of the label the player is applying to the parent.

Proc Details

InheritComponent

This proc will fire after the parent is hit by a hand labeler which is trying to apply another label. Since the parent already has a label, it will remove the old one from the parent's name, and apply the new one.

apply_label

Applies a label to the name of the parent in the format of: "parent_name (label)"

on_update_name

This proc will trigger when someone examines the parent. It will attach the text found in the body of the proc to the examine_list and display it to the player examining the parent.

Arguments:

remove_label

Removes the label from the parent's name