Space Station 13 - Modules - TypesVar Details - Proc Details

painter

Vars

module_listList of any instanced /datum/painter's, to avoid spawning more than one of each.
painter_icon_listAssociative list of painter types, with the value being the icon. (For use in the radial menu)
painter_type_listAssociative list of painter types, with the value being the datum. (For use in the radial menu)
selected_moduleThe /datum/painter which is currently active.

Procs

CtrlClickDisplays a radial menu for choosing a new painter module.
afterattackIf adjacent, calls paint_atom() on the selected_module, then plays the usesound.
attack_selfCalls pick_color() on the selected_module.
change_moduleChanges the selected_module variable to new_module, and updates the painter to reflect the new type.

Var Details

module_list

List of any instanced /datum/painter's, to avoid spawning more than one of each.

painter_icon_list

Associative list of painter types, with the value being the icon. (For use in the radial menu)

painter_type_list

Associative list of painter types, with the value being the datum. (For use in the radial menu)

selected_module

The /datum/painter which is currently active.

Proc Details

CtrlClick

Displays a radial menu for choosing a new painter module.

afterattack

If adjacent, calls paint_atom() on the selected_module, then plays the usesound.

attack_self

Calls pick_color() on the selected_module.

change_module

Changes the selected_module variable to new_module, and updates the painter to reflect the new type.

If new_module is already present in module_list, then that will be used instead. Otherwise a new datum will be spawned and added to module_list. The Name, Description, Icon State, and Item State of the painter will be updated using variables from the new_module datum.

Arguments: