1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 18:07:23 +08:00

Rename class to match osu! version

This commit is contained in:
Dean Herbert 2022-09-08 19:41:04 +09:00
parent 161c54df1c
commit 4f22616860
3 changed files with 6 additions and 6 deletions

View File

@ -12,19 +12,19 @@ namespace osu.Game.Rulesets.Catch.Tests
[TestFixture]
public class TestSceneCatchTouchInput : OsuTestScene
{
private TouchInputField touchInputField = null!;
private CatchTouchInputMapper catchTouchInputMapper = null!;
[SetUpSteps]
public void SetUpSteps()
{
AddStep("create inputfield", () =>
AddStep("create input overlay", () =>
{
Child = new CatchInputManager(new CatchRuleset().RulesetInfo)
{
RelativeSizeAxes = Axes.Both,
Children = new Drawable[]
{
touchInputField = new TouchInputField
catchTouchInputMapper = new CatchTouchInputMapper
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre
@ -37,7 +37,7 @@ namespace osu.Game.Rulesets.Catch.Tests
[Test]
public void TestInputField()
{
AddStep("show inputfield", () => touchInputField.Show());
AddStep("show overlay", () => catchTouchInputMapper.Show());
}
}
}

View File

@ -16,7 +16,7 @@ using System.Collections.Generic;
namespace osu.Game.Rulesets.Catch.UI
{
public class TouchInputField : VisibilityContainer
public class CatchTouchInputMapper : VisibilityContainer
{
public enum TouchCatchAction
{

View File

@ -36,7 +36,7 @@ namespace osu.Game.Rulesets.Catch.UI
[BackgroundDependencyLoader]
private void load()
{
KeyBindingInputManager.Add(new TouchInputField());
KeyBindingInputManager.Add(new CatchTouchInputMapper());
}
protected override ReplayInputHandler CreateReplayInputHandler(Replay replay) => new CatchFramedReplayInputHandler(replay);