o3de / o3de

Open 3D Engine (O3DE) is an Apache 2.0-licensed multi-platform 3D engine that enables developers and content creators to build AAA games, cinema-quality 3D worlds, and high-fidelity simulations without any fees or commercial obligations.
https://o3de.org
Other
7.67k stars 2.19k forks source link

Color Picker - Color field dropdown for mode #2956

Open cgalvan opened 3 years ago

cgalvan commented 3 years ago

Describe the bug There is a need for Light components to be edited using the Lighting (Hue/Saturation) Color Picker mode, which is currently only accessible in the control gallery. We need to add an AZ::Attribute that would be added to the color fields in our Light components that would enable a dropdown (or some kind of icon) on the color field row in the Entity Inspector that would allow the user to use between the following modes:

Color as Gel: uses standard sRGB color picking mode Color as Hue: uses the Lighting Hue and Saturation picking mode Based on the selection for this dropdown will determine which mode the Color Picker is opened in when you click on the color swatch in the color field.

To Reproduce

  1. Create a new level
  2. Create an Entity
  3. Add a Point Light component
  4. Click the color square the open the Color Picker

Expected behavior TBD

Desktop/Device (please complete the following information):

cgalvan commented 3 years ago

@HogJonny-AMZN