/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

allow_all_subtypes_in_loadoutWhen set true, will allow concrete subtypes of abstract subtypes (such as for organizational purposes) to be selectable as reskins in the loadout menu.
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
change_worn_icon_stateIf true, changing the reskin also changes the worn_icon_state of the atom
greyscale_colorsAuto populated. The greyscale_colors from greyscale_item_path.
greyscale_configAuto populated. The greyscale_config from greyscale_item_path.
greyscale_item_pathMandatory for GAGs items. The path to the greyscale item this is to be applied to.
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_inhand_icon_stateSpecifies the icon state for the atom's appearance in hand. Should appear in both new_lefthand_file and new_righthand_file.
new_left_inhandOptional, worn_icon to change the atom to when applied The in-hand icon state for held items. The left side in-hand icon state for held items.
new_lefthand_fileOptional, specifies the left hand inhand icon file. Don't forget to set the right hand file as well.
new_nameOptional, name to change the atom to when applied
new_right_inhandThe right side in-hand icon state for held items.
new_righthand_fileOptional, specifies the right hand inhand icon file. Don't forget to set the left hand file as well.
new_worn_iconOptional, specifies the worn icon file.
preview_nameRequired, name shown in the radial menu
reset_missingIf true, unset vars are reset to their original values when applying this skin

Procs

get_preview_iconGets a preview image for this skin based on the given atom's icon and icon_state
get_preview_icon_stateReturns the correct preview icon state for this atom skin, whether it be a map_preview or a normal icon. This is assumed from our var population above.

Var Details

allow_all_subtypes_in_loadout

When set true, will allow concrete subtypes of abstract subtypes (such as for organizational purposes) to be selectable as reskins in the loadout menu.

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

change_worn_icon_state

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

greyscale_colors

Auto populated. The greyscale_colors from greyscale_item_path.

greyscale_config

Auto populated. The greyscale_config from greyscale_item_path.

greyscale_item_path

Mandatory for GAGs items. The path to the greyscale item this is to be applied to.

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_inhand_icon_state

Specifies the icon state for the atom's appearance in hand. Should appear in both new_lefthand_file and new_righthand_file.

new_left_inhand

Optional, worn_icon to change the atom to when applied The in-hand icon state for held items. The left side in-hand icon state for held items.

new_lefthand_file

Optional, specifies the left hand inhand icon file. Don't forget to set the right hand file as well.

new_name

Optional, name to change the atom to when applied

new_right_inhand

The right side in-hand icon state for held items.

new_righthand_file

Optional, specifies the right hand inhand icon file. Don't forget to set the left hand file as well.

new_worn_icon

Optional, specifies the worn icon file.

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

get_preview_icon

Gets a preview image for this skin based on the given atom's icon and icon_state

get_preview_icon_state

Returns the correct preview icon state for this atom skin, whether it be a map_preview or a normal icon. This is assumed from our var population above.