Im working on a script that could use some storage for settings/state. I think the glyph style mechanism found in Kria would be fantastic. I’m thinking I might make a small glyph library so that the logic can be used elsewhere too. Here are my thoughts on that lib, im looking for concerns, advice and suggestions.
The library constructor would need a couple things:
-The size and location on the grid that it will be located.
-The folder where the saved objects go
-pointers to the load and saving/update functions that will be used
The user will have set glyph:on(true) whenever the glyph should actually be displayed in the scripts workflow. And glyph:Draw() will have to be called in the grid update function (but wont do anything if the glyph tool is off)
Glyph will also have to access grid.event(x, y ,z) but wont actively listen unless the glyph tool is currently on.