1
0
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:
Dean Herbert 2018-11-18 12:39:17 +09:00
parent 256d11620f
commit 925532508c

View File

@ -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);
}
}
}