1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 03:22:54 +08:00

Make match header not fade when beatmap changes

This commit is contained in:
smoogipoo 2018-12-06 18:31:12 +09:00
parent 42817b98f9
commit c02150a19b
3 changed files with 8 additions and 3 deletions

View File

@ -20,7 +20,8 @@ namespace osu.Game.Tests.Visual
public override IReadOnlyList<Type> RequiredTypes => new[]
{
typeof(TestCaseMatch),
typeof(GameTypePicker)
typeof(GameTypePicker),
typeof(RoomSettingsOverlay)
};
[BackgroundDependencyLoader]

View File

@ -168,7 +168,6 @@ namespace osu.Game.Screens.Multi.Components
new GameTypeTeamVersus(),
};
Room = new Room();
}

View File

@ -46,7 +46,7 @@ namespace osu.Game.Screens.Multi.Screens.Match
{
RelativeSizeAxes = Axes.Both,
Masking = true,
Child = background = new UpdateableBeatmapBackgroundSprite { RelativeSizeAxes = Axes.Both }
Child = background = new HeaderBeatmapBackgroundSprite { RelativeSizeAxes = Axes.Both }
},
new Box
{
@ -175,6 +175,11 @@ namespace osu.Game.Screens.Multi.Screens.Match
return base.OnMouseUp(e);
}
}
private class HeaderBeatmapBackgroundSprite : UpdateableBeatmapBackgroundSprite
{
protected override double FadeDuration => 0;
}
}
public enum MatchHeaderPage