1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-21 19:52:55 +08:00

Make hitobject tests display the column

This commit is contained in:
smoogipoo 2020-08-26 20:00:38 +09:00
parent 7a70d06342
commit e6116890af
2 changed files with 16 additions and 12 deletions

View File

@ -22,18 +22,22 @@ namespace osu.Game.Rulesets.Mania.Tests.Skinning
[Cached] [Cached]
private readonly Column column; private readonly Column column;
public ColumnTestContainer(int column, ManiaAction action) public ColumnTestContainer(int column, ManiaAction action, bool showColumn = false)
{ {
this.column = new Column(column) InternalChildren = new[]
{ {
Action = { Value = action }, this.column = new Column(column)
AccentColour = Color4.Orange, {
ColumnType = column % 2 == 0 ? ColumnType.Even : ColumnType.Odd Action = { Value = action },
}; AccentColour = Color4.Orange,
ColumnType = column % 2 == 0 ? ColumnType.Even : ColumnType.Odd,
InternalChild = content = new ManiaInputManager(new ManiaRuleset().RulesetInfo, 4) Alpha = showColumn ? 1 : 0
{ },
RelativeSizeAxes = Axes.Both content = new ManiaInputManager(new ManiaRuleset().RulesetInfo, 4)
{
RelativeSizeAxes = Axes.Both
},
this.column.TopLevelContainer.CreateProxy()
}; };
} }
} }

View File

@ -27,7 +27,7 @@ namespace osu.Game.Rulesets.Mania.Tests.Skinning
Direction = FillDirection.Horizontal, Direction = FillDirection.Horizontal,
Children = new Drawable[] Children = new Drawable[]
{ {
new ColumnTestContainer(0, ManiaAction.Key1) new ColumnTestContainer(0, ManiaAction.Key1, true)
{ {
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.Centre, Origin = Anchor.Centre,
@ -45,7 +45,7 @@ namespace osu.Game.Rulesets.Mania.Tests.Skinning
})); }));
}) })
}, },
new ColumnTestContainer(1, ManiaAction.Key2) new ColumnTestContainer(1, ManiaAction.Key2, true)
{ {
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.Centre, Origin = Anchor.Centre,