mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 15:44:04 +09:00
Refactor message highlighting logic to rely on a Channel
data bindable
This commit is contained in:
@ -9,6 +9,7 @@ using Newtonsoft.Json;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Lists;
|
||||
using osu.Game.Online.API.Requests.Responses;
|
||||
using osu.Game.Overlays.Chat;
|
||||
|
||||
namespace osu.Game.Online.Chat
|
||||
{
|
||||
@ -89,6 +90,12 @@ namespace osu.Game.Online.Chat
|
||||
/// </summary>
|
||||
public Bindable<bool> Joined = new Bindable<bool>();
|
||||
|
||||
/// <summary>
|
||||
/// Signals if there is a message to highlight.
|
||||
/// This is automatically cleared by the associated <see cref="DrawableChannel"/> after highlighting.
|
||||
/// </summary>
|
||||
public Bindable<Message> HighlightedMessage = new Bindable<Message>();
|
||||
|
||||
[JsonConstructor]
|
||||
public Channel()
|
||||
{
|
||||
|
Reference in New Issue
Block a user