Yogstation 13 - Modules - TypesVar Details - Proc Details

/datum/greyscale_modify_menu

The controller for the ui in charge of all runtime greyscale configuration/debug. If Unlock() is not called the menu is safe for players to use.

Vars

allowed_configsA keyed list of allowed configs in the form niceName:typepath
apply_callbackA callback to control what happens when the user presses apply. Used mainly for if you want the menu to be used outside of vv.
configThe current config being previewed
config_owner_typeThe type that the configuration file was assigned at
generate_full_previewWhether the full preview should be generated, with this FALSE only the final sprite is shown instead of all steps.
icon_stateThe sprite icon state currently being shown
refreshingWhether the menu is in the middle of refreshing the preview
split_colorsA list of colors currently selected
sprite_dataCollection of data for tgui to use in displaying everything
sprite_dirThe sprite dir currently being shown
targetThe "owner" object of this menu, is usually the greyscale object being edited but that can be changed for specific uses of this menu
unlockedWhether the menu is currently locked down to prevent abuse from players. Currently is only unlocked when opened from vv.
userThe client that opened this menu

Procs

SetupConfigOwnerGets the top level type that first uses the configuration in this type path

Var Details

allowed_configs

A keyed list of allowed configs in the form niceName:typepath

apply_callback

A callback to control what happens when the user presses apply. Used mainly for if you want the menu to be used outside of vv.

config

The current config being previewed

config_owner_type

The type that the configuration file was assigned at

generate_full_preview

Whether the full preview should be generated, with this FALSE only the final sprite is shown instead of all steps.

icon_state

The sprite icon state currently being shown

refreshing

Whether the menu is in the middle of refreshing the preview

split_colors

A list of colors currently selected

sprite_data

Collection of data for tgui to use in displaying everything

sprite_dir

The sprite dir currently being shown

target

The "owner" object of this menu, is usually the greyscale object being edited but that can be changed for specific uses of this menu

unlocked

Whether the menu is currently locked down to prevent abuse from players. Currently is only unlocked when opened from vv.

user

The client that opened this menu

Proc Details

SetupConfigOwner

Gets the top level type that first uses the configuration in this type path