1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-14 00:03:21 +08:00

Remove refactor in DrawableChannel

This commit is contained in:
Craftplacer 2020-01-19 17:20:54 +01:00
parent 8a9c90c5e6
commit 32c2023517

View File

@ -150,15 +150,13 @@ namespace osu.Game.Overlays.Chat
private void messageRemoved(Message removed)
{
findChatLine(removed)?.FadeColour(Color4.Red, 400).FadeOut(600).Expire();
chatLines.FirstOrDefault(c => c.Message == removed)?.FadeColour(Color4.Red, 400).FadeOut(600).Expire();
}
private IEnumerable<ChatLine> chatLines => ChatLineFlow.Children.OfType<ChatLine>();
private void scrollToEnd() => ScheduleAfterChildren(() => scroll.ScrollToEnd());
private ChatLine findChatLine(Message message) => chatLines.FirstOrDefault(c => c.Message == message);
public class DaySeparator : Container
{
public float TextSize