mirror of
https://github.com/ppy/osu.git
synced 2026-05-13 19:54:15 +08:00
Show chat during ranked play intro screen (#37657)
Maybe code-wise it looks a little bit hacky, but it works?
This commit is contained in:
committed by
GitHub
Unverified
parent
7f5f368dea
commit
4ffc08157c
@@ -14,6 +14,7 @@ using osu.Game.Online.API;
|
||||
using osu.Game.Online.API.Requests.Responses;
|
||||
using osu.Game.Online.Multiplayer;
|
||||
using osu.Game.Online.Multiplayer.MatchTypes.RankedPlay;
|
||||
using osu.Game.Screens.OnlinePlay.Matchmaking.RankedPlay.Components;
|
||||
|
||||
namespace osu.Game.Screens.OnlinePlay.Matchmaking.RankedPlay.Intro
|
||||
{
|
||||
@@ -33,6 +34,9 @@ namespace osu.Game.Screens.OnlinePlay.Matchmaking.RankedPlay.Intro
|
||||
[Resolved]
|
||||
private IAPIProvider api { get; set; } = null!;
|
||||
|
||||
[Resolved]
|
||||
private RankedPlayChatDisplay? chat { get; set; }
|
||||
|
||||
private Sample? windupSample;
|
||||
private Sample? impactSample;
|
||||
private Sample? swooshSample;
|
||||
@@ -96,7 +100,11 @@ namespace osu.Game.Screens.OnlinePlay.Matchmaking.RankedPlay.Intro
|
||||
Scheduler.AddDelayed(() => swooshSample?.Play(), impactDelay + 3200);
|
||||
}
|
||||
|
||||
Scheduler.AddDelayed(() => CornerPieceVisibility.Value = Visibility.Visible, delay);
|
||||
Scheduler.AddDelayed(() =>
|
||||
{
|
||||
CornerPieceVisibility.Value = Visibility.Visible;
|
||||
chat?.Show();
|
||||
}, delay);
|
||||
|
||||
starRatingAnimation.Play(ref delay, (float)starRating);
|
||||
}
|
||||
|
||||
@@ -92,7 +92,6 @@ namespace osu.Game.Screens.OnlinePlay.Matchmaking.RankedPlay
|
||||
|
||||
private readonly Container stageOverlayContainer;
|
||||
private readonly Container<RankedPlaySubScreen> screenContainer;
|
||||
private readonly RankedPlayChatDisplay chat;
|
||||
|
||||
private RankedPlayBottomOrnament ornament = null!;
|
||||
private IDisposable? ornamentOverlayRegistration;
|
||||
@@ -104,6 +103,9 @@ namespace osu.Game.Screens.OnlinePlay.Matchmaking.RankedPlay
|
||||
private readonly Bindable<Visibility> cornerPieceVisibility = new Bindable<Visibility>();
|
||||
private readonly Bindable<bool> showBeatmapBackground = new Bindable<bool>();
|
||||
|
||||
[Cached]
|
||||
private readonly RankedPlayChatDisplay chat;
|
||||
|
||||
[Cached]
|
||||
private readonly RankedPlayMatchInfo matchInfo;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user