Mattshark89 / OpenFlight-VRC

MIT License
46 stars 33 forks source link

[FEATURE] UI Styler for UI to persist color changes after updates #28

Closed mackandelius closed 1 year ago

mackandelius commented 1 year ago

Since any change of color to the tablet resets after an update to OpenFlight, it would good to have a similar sort of thing to what USharpVideo uses to style their video player, except in this case it would be excluded from the prefab and would probably need to be a script the world creator attaches to a non-OpenFlight-prefab game object themselves, as a I assume that is the only way to persist data.

https://github.com/MerlinVR/USharpVideo/wiki/ui-styles

With credit there doesn't seem to be any reason why the script USharpVideo is using couldn't be reused here, it is very modular, would just really need the main "Styler" component modified for the OpenFlight tablet (just a reduction in number of color fields) and the "style markup" components pre-configured for each part of the tablet in the prefab.

Happyrobot33 commented 1 year ago

Persisent data is actually possible using editorprefs, and we are actually already storing persistent data in the Extensions-Preview branch for if you have OpenFlight zone gizmos shown

Happyrobot33 commented 1 year ago

Implementation live in OpenFlight-1.4.0-beta.1