Neos-Metaverse / NeosPublic

A public issue/wiki only repository for the NeosVR project
197 stars 9 forks source link

Use "Multiply" instead of Direct with the default UIX Button Color Handling. #3746

Open ProbablePrime opened 1 year ago

ProbablePrime commented 1 year ago

Is your tweak request related to a problem? Please describe.

When creating a button in UIX it is often the case that I end up making many or I want to use ValueOptionDescriptionDriver or something like that to edit the Colors.

In the current state, this is difficult.

Let's say I make a Red button on a slot with an image:

  1. Make a UIX Slot
  2. Add a recttransform
  3. Add an Image
  4. Set Image to Red
  5. Add UIX Button

Neos will set up the Color drives of the Image component to be Red mixes using maths etc. Automatically. This is generally helpful.

Now, let's say I want the button to turn green for some state related reason. I need to update all colors: Normal, Press, Hover, Disabled etc. To be the green mixes.

Doing this with value option description driver or otherwise is difficult, i'd need 4 components or some logix etc.

It also renders "Base Color" useless.

Describe what would you like tweaked

Update the Initial, automatic calculations to use Multiply. And set the default, normal, press, hover etc to appropriate brighter shades of grey/white to match the visuals currently in play.

This then will make it easier to change the color of the button by using the base color property. I can then only change ONE color and end up with a button that is easy to change the color of.

Describe alternatives you've considered

Additional context

No response

ProbablePrime commented 1 year ago

Explicit would also be an option, I forgot its maths is slightly different