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:
parent
42817b98f9
commit
c02150a19b
@ -20,7 +20,8 @@ namespace osu.Game.Tests.Visual
|
||||
public override IReadOnlyList<Type> RequiredTypes => new[]
|
||||
{
|
||||
typeof(TestCaseMatch),
|
||||
typeof(GameTypePicker)
|
||||
typeof(GameTypePicker),
|
||||
typeof(RoomSettingsOverlay)
|
||||
};
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
|
@ -168,7 +168,6 @@ namespace osu.Game.Screens.Multi.Components
|
||||
new GameTypeTeamVersus(),
|
||||
};
|
||||
|
||||
|
||||
Room = new Room();
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user