mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
DI the scrolling info rather than pass by ctor
This commit is contained in:
@ -84,7 +84,7 @@ namespace osu.Game.Rulesets.Mania.Tests
|
||||
}
|
||||
}
|
||||
|
||||
private Column createColumn(ScrollingDirection direction, ManiaAction action)
|
||||
private Drawable createColumn(ScrollingDirection direction, ManiaAction action)
|
||||
{
|
||||
var column = new Column(direction)
|
||||
{
|
||||
@ -97,7 +97,15 @@ namespace osu.Game.Rulesets.Mania.Tests
|
||||
};
|
||||
|
||||
columns.Add(column);
|
||||
return column;
|
||||
|
||||
return new ScrollingTestContainer(new ScrollingInfo(direction))
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
AutoSizeAxes = Axes.X,
|
||||
RelativeSizeAxes = Axes.Y,
|
||||
Child = column
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user