1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 15:03:13 +08:00

Fix truncating sprite text usage

This commit is contained in:
Joseph Madamba 2023-09-04 11:34:21 -07:00
parent 2fbd67cf26
commit bf71099e57
No known key found for this signature in database
GPG Key ID: 8B746C7BDDF0BD76

View File

@ -280,15 +280,14 @@ namespace osu.Game.Screens.Select
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
Children = new Drawable[] Children = new Drawable[]
{ {
TitleLabel = new OsuSpriteText TitleLabel = new TruncatingSpriteText
{ {
Shadow = true, Shadow = true,
Current = { BindTarget = titleBinding }, Current = { BindTarget = titleBinding },
Font = OsuFont.TorusAlternate.With(size: 40, weight: FontWeight.SemiBold), Font = OsuFont.TorusAlternate.With(size: 40, weight: FontWeight.SemiBold),
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
Truncate = true
}, },
ArtistLabel = new OsuSpriteText ArtistLabel = new TruncatingSpriteText
{ {
// TODO : figma design has a diffused shadow, instead of the solid one present here, not possible currently as far as i'm aware. // TODO : figma design has a diffused shadow, instead of the solid one present here, not possible currently as far as i'm aware.
Shadow = true, Shadow = true,
@ -296,7 +295,6 @@ namespace osu.Game.Screens.Select
// Not sure if this should be semi bold or medium // Not sure if this should be semi bold or medium
Font = OsuFont.Torus.With(size: 20, weight: FontWeight.SemiBold), Font = OsuFont.Torus.With(size: 20, weight: FontWeight.SemiBold),
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
Truncate = true
} }
} }
} }