mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-02 13:02:38 +00:00
Brings back the behavior removed from #52186 with cleaner code. Differences in the code: No more explicit type checks in the spray paint code, other than a broad isobj. Checking for dark colors is now based on luminosity, rather than unscientifically summing all the RGB components and checking an arbitrary number. Removes the paintable component. This was used on one item, and its behavior is replicated in the spray can. Instead of checking for windows specifically and changing opacity through there, atoms can now specify through init flags whether or not they allow dark colors. Windows set this flag. Adds a COMSIG_OBJ_PAINTED signal. Windows use this signal to dynamically update opacity, just like how they did before. This was a fun cosmetic feature that I'm not sure anyone had a problem with. The original reason for removal seemed to be because of code quality, and not because of negatives about the feature. Makes canvasses unpaintable