1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 04:32:57 +08:00

Rename touch area class to match existing usage (see taiko)

This commit is contained in:
Dean Herbert 2024-05-14 19:16:07 +08:00
parent 12e98fe55d
commit 390557634a
No known key found for this signature in database
3 changed files with 5 additions and 5 deletions

View File

@ -59,6 +59,6 @@ namespace osu.Game.Rulesets.Mania.Tests.Mods
private Drawable? getSkinnableOverlay() => this.ChildrenOfType<SkinnableDrawable>()
.SingleOrDefault(d => d.Lookup.Equals(new ManiaSkinComponentLookup(ManiaSkinComponents.TouchOverlay)));
private ManiaTouchInputOverlay.InputReceptor getReceptor(int index) => this.ChildrenOfType<ManiaTouchInputOverlay.InputReceptor>().ElementAt(index);
private ManiaTouchInputArea.InputReceptor getReceptor(int index) => this.ChildrenOfType<ManiaTouchInputArea.InputReceptor>().ElementAt(index);
}
}

View File

@ -105,7 +105,7 @@ namespace osu.Game.Rulesets.Mania.UI
TimeRange.Value = smoothTimeRange = ComputeScrollTime(configScrollSpeed.Value);
KeyBindingInputManager.Add(touchOverlay = new ManiaTouchInputOverlay
KeyBindingInputManager.Add(touchArea = new ManiaTouchInputArea
{
RelativeSizeAxes = Axes.Both
});
@ -122,7 +122,7 @@ namespace osu.Game.Rulesets.Mania.UI
private ScheduledDelegate? pendingSkinChange;
private float hitPosition;
private ManiaTouchInputOverlay touchOverlay = null!;
private ManiaTouchInputArea touchArea = null!;
private void onSkinChange()
{

View File

@ -14,7 +14,7 @@ using osuTK;
namespace osu.Game.Rulesets.Mania.UI
{
public partial class ManiaTouchInputOverlay : CompositeDrawable, ISerialisableDrawable
public partial class ManiaTouchInputArea : CompositeDrawable, ISerialisableDrawable
{
[SettingSource("Spacing", "The spacing between receptors.")]
public BindableFloat Spacing { get; } = new BindableFloat(10)
@ -35,7 +35,7 @@ namespace osu.Game.Rulesets.Mania.UI
[Resolved]
private DrawableManiaRuleset drawableRuleset { get; set; } = null!;
public ManiaTouchInputOverlay()
public ManiaTouchInputArea()
{
Anchor = Anchor.BottomCentre;
Origin = Anchor.BottomCentre;