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

mutant_choice

Base class for choices character features, mainly mutant body parts

Vars

crop_areaA list of the four co-ordinates to crop to, if generate_icons is enabled. Useful for icons whose main contents are smaller than 32x32. Please keep it square.
default_accessory_typePath to the default sprite accessory
generate_iconsGenerates icons from the provided mutant bodypart for use in icon-enabled selection boxes in the prefs window.
greyscale_colorA color to apply to the icon if it's greyscale, and generate_icons is enabled.
type_to_checkPath to the corresponding /datum/preference/toggle to check if part is enabled.

Procs

apply_to_humanApply this preference onto the given human. May be overriden by subtypes. Called when the savefile_identifier == PREFERENCE_CHARACTER.
generate_iconGenerates and allows for post-processing on icons, such as greyscaling and cropping. This is cached.
generate_icon_stateAllows for dynamic assigning of icon states.
is_part_enabledIs this part enabled by the player?
is_visibleActually rendered. Slimmed down version of the logic in is_available() that actually works when spawning or drawing the character.

Var Details

crop_area

A list of the four co-ordinates to crop to, if generate_icons is enabled. Useful for icons whose main contents are smaller than 32x32. Please keep it square.

default_accessory_type

Path to the default sprite accessory

generate_icons

Generates icons from the provided mutant bodypart for use in icon-enabled selection boxes in the prefs window.

greyscale_color

A color to apply to the icon if it's greyscale, and generate_icons is enabled.

type_to_check

Path to the corresponding /datum/preference/toggle to check if part is enabled.

Proc Details

apply_to_human

Apply this preference onto the given human. May be overriden by subtypes. Called when the savefile_identifier == PREFERENCE_CHARACTER.

Returns whether the bodypart is actually visible.

generate_icon

Generates and allows for post-processing on icons, such as greyscaling and cropping. This is cached.

generate_icon_state

Allows for dynamic assigning of icon states.

is_part_enabled

Is this part enabled by the player?

Arguments:

is_visible

Actually rendered. Slimmed down version of the logic in is_available() that actually works when spawning or drawing the character.

Returns TRUE if feature is visible.

Arguments: