1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 18:03:11 +08:00

Add source field to extra beatmap card

This commit is contained in:
Bartłomiej Dach 2021-11-27 15:47:52 +01:00
parent 419fee1380
commit 3ecfaa532c
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497
2 changed files with 10 additions and 0 deletions

View File

@ -97,6 +97,7 @@ namespace osu.Game.Tests.Visual.Beatmaps
var longName = CreateAPIBeatmapSet(Ruleset.Value);
longName.Title = longName.TitleUnicode = "this track has an incredibly and implausibly long title";
longName.Artist = longName.ArtistUnicode = "and this artist! who would have thunk it. it's really such a long name.";
longName.Source = "wow. even the source field has an impossibly long string in it. this really takes the cake, doesn't it?";
longName.HasExplicitContent = true;
longName.TrackId = 444;

View File

@ -229,6 +229,15 @@ namespace osu.Game.Beatmaps.Drawables.Cards
},
}
},
new OsuSpriteText
{
RelativeSizeAxes = Axes.X,
Truncate = true,
Text = beatmapSet.Source,
Shadow = false,
Font = OsuFont.GetFont(size: 14, weight: FontWeight.SemiBold),
Colour = colourProvider.Content2
},
}
},
new Container