mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 15:07:44 +08:00
Change precedence of chat colouring
This commit is contained in:
parent
256d11620f
commit
925532508c
@ -193,17 +193,17 @@ namespace osu.Game.Tournament.Components
|
||||
},
|
||||
};
|
||||
|
||||
if (message.Sender.Colour != null)
|
||||
if (info.CurrentMatch.Value.Team1.Value.Players.Any(u => u.Id == message.Sender.Id))
|
||||
{
|
||||
senderText.Colour = colourBox.Colour = OsuColour.FromHex(message.Sender.Colour);
|
||||
}
|
||||
else if (info.CurrentMatch.Value.Team1.Value.Players.Any(u => u.Id == message.Sender.Id))
|
||||
{
|
||||
senderText.Colour = colourBox.Colour = red;
|
||||
colourBox.Colour = red;
|
||||
}
|
||||
else if (info.CurrentMatch.Value.Team2.Value.Players.Any(u => u.Id == message.Sender.Id))
|
||||
{
|
||||
senderText.Colour = colourBox.Colour = blue;
|
||||
colourBox.Colour = blue;
|
||||
}
|
||||
else if (message.Sender.Colour != null)
|
||||
{
|
||||
senderText.Colour = colourBox.Colour = OsuColour.FromHex(message.Sender.Colour);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user