mirror of
https://github.com/ppy/osu.git
synced 2025-02-14 02:23:21 +08:00
Highlight ChatLine
username on hover
This commit is contained in:
parent
cd43e83494
commit
4084a2b066
@ -23,6 +23,7 @@ using osu.Game.Online.API.Requests.Responses;
|
||||
using osu.Game.Online.Chat;
|
||||
using osuTK;
|
||||
using osuTK.Graphics;
|
||||
using osu.Framework.Input.Events;
|
||||
|
||||
namespace osu.Game.Overlays.Chat
|
||||
{
|
||||
@ -291,6 +292,20 @@ namespace osu.Game.Overlays.Chat
|
||||
return items.ToArray();
|
||||
}
|
||||
}
|
||||
|
||||
protected override bool OnHover(HoverEvent e)
|
||||
{
|
||||
this.FadeColour(new Color4(1.4f, 1.4f, 1.4f, 1), 150, Easing.OutQuint);
|
||||
|
||||
return base.OnHover(e);
|
||||
}
|
||||
|
||||
protected override void OnHoverLost(HoverLostEvent e)
|
||||
{
|
||||
base.OnHoverLost(e);
|
||||
|
||||
this.FadeColour(Color4.White, 250, Easing.OutQuint);
|
||||
}
|
||||
}
|
||||
|
||||
private static readonly Color4[] username_colours =
|
||||
|
Loading…
Reference in New Issue
Block a user