mirror of
https://github.com/ppy/osu.git
synced 2025-03-04 00:42:55 +08:00
Revert "Move adjustment to LegacySkinConfiguration as a default value"
This reverts commit 18927304f1
.
This commit is contained in:
parent
18927304f1
commit
569a56eccb
@ -18,6 +18,10 @@ namespace osu.Game.Rulesets.Osu.Skinning
|
|||||||
{
|
{
|
||||||
private const float shadow_portion = 1 - (OsuLegacySkinTransformer.LEGACY_CIRCLE_RADIUS / OsuHitObject.OBJECT_RADIUS);
|
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);
|
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)
|
protected override Color4 ColourAt(float position)
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// 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.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using System.Globalization;
|
|
||||||
|
|
||||||
namespace osu.Game.Skinning
|
namespace osu.Game.Skinning
|
||||||
{
|
{
|
||||||
public class LegacySkinConfiguration : SkinConfiguration
|
public class LegacySkinConfiguration : SkinConfiguration
|
||||||
@ -14,13 +12,6 @@ namespace osu.Game.Skinning
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public decimal? LegacyVersion { get; internal set; }
|
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
|
public enum LegacySetting
|
||||||
{
|
{
|
||||||
Version,
|
Version,
|
||||||
|
Loading…
Reference in New Issue
Block a user