Revert "Move adjustment to LegacySkinConfiguration as a default value"

This reverts commit 18927304f1.
This commit is contained in:
Salman Ahmed 2020-09-04 13:33:23 +03:00
parent 18927304f1
commit 569a56eccb
2 changed files with 4 additions and 9 deletions

View File

@ -18,6 +18,10 @@ private class LegacyDrawableSliderPath : DrawableSliderPath
{
private const float shadow_portion = 1 - (OsuLegacySkinTransformer.LEGACY_CIRCLE_RADIUS / OsuHitObject.OBJECT_RADIUS);
protected new float CalculatedBorderPortion
// Roughly matches osu!stable's slider border portions.
=> base.CalculatedBorderPortion * 0.77f;
public new Color4 AccentColour => new Color4(base.AccentColour.R, base.AccentColour.G, base.AccentColour.B, base.AccentColour.A * 0.70f);
protected override Color4 ColourAt(float position)

View File

@ -1,8 +1,6 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Globalization;
namespace osu.Game.Skinning
{
public class LegacySkinConfiguration : SkinConfiguration
@ -14,13 +12,6 @@ public class LegacySkinConfiguration : SkinConfiguration
/// </summary>
public decimal? LegacyVersion { get; internal set; }
public LegacySkinConfiguration()
{
// Roughly matches osu!stable's slider border portions.
// Can't use nameof(SliderBorderSize) as the lookup enum is declared in the osu! ruleset.
ConfigDictionary["SliderBorderSize"] = 0.77f.ToString(CultureInfo.InvariantCulture);
}
public enum LegacySetting
{
Version,