mirror of
https://github.com/ppy/osu
synced 2024-12-25 00:02:48 +00:00
Fix difficulty name overflow in score panel
This commit is contained in:
parent
86b685f7e4
commit
ef5d601f67
@ -96,6 +96,7 @@ namespace osu.Game.Tests.Visual.Ranking
|
|||||||
beatmap.Metadata.Author = author;
|
beatmap.Metadata.Author = author;
|
||||||
beatmap.Metadata.Title = "Verrrrrrrrrrrrrrrrrrry looooooooooooooooooooooooong beatmap title";
|
beatmap.Metadata.Title = "Verrrrrrrrrrrrrrrrrrry looooooooooooooooooooooooong beatmap title";
|
||||||
beatmap.Metadata.Artist = "Verrrrrrrrrrrrrrrrrrry looooooooooooooooooooooooong beatmap artist";
|
beatmap.Metadata.Artist = "Verrrrrrrrrrrrrrrrrrry looooooooooooooooooooooooong beatmap artist";
|
||||||
|
beatmap.DifficultyName = "Verrrrrrrrrrrrrrrrrrry looooooooooooooooooooooooong difficulty name";
|
||||||
|
|
||||||
return beatmap;
|
return beatmap;
|
||||||
}
|
}
|
||||||
|
@ -159,6 +159,8 @@ namespace osu.Game.Screens.Ranking.Expanded
|
|||||||
Origin = Anchor.TopCentre,
|
Origin = Anchor.TopCentre,
|
||||||
Text = beatmap.DifficultyName,
|
Text = beatmap.DifficultyName,
|
||||||
Font = OsuFont.Torus.With(size: 16, weight: FontWeight.SemiBold),
|
Font = OsuFont.Torus.With(size: 16, weight: FontWeight.SemiBold),
|
||||||
|
MaxWidth = ScorePanel.EXPANDED_WIDTH - padding * 2,
|
||||||
|
Truncate = true,
|
||||||
},
|
},
|
||||||
new OsuTextFlowContainer(s => s.Font = OsuFont.Torus.With(size: 12))
|
new OsuTextFlowContainer(s => s.Font = OsuFont.Torus.With(size: 12))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user