1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-20 02:52:58 +08:00

Make messageRemoved use helper method

This commit is contained in:
Craftplacer 2019-12-16 03:26:30 +01:00
parent 0225372e83
commit 997b51b1f8

View File

@ -246,7 +246,7 @@ namespace osu.Game.Overlays.Chat
private void messageRemoved(Message removed) private void messageRemoved(Message removed)
{ {
chatLines.FirstOrDefault(c => c.Message == removed)?.FadeColour(Color4.Red, 400).FadeOut(600).Expire(); findChatLine(removed)?.FadeColour(Color4.Red, 400).FadeOut(600).Expire();
} }
private IEnumerable<ChatLine> chatLines => ChatLineFlow.Children.OfType<ChatLine>(); private IEnumerable<ChatLine> chatLines => ChatLineFlow.Children.OfType<ChatLine>();