1
0
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:
EVAST9919 2017-05-01 04:53:46 +03:00
parent e9094bac51
commit 668262ed06

View File

@ -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);
}
}
}
}