Use ctor for default width

This commit is contained in:
smoogipoo 2020-04-08 18:23:24 +09:00
parent e6b87656ba
commit d13231eff7
2 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,6 @@ namespace osu.Game.Rulesets.Mania.Tests
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Width = 50,
Height = 0.85f,
AccentColour = Color4.OrangeRed,
Action = { Value = action },

View File

@ -42,6 +42,7 @@ namespace osu.Game.Rulesets.Mania.UI
Index = index;
RelativeSizeAxes = Axes.Y;
Width = COLUMN_WIDTH;
Drawable background = new SkinnableDrawable(new ManiaSkinComponent(ManiaSkinComponents.ColumnBackground, Index), _ => new DefaultColumnBackground())
{