Move out into a separate method

This commit is contained in:
smoogipoo
2020-08-25 15:16:41 +09:00
parent 08078b9513
commit ab8d9be095
11 changed files with 73 additions and 48 deletions

View File

@ -66,7 +66,7 @@ namespace osu.Game.Rulesets.Catch.Skinning
if (result == null)
return null;
result.Value = result.Value.ToLegacyColour();
result.Value = LegacyColourCompatibility.DisallowZeroAlpha(result.Value);
return (IBindable<TValue>)result;
}

View File

@ -75,7 +75,7 @@ namespace osu.Game.Rulesets.Catch.Skinning
{
base.LoadComplete();
accentColour.BindValueChanged(colour => colouredSprite.Colour = colour.NewValue.ToLegacyColour(), true);
accentColour.BindValueChanged(colour => colouredSprite.Colour = LegacyColourCompatibility.DisallowZeroAlpha(colour.NewValue), true);
}
}
}