1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 14:13:21 +08:00

Merge pull request #8679 from peppy/fix-test-scene-column

Fix TestSceneColumn columns not getting a width
This commit is contained in:
Dean Herbert 2020-04-08 18:47:02 +09:00 committed by GitHub
commit 69693ecac7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -28,7 +28,9 @@ namespace osu.Game.Rulesets.Mania.Tests
{ {
typeof(Column), typeof(Column),
typeof(ColumnBackground), typeof(ColumnBackground),
typeof(ColumnHitObjectArea) typeof(ColumnHitObjectArea),
typeof(DefaultKeyArea),
typeof(DefaultHitTarget)
}; };
[Cached(typeof(IReadOnlyList<Mod>))] [Cached(typeof(IReadOnlyList<Mod>))]

View File

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