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 |
---|---|
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_states | A list of icon states and their layers |
json_config | Reference to the json config file |
material_skin | An optional var to set that tells the material system what material this configuration is for. Use a typepath here, not an instance. |
name | User friendly name used in the debug menu |
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 | |
CrossVerify | Called after every config has refreshed, this proc handles data verification that depends on multiple entwined configurations. |
DebugName | Gets the name used for debug purposes |
Generate | Actually create the icon and color it in, handles caching |
GenerateBundle | Handles the actual icon manipulation to create the spritesheet |
GenerateLayerGroup | Internal recursive proc to handle nested layer groups |
ReadIconStateConfiguration | Takes the json icon state configuration and puts it into a more processed format. |
ReadLayersFromJson | Takes the json layers configuration and puts it into a more processed format |
ReadMetadata | Reads layer configurations to take out some useful overall information |
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. |
Var Details
expected_colors

How many colors are expected to be given when building the sprite
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_states

A list of icon states and their layers
json_config

Reference to the json config file
material_skin

An optional var to set that tells the material system what material this configuration is for. Use a typepath here, not an instance.
name

User friendly name used in the debug menu
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
CrossVerify
Called after every config has refreshed, this proc handles data verification that depends on multiple entwined configurations.
DebugName
Gets the name used for debug purposes
Generate
Actually create the icon and color it in, handles caching
GenerateBundle
Handles the actual icon manipulation to create the spritesheet
GenerateLayerGroup
Internal recursive proc to handle nested layer groups
ReadIconStateConfiguration
Takes the json icon state configuration and puts it into a more processed format.
ReadLayersFromJson
Takes the json layers configuration and puts it into a more processed format
ReadMetadata
Reads layer configurations to take out some useful overall information
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.