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

atom_skin

Atom skin singleton datum

Simple datum which holds information about a skin that can be applied to an atom.

Vars

change_base_icon_stateIf true, changing the reskin also changes the base_icon_state of the atom
change_inhand_icon_stateIf true, changing the reskin also changes the inhand_icon_state of the atom
new_descOptional, description to change the atom to when applied
new_iconOptional, icon to change the atom to when applied
new_icon_stateOptional, icon_state to change the atom to when applied
new_nameOptional, name to change the atom to when applied
preview_nameRequired, name shown in the radial menu
reset_missingIf true, unset vars are reset to their original values when applying this skin

Procs

applyApplies all relevant skin changes to the given atom Can be overridden to add additional behavior, such as registering signals or altering other vars.
clear_skinResets all changes this skin would have made to the given atom Does not verify that the skin was actually applied to the atom beforehand. Can be overridden to add additional behavior, such as unregistering signals or altering other vars.

Var Details

change_base_icon_state

If true, changing the reskin also changes the base_icon_state of the atom

change_inhand_icon_state

If true, changing the reskin also changes the inhand_icon_state of the atom

new_desc

Optional, description to change the atom to when applied

new_icon

Optional, icon to change the atom to when applied

new_icon_state

Optional, icon_state to change the atom to when applied

new_name

Optional, name to change the atom to when applied

preview_name

Required, name shown in the radial menu

reset_missing

If true, unset vars are reset to their original values when applying this skin

Proc Details

apply

Applies all relevant skin changes to the given atom Can be overridden to add additional behavior, such as registering signals or altering other vars.

clear_skin

Resets all changes this skin would have made to the given atom Does not verify that the skin was actually applied to the atom beforehand. Can be overridden to add additional behavior, such as unregistering signals or altering other vars.