/tg/ Station 13 - Modules - TypesProc Details

greyscale_layer

Procs

CrossVerifyUse this proc for extra verification needed by a particular layer, gets run after all greyscale configs have finished reading their json files.
DiskRefreshOverride this if you need to do something during a full config refresh from disk, return TRUE if something was changed
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

CrossVerify

Use this proc for extra verification needed by a particular layer, gets run after all greyscale configs have finished reading their json files.

DiskRefresh

Override this if you need to do something during a full config refresh from disk, return TRUE if something was changed

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.