DI the scrolling info rather than pass by ctor

This commit is contained in:
smoogipoo
2018-06-08 20:13:24 +09:00
parent 0fb4e6b41b
commit ca5103615d
14 changed files with 146 additions and 118 deletions

View File

@ -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
};
}
}
}