mirror of
https://github.com/ppy/osu
synced 2024-12-12 09:58:22 +00:00
Fix chat message style for non action messages
This commit is contained in:
parent
dce577f92a
commit
3e8941f8e1
@ -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 });
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user