/tg/ Station 13 - Modules - TypesProc Details

greyscale_layer

Procs

GenerateUsed to actualy create the layer using the given colors Do not override, use InternalGenerate instead
GetExpectedValuesGathers information from the layer about what variables are expected in the json. Override and add to the two argument lists if you want extra information in your layer. The lists are formatted like keyname:keytype_define. The key name is assigned to the var named the same on the layer type.
InitializeOverride this to do initial set up
InternalGenerateOverride this to implement layers. The colors var will only contain colors that this layer is configured to use.
ReadJsonDataHandles the processing of the json data and conversion to correct value types. Will error on incorrect, missing, or unexpected values.

Proc Details

Generate

Used to actualy create the layer using the given colors Do not override, use InternalGenerate instead

GetExpectedValues

Gathers information from the layer about what variables are expected in the json. Override and add to the two argument lists if you want extra information in your layer. The lists are formatted like keyname:keytype_define. The key name is assigned to the var named the same on the layer type.

Initialize

Override this to do initial set up

InternalGenerate

Override this to implement layers. The colors var will only contain colors that this layer is configured to use.

ReadJsonData

Handles the processing of the json data and conversion to correct value types. Will error on incorrect, missing, or unexpected values.