Revert color validator
This commit is contained in:
committed by
Matthias Mailänder
parent
4cd4e1f8ea
commit
9d8f0634b1
@@ -19,7 +19,7 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
|
||||
public override string Name => "ColorPickerManager's PresetHues, PresetSaturations and V were replaced with PresetColors.";
|
||||
|
||||
public override string Description =>
|
||||
"Each preset color can now have their brightness specified.";
|
||||
"Each preset color can now have their brightness specified. SimilarityThreshold range was changed.";
|
||||
|
||||
public override IEnumerable<string> UpdateActorNode(ModData modData, MiniYamlNode actorNode)
|
||||
{
|
||||
@@ -27,6 +27,8 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
|
||||
if (manager == null)
|
||||
yield break;
|
||||
|
||||
manager.RemoveNodes("SimilarityThreshold");
|
||||
|
||||
var v = manager.LastChildMatching("V")?.NodeValue<float>() ?? 0.95f;
|
||||
var hues = manager.LastChildMatching("PresetHues")?.NodeValue<float[]>();
|
||||
var saturations = manager.LastChildMatching("PresetSaturations")?.NodeValue<float[]>();
|
||||
|
||||
Reference in New Issue
Block a user