mirror of
https://github.com/osukey/osukey.git
synced 2025-05-17 03:27:21 +09:00
Demonstrate bug in scrolling container scene
Modify TestSceneScrollingHitObjects to showcase the effect of origin choice on object lifetime for all four scrolling directions.
This commit is contained in:
parent
033bb15500
commit
005ec4b373
@ -45,7 +45,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Child = playfields[0] = new TestPlayfield()
|
Child = playfields[0] = new TestPlayfield()
|
||||||
},
|
},
|
||||||
scrollContainers[1] = new ScrollingTestContainer(ScrollingDirection.Up)
|
scrollContainers[1] = new ScrollingTestContainer(ScrollingDirection.Down)
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Child = playfields[1] = new TestPlayfield()
|
Child = playfields[1] = new TestPlayfield()
|
||||||
@ -53,12 +53,12 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
},
|
},
|
||||||
new Drawable[]
|
new Drawable[]
|
||||||
{
|
{
|
||||||
scrollContainers[2] = new ScrollingTestContainer(ScrollingDirection.Up)
|
scrollContainers[2] = new ScrollingTestContainer(ScrollingDirection.Left)
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Child = playfields[2] = new TestPlayfield()
|
Child = playfields[2] = new TestPlayfield()
|
||||||
},
|
},
|
||||||
scrollContainers[3] = new ScrollingTestContainer(ScrollingDirection.Up)
|
scrollContainers[3] = new ScrollingTestContainer(ScrollingDirection.Right)
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Child = playfields[3] = new TestPlayfield()
|
Child = playfields[3] = new TestPlayfield()
|
||||||
@ -207,7 +207,9 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
public TestDrawableHitObject(double time)
|
public TestDrawableHitObject(double time)
|
||||||
: base(new HitObject { StartTime = time })
|
: base(new HitObject { StartTime = time })
|
||||||
{
|
{
|
||||||
Origin = Anchor.Centre;
|
Origin = Anchor.Custom;
|
||||||
|
OriginPosition = new Vector2(75 / 4.0f);
|
||||||
|
|
||||||
AutoSizeAxes = Axes.Both;
|
AutoSizeAxes = Axes.Both;
|
||||||
|
|
||||||
AddInternal(new Box { Size = new Vector2(75) });
|
AddInternal(new Box { Size = new Vector2(75) });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user