1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 11:42:54 +08:00

remove Column field from LegacyHitTarget

This commit is contained in:
mcendu 2020-03-31 17:58:29 +08:00
parent ecc305bb63
commit d41ff8c4b4
No known key found for this signature in database
GPG Key ID: FBCD5D45163D6364
2 changed files with 3 additions and 11 deletions

View File

@ -7,14 +7,13 @@ using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Graphics.Sprites;
using osu.Game.Rulesets.Mania.UI;
using osu.Game.Rulesets.UI.Scrolling;
using osu.Game.Skinning;
using osuTK;
namespace osu.Game.Rulesets.Mania.Skinning
{
public class LegacyHitTarget : LegacyManiaColumnElement
public class LegacyHitTarget : LegacyManiaElement
{
private readonly IBindable<ScrollingDirection> direction = new Bindable<ScrollingDirection>();

View File

@ -2,7 +2,6 @@
// See the LICENCE file in the repository root for full licence text.
using System;
using JetBrains.Annotations;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics.Containers;
@ -36,13 +35,7 @@ namespace osu.Game.Rulesets.Mania.Skinning
}
}
/// <summary>
/// Retrieve a per-column skin configuration.
/// </summary>
/// <param name="skin">The skin from which configuration is retrieved.</param>
/// <param name="lookup">The value to retrieve.</param>
/// <param name="index">The index of the column to which the entry applies. Defaults to the column index.</param>
protected IBindable<T> GetPerColumnSkinConfig<T>(ISkin skin, LegacyManiaSkinConfigurationLookups lookup, int? index = null)
=> GetManiaSkinConfig<T>(skin, lookup, index ?? Column.Index);
protected override IBindable<T> GetManiaSkinConfig<T>(ISkin skin, LegacyManiaSkinConfigurationLookups lookup, int? index = null)
=> base.GetManiaSkinConfig<T>(skin, lookup, index ?? Column.Index);
}
}