mirror of
https://github.com/ppy/osu.git
synced 2025-02-16 05:52:55 +08:00
Remove refactor in DrawableChannel
This commit is contained in:
parent
8a9c90c5e6
commit
32c2023517
@ -150,15 +150,13 @@ namespace osu.Game.Overlays.Chat
|
|||||||
|
|
||||||
private void messageRemoved(Message removed)
|
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 IEnumerable<ChatLine> chatLines => ChatLineFlow.Children.OfType<ChatLine>();
|
||||||
|
|
||||||
private void scrollToEnd() => ScheduleAfterChildren(() => scroll.ScrollToEnd());
|
private void scrollToEnd() => ScheduleAfterChildren(() => scroll.ScrollToEnd());
|
||||||
|
|
||||||
private ChatLine findChatLine(Message message) => chatLines.FirstOrDefault(c => c.Message == message);
|
|
||||||
|
|
||||||
public class DaySeparator : Container
|
public class DaySeparator : Container
|
||||||
{
|
{
|
||||||
public float TextSize
|
public float TextSize
|
||||||
|
Loading…
Reference in New Issue
Block a user