mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 15:44:04 +09:00
Make match header not fade when beatmap changes
This commit is contained in:
@ -20,7 +20,8 @@ namespace osu.Game.Tests.Visual
|
|||||||
public override IReadOnlyList<Type> RequiredTypes => new[]
|
public override IReadOnlyList<Type> RequiredTypes => new[]
|
||||||
{
|
{
|
||||||
typeof(TestCaseMatch),
|
typeof(TestCaseMatch),
|
||||||
typeof(GameTypePicker)
|
typeof(GameTypePicker),
|
||||||
|
typeof(RoomSettingsOverlay)
|
||||||
};
|
};
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
|
@ -168,7 +168,6 @@ namespace osu.Game.Screens.Multi.Components
|
|||||||
new GameTypeTeamVersus(),
|
new GameTypeTeamVersus(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
Room = new Room();
|
Room = new Room();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ namespace osu.Game.Screens.Multi.Screens.Match
|
|||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Masking = true,
|
Masking = true,
|
||||||
Child = background = new UpdateableBeatmapBackgroundSprite { RelativeSizeAxes = Axes.Both }
|
Child = background = new HeaderBeatmapBackgroundSprite { RelativeSizeAxes = Axes.Both }
|
||||||
},
|
},
|
||||||
new Box
|
new Box
|
||||||
{
|
{
|
||||||
@ -175,6 +175,11 @@ namespace osu.Game.Screens.Multi.Screens.Match
|
|||||||
return base.OnMouseUp(e);
|
return base.OnMouseUp(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private class HeaderBeatmapBackgroundSprite : UpdateableBeatmapBackgroundSprite
|
||||||
|
{
|
||||||
|
protected override double FadeDuration => 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum MatchHeaderPage
|
public enum MatchHeaderPage
|
||||||
|
Reference in New Issue
Block a user