mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 23:07:26 +08:00
Applied requested changes
This commit is contained in:
parent
e9094bac51
commit
668262ed06
@ -181,13 +181,6 @@ namespace osu.Game.Screens.Play
|
||||
private readonly SpriteText artist;
|
||||
private readonly BeatmapMetadata metadata;
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(LocalisationEngine localisation)
|
||||
{
|
||||
title.Current = localisation.GetUnicodePreference(metadata.TitleUnicode, metadata.Title);
|
||||
artist.Current = localisation.GetUnicodePreference(metadata.ArtistUnicode, metadata.Artist);
|
||||
}
|
||||
|
||||
public BeatmapMetadataDisplay(WorkingBeatmap beatmap)
|
||||
{
|
||||
metadata = beatmap?.BeatmapInfo?.Metadata ?? new BeatmapMetadata();
|
||||
@ -269,6 +262,13 @@ namespace osu.Game.Screens.Play
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(LocalisationEngine localisation)
|
||||
{
|
||||
title.Current = localisation.GetUnicodePreference(metadata.TitleUnicode, metadata.Title);
|
||||
artist.Current = localisation.GetUnicodePreference(metadata.ArtistUnicode, metadata.Artist);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user