greyscale_config 
A datum tying together a greyscale configuration and dmi file. Required for using GAGS and handles the code interactions.
Vars | |
| 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 |
Procs | |
| 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 |
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