Adjust sprite texts in-line with framework changes

This commit is contained in:
smoogipoo
2019-02-12 13:04:46 +09:00
parent e174fa2d3e
commit a2aa3ec5cb
140 changed files with 424 additions and 514 deletions

View File

@ -87,9 +87,8 @@ namespace osu.Game.Overlays.Chat
Drawable effectedUsername = username = new OsuSpriteText
{
Font = @"Exo2.0-BoldItalic",
Colour = hasBackground ? customUsernameColour : username_colours[message.Sender.Id % username_colours.Length],
TextSize = TextSize,
Font = OsuFont.GetFont(size: TextSize, weight: FontWeight.Bold, italics: true)
};
if (hasBackground)
@ -138,9 +137,7 @@ namespace osu.Game.Overlays.Chat
{
Anchor = Anchor.CentreLeft,
Origin = Anchor.CentreLeft,
Font = @"Exo2.0-SemiBold",
FixedWidth = true,
TextSize = TextSize * 0.75f,
Font = OsuFont.GetFont(size: TextSize * 0.75f, weight: FontWeight.Bold, fixedWidth: true)
},
new MessageSender(message.Sender)
{
@ -162,13 +159,13 @@ namespace osu.Game.Overlays.Chat
{
if (Message.IsAction)
{
t.Font = @"Exo2.0-MediumItalic";
t.Font = OsuFont.GetFont(weight: FontWeight.Medium, italics: true);
if (senderHasBackground)
t.Colour = OsuColour.FromHex(message.Sender.Colour);
}
t.TextSize = TextSize;
t.Font = OsuFont.GetFont(t.Font, size: TextSize);
})
{
AutoSizeAxes = Axes.Y,