mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 06:32:55 +08:00
Add source field to extra beatmap card
This commit is contained in:
parent
419fee1380
commit
3ecfaa532c
@ -97,6 +97,7 @@ namespace osu.Game.Tests.Visual.Beatmaps
|
|||||||
var longName = CreateAPIBeatmapSet(Ruleset.Value);
|
var longName = CreateAPIBeatmapSet(Ruleset.Value);
|
||||||
longName.Title = longName.TitleUnicode = "this track has an incredibly and implausibly long title";
|
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.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.HasExplicitContent = true;
|
||||||
longName.TrackId = 444;
|
longName.TrackId = 444;
|
||||||
|
|
||||||
|
@ -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
|
new Container
|
||||||
|
Loading…
Reference in New Issue
Block a user