Initial commit

This commit is contained in:
Craftplacer 2020-05-12 05:49:35 +02:00
parent d5ae8f5ef4
commit a86c7f478c
1 changed files with 8 additions and 2 deletions

View File

@ -91,7 +91,7 @@ public class OsuGame : OsuGameBase, IKeyBindingHandler<GlobalAction>
protected BackButton BackButton;
protected SettingsPanel Settings;
protected SettingsOverlay Settings;
private VolumeOverlay volume;
private OsuLogo osuLogo;
@ -767,11 +767,17 @@ private void forwardLoggedErrorsToNotifications()
private Task asyncLoadStream;
/// <summary>
/// Schedules loading the provided <paramref name="d"/> in a single file.
/// </summary>
/// <param name="d">The component to load.</param>
/// <param name="add">The method to invoke for adding the component.</param>
/// <param name="cache">Whether to cache the component as type <typeparamref name="T"/> into the game dependencies before any scheduling.</param>
private T loadComponentSingleFile<T>(T d, Action<T> add, bool cache = false)
where T : Drawable
{
if (cache)
dependencies.Cache(d);
dependencies.CacheAs(d);
if (d is OverlayContainer overlay)
overlays.Add(overlay);