Bind color mixer to validator range.

This commit is contained in:
Paul Chote
2016-01-26 23:46:28 +00:00
parent 7638746069
commit cc4ca839d9
2 changed files with 40 additions and 11 deletions

View File

@@ -56,7 +56,10 @@ namespace OpenRA.Mods.Common.Widgets.Logic
};
// Set the initial state
var validator = Game.ModData.Manifest.Get<ColorValidator>();
mixer.SetPaletteRange(validator.HsvSaturationRange[0], validator.HsvSaturationRange[1], validator.HsvValueRange[0], validator.HsvValueRange[1]);
mixer.Set(initialColor);
hueSlider.Value = initialColor.H / 255f;
onChange(mixer.Color);
}