SS1984 - Modules - TypesVar Details - Proc Details

greyscale_config

A datum tying together a greyscale configuration and dmi file. Required for using GAGS and handles the code interactions.

Vars

expected_colorsHow many colors are expected to be given when building the sprite
flat_all_layersA list of all layers irrespective of nesting
heightSpritesheet height of the icon_file
icon_cacheGenerated icons keyed by their color arguments
icon_fileReference to the dmi file for this config
icon_file_hashThe md5 file hash for the icon file. Used to check if the file has changed
icon_statesA list of icon states and their layers
json_configReference to the json config file
json_config_hashThe md5 file hash for the json configuration. Used to check if the file has changed
live_edit_typesA list of types to update in the world whenever a config changes
nameUser friendly name used in the debug menu
raw_json_stringThe raw string contents of the JSON config file.
string_icon_fileString path to the icon file, used for reloading
string_json_configString path to the json file, used for reloading
widthSpritesheet width of the icon_file

Procs

ReadMetadataReads layer configurations to take out some useful overall information
cross_verifyCalled after every config has refreshed, this proc handles data verification that depends on multiple entwined configurations.
debug_nameGets the name used for debug purposes
generateActually create the icon and color it in, handles caching
generate_bundleHandles the actual icon manipulation to create the spritesheet
generate_bundle_universal_iconHandles the actual icon manipulation to create the spritesheet
generate_layer_groupInternal recursive proc to handle nested layer groups
generate_layer_group_universal_iconInternal recursive proc to handle nested layer groups
read_icon_state_configurationTakes the json icon state configuration and puts it into a more processed format.
read_layers_from_jsonTakes the json layers configuration and puts it into a more processed format
refreshCall this proc to handle all the data extraction from the json configuration. Can be forced to load values from disk instead of memory.
save_outputFor saving a dmi to disk, useful for debug mainly

Var Details

expected_colors

How many colors are expected to be given when building the sprite

flat_all_layers

A list of all layers irrespective of nesting

height

Spritesheet height of the icon_file

icon_cache

Generated icons keyed by their color arguments

icon_file

Reference to the dmi file for this config

icon_file_hash

The md5 file hash for the icon file. Used to check if the file has changed

icon_states

A list of icon states and their layers

json_config

Reference to the json config file

json_config_hash

The md5 file hash for the json configuration. Used to check if the file has changed

live_edit_types

A list of types to update in the world whenever a config changes

name

User friendly name used in the debug menu

raw_json_string

The raw string contents of the JSON config file.

string_icon_file

String path to the icon file, used for reloading

string_json_config

String path to the json file, used for reloading

width

Spritesheet width of the icon_file

Proc Details

ReadMetadata

Reads layer configurations to take out some useful overall information

cross_verify

Called after every config has refreshed, this proc handles data verification that depends on multiple entwined configurations.

debug_name

Gets the name used for debug purposes

generate

Actually create the icon and color it in, handles caching

generate_bundle

Handles the actual icon manipulation to create the spritesheet

generate_bundle_universal_icon

Handles the actual icon manipulation to create the spritesheet

generate_layer_group

Internal recursive proc to handle nested layer groups

generate_layer_group_universal_icon

Internal recursive proc to handle nested layer groups

read_icon_state_configuration

Takes the json icon state configuration and puts it into a more processed format.

read_layers_from_json

Takes the json layers configuration and puts it into a more processed format

refresh

Call this proc to handle all the data extraction from the json configuration. Can be forced to load values from disk instead of memory.

save_output

For saving a dmi to disk, useful for debug mainly