mirror of
https://github.com/ppy/osu
synced 2024-12-27 01:12:45 +00:00
Add scrolling direction toggle for mania selection blueprint test scene
This commit is contained in:
parent
403aa433cf
commit
a431b4eeda
@ -30,10 +30,10 @@ namespace osu.Game.Rulesets.Mania.Tests.Editor
|
|||||||
set => scrollingTestContainer.Direction = value;
|
set => scrollingTestContainer.Direction = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected ManiaSelectionBlueprintTestScene()
|
protected ManiaSelectionBlueprintTestScene(int columns)
|
||||||
{
|
{
|
||||||
var stageDefinitions = new List<StageDefinition> { new StageDefinition { Columns = 1 } };
|
var stageDefinitions = new List<StageDefinition> { new StageDefinition { Columns = columns } };
|
||||||
base.Content.Child = scrollingTestContainer = new ScrollingTestContainer(ScrollingDirection.Down)
|
base.Content.Child = scrollingTestContainer = new ScrollingTestContainer(ScrollingDirection.Up)
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
@ -48,6 +48,8 @@ namespace osu.Game.Rulesets.Mania.Tests.Editor
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
AddToggleStep("Downward scroll", b => Direction = b ? ScrollingDirection.Down : ScrollingDirection.Up);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,8 +12,16 @@ namespace osu.Game.Rulesets.Mania.Tests.Editor
|
|||||||
public class TestSceneHoldNoteSelectionBlueprint : ManiaSelectionBlueprintTestScene
|
public class TestSceneHoldNoteSelectionBlueprint : ManiaSelectionBlueprintTestScene
|
||||||
{
|
{
|
||||||
public TestSceneHoldNoteSelectionBlueprint()
|
public TestSceneHoldNoteSelectionBlueprint()
|
||||||
|
: base(4)
|
||||||
{
|
{
|
||||||
var holdNote = new HoldNote { Column = 0, Duration = 500 };
|
for (int i = 0; i < 4; i++)
|
||||||
|
{
|
||||||
|
var holdNote = new HoldNote
|
||||||
|
{
|
||||||
|
Column = i,
|
||||||
|
StartTime = i * 100,
|
||||||
|
Duration = 500
|
||||||
|
};
|
||||||
holdNote.ApplyDefaults(new ControlPointInfo(), new BeatmapDifficulty());
|
holdNote.ApplyDefaults(new ControlPointInfo(), new BeatmapDifficulty());
|
||||||
|
|
||||||
var drawableHitObject = new DrawableHoldNote(holdNote);
|
var drawableHitObject = new DrawableHoldNote(holdNote);
|
||||||
@ -21,4 +29,5 @@ namespace osu.Game.Rulesets.Mania.Tests.Editor
|
|||||||
AddBlueprint(new HoldNoteSelectionBlueprint(holdNote), drawableHitObject);
|
AddBlueprint(new HoldNoteSelectionBlueprint(holdNote), drawableHitObject);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,8 +12,15 @@ namespace osu.Game.Rulesets.Mania.Tests.Editor
|
|||||||
public class TestSceneNoteSelectionBlueprint : ManiaSelectionBlueprintTestScene
|
public class TestSceneNoteSelectionBlueprint : ManiaSelectionBlueprintTestScene
|
||||||
{
|
{
|
||||||
public TestSceneNoteSelectionBlueprint()
|
public TestSceneNoteSelectionBlueprint()
|
||||||
|
: base(4)
|
||||||
{
|
{
|
||||||
var note = new Note { Column = 0 };
|
for (int i = 0; i < 4; i++)
|
||||||
|
{
|
||||||
|
var note = new Note
|
||||||
|
{
|
||||||
|
Column = i,
|
||||||
|
StartTime = i * 200,
|
||||||
|
};
|
||||||
note.ApplyDefaults(new ControlPointInfo(), new BeatmapDifficulty());
|
note.ApplyDefaults(new ControlPointInfo(), new BeatmapDifficulty());
|
||||||
|
|
||||||
var drawableHitObject = new DrawableNote(note);
|
var drawableHitObject = new DrawableNote(note);
|
||||||
@ -21,4 +28,5 @@ namespace osu.Game.Rulesets.Mania.Tests.Editor
|
|||||||
AddBlueprint(new NoteSelectionBlueprint(note), drawableHitObject);
|
AddBlueprint(new NoteSelectionBlueprint(note), drawableHitObject);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user