Fix chat message style for non action messages

This commit is contained in:
MrTheMake 2017-09-22 11:35:07 +02:00
parent dce577f92a
commit 3e8941f8e1

View File

@ -213,7 +213,11 @@ namespace osu.Game.Overlays.Chat
contentFlow.Clear(); contentFlow.Clear();
if (message.IsAction) if (message.IsAction)
contentFlow.AddText("[", sprite => sprite.Padding = new MarginPadding { Right = action_padding }); contentFlow.AddText("[", sprite => sprite.Padding = new MarginPadding { Right = action_padding });
contentFlow.AddText(message.Content, sprite => sprite.Font = @"Exo2.0-MediumItalic" ); contentFlow.AddText(message.Content, sprite =>
{
if (message.IsAction)
sprite.Font = @"Exo2.0-MediumItalic";
});
if (message.IsAction) if (message.IsAction)
contentFlow.AddText("]", sprite => sprite.Padding = new MarginPadding { Left = action_padding }); contentFlow.AddText("]", sprite => sprite.Padding = new MarginPadding { Left = action_padding });
} }