mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 16:02:55 +08:00
Rename class to match osu! version
This commit is contained in:
parent
161c54df1c
commit
4f22616860
@ -12,19 +12,19 @@ namespace osu.Game.Rulesets.Catch.Tests
|
|||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class TestSceneCatchTouchInput : OsuTestScene
|
public class TestSceneCatchTouchInput : OsuTestScene
|
||||||
{
|
{
|
||||||
private TouchInputField touchInputField = null!;
|
private CatchTouchInputMapper catchTouchInputMapper = null!;
|
||||||
|
|
||||||
[SetUpSteps]
|
[SetUpSteps]
|
||||||
public void SetUpSteps()
|
public void SetUpSteps()
|
||||||
{
|
{
|
||||||
AddStep("create inputfield", () =>
|
AddStep("create input overlay", () =>
|
||||||
{
|
{
|
||||||
Child = new CatchInputManager(new CatchRuleset().RulesetInfo)
|
Child = new CatchInputManager(new CatchRuleset().RulesetInfo)
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
touchInputField = new TouchInputField
|
catchTouchInputMapper = new CatchTouchInputMapper
|
||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre
|
Origin = Anchor.Centre
|
||||||
@ -37,7 +37,7 @@ namespace osu.Game.Rulesets.Catch.Tests
|
|||||||
[Test]
|
[Test]
|
||||||
public void TestInputField()
|
public void TestInputField()
|
||||||
{
|
{
|
||||||
AddStep("show inputfield", () => touchInputField.Show());
|
AddStep("show overlay", () => catchTouchInputMapper.Show());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@ using System.Collections.Generic;
|
|||||||
|
|
||||||
namespace osu.Game.Rulesets.Catch.UI
|
namespace osu.Game.Rulesets.Catch.UI
|
||||||
{
|
{
|
||||||
public class TouchInputField : VisibilityContainer
|
public class CatchTouchInputMapper : VisibilityContainer
|
||||||
{
|
{
|
||||||
public enum TouchCatchAction
|
public enum TouchCatchAction
|
||||||
{
|
{
|
@ -36,7 +36,7 @@ namespace osu.Game.Rulesets.Catch.UI
|
|||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
private void load()
|
||||||
{
|
{
|
||||||
KeyBindingInputManager.Add(new TouchInputField());
|
KeyBindingInputManager.Add(new CatchTouchInputMapper());
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override ReplayInputHandler CreateReplayInputHandler(Replay replay) => new CatchFramedReplayInputHandler(replay);
|
protected override ReplayInputHandler CreateReplayInputHandler(Replay replay) => new CatchFramedReplayInputHandler(replay);
|
||||||
|
Loading…
Reference in New Issue
Block a user