greyscale_config

Vars | |
expected_colors | How many colors are expected to be given when building the sprite |
---|---|
greyscale_flags | Flags that can be used to modify use |
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 |
name | User friendly name used in the debug menu |
prefix | This is used to differentiate sprites that can use the same json, but you dont want a ton of different icon files. It applies this prefix to the icon states before gathering the icons. |
string_icon_file | String path to the icon file, used for reloading |
string_json_config | String path to the json file, used for reloading |
Procs | |
DebugName | Gets the name used for debug purposes |
Generate | Actually create the icon and color it in, handles caching |
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 |
Var Details
expected_colors

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

Flags that can be used to modify use
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
name

User friendly name used in the debug menu
prefix

This is used to differentiate sprites that can use the same json, but you dont want a ton of different icon files. It applies this prefix to the icon states before gathering the icons.
string_icon_file

String path to the icon file, used for reloading
string_json_config

String path to the json file, used for reloading
Proc Details
DebugName
Gets the name used for debug purposes
Generate
Actually create the icon and color it in, handles caching
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