Fix issue that caused no font to ever be saved, so every call created a new one
Fix issue that cause all fonts to save to the same table
Fix color comparison to actually compare colors instead of just userdata equality
Add text color comparison
Remove non-existing font name and size comparisons - replace with userdata equality check
Change saved fonts and text settings to be as immutable as possible to prevent tampering
Testing was done by enabling extensions EasyEdit and UiInspector. They both use the InputField ui object with decoration, and has a few different fonts between them.
Before these fixes, texts show up as a mishmash of fonts and sizes - after they are fixed.
This code had a lot of issues.
Testing was done by enabling extensions EasyEdit and UiInspector. They both use the InputField ui object with decoration, and has a few different fonts between them. Before these fixes, texts show up as a mishmash of fonts and sizes - after they are fixed.