mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 10:33:30 +08:00
Move adjustment to LegacySkinConfiguration as a default value
This commit is contained in:
parent
5180d71fd9
commit
18927304f1
@ -18,10 +18,6 @@ namespace osu.Game.Rulesets.Osu.Skinning
|
||||
{
|
||||
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)
|
||||
|
@ -1,6 +1,8 @@
|
||||
// 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
|
||||
@ -12,6 +14,13 @@ namespace osu.Game.Skinning
|
||||
/// </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,
|
||||
|
Loading…
Reference in New Issue
Block a user