Fix IDE0074, SA1316 and followup CS8141
This commit is contained in:
@@ -136,8 +136,8 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
|
|
||||||
public event Action<Color> OnColorPickerColorUpdate;
|
public event Action<Color> OnColorPickerColorUpdate;
|
||||||
|
|
||||||
(float sMin, float sMax) IColorPickerManagerInfo.SaturationRange => (HsvSaturationRange[0], HsvSaturationRange[1]);
|
(float SMin, float SMax) IColorPickerManagerInfo.SaturationRange => (HsvSaturationRange[0], HsvSaturationRange[1]);
|
||||||
(float vMin, float vMax) IColorPickerManagerInfo.ValueRange => (HsvValueRange[0], HsvValueRange[1]);
|
(float VMin, float VMax) IColorPickerManagerInfo.ValueRange => (HsvValueRange[0], HsvValueRange[1]);
|
||||||
|
|
||||||
Color[] IColorPickerManagerInfo.PresetColors => PresetColors;
|
Color[] IColorPickerManagerInfo.PresetColors => PresetColors;
|
||||||
|
|
||||||
|
|||||||
@@ -294,8 +294,8 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
|
|
||||||
public interface IColorPickerManagerInfo : ITraitInfoInterface
|
public interface IColorPickerManagerInfo : ITraitInfoInterface
|
||||||
{
|
{
|
||||||
(float sMin, float sMax) SaturationRange { get; }
|
(float SMin, float SMax) SaturationRange { get; }
|
||||||
(float vMin, float vMax) ValueRange { get; }
|
(float VMin, float VMax) ValueRange { get; }
|
||||||
event Action<Color> OnColorPickerColorUpdate;
|
event Action<Color> OnColorPickerColorUpdate;
|
||||||
Color[] PresetColors { get; }
|
Color[] PresetColors { get; }
|
||||||
Color RandomPresetColor(MersenneTwister random, IEnumerable<Color> terrainColors, IEnumerable<Color> playerColors);
|
Color RandomPresetColor(MersenneTwister random, IEnumerable<Color> terrainColors, IEnumerable<Color> playerColors);
|
||||||
|
|||||||
@@ -61,9 +61,7 @@ namespace OpenRA.Mods.Common.Widgets
|
|||||||
minVal = minValue;
|
minVal = minValue;
|
||||||
maxVal = maxValue;
|
maxVal = maxValue;
|
||||||
|
|
||||||
if (newHue == null)
|
newHue ??= H;
|
||||||
newHue = H;
|
|
||||||
|
|
||||||
var buffer = new byte[4 * 256 * 256];
|
var buffer = new byte[4 * 256 * 256];
|
||||||
unsafe
|
unsafe
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user