Add a Color Input#74
Conversation
Probably more useful than the GameObject since the point of having a field for it is to allow for changing the size/position of the swatch
This to reduce the menu burden of the test plugin
See: 3 other open PRs zotesip
|
@kaycodes13 apologies for the large pile of commits... I have un-bumped the version because there are three other open PRs, if we clear the PRs and don't update the version please ping in #silksong-org-discussion. If you do want to make further edits to this PR please pull first :zote: |
|
@dplochcoder I have rearranged the mod menu test area so that the nested testing plugin and the newly added auto testing plugin have been added to the main testing plugin's menu (rather than getting their own menu) - I think 3+ menus are a bit too much clutter for my taste. If you (or anyone else) want to browse the diff of that change in isolation then it's covered by this |
|
Hopefully the other PRs will be handled soon; I'd prefer to avoid multiple consecutive releases but if you want this on thunderstore asap feel free to poke and we can bump version |
Summary of Changes
ColorInput, an extension ofTextInputspecialized for handlingColorinput. It parses hex color codes in three formats (3-character RGB, 6-character RGB, and 8-character RGBA), has custom input validation, and has a preview swatch of the chosen colour beside the input field.ConfigEntryFactoryso thatColorInputs can be automatically generated forConfigEntry<Color>s.Checklist