mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
Expose default SkinManager
providers for use in RulesetSkinProvidingContainer
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using System.Linq;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
@ -53,7 +52,13 @@ namespace osu.Game.Skinning
|
||||
private void updateSkins()
|
||||
{
|
||||
SkinSources.Clear();
|
||||
SkinSources.AddRange(skinManager.CurrentSkinLayers.Select(s => ruleset.CreateLegacySkinProvider(s, beatmap)));
|
||||
|
||||
SkinSources.Add(ruleset.CreateLegacySkinProvider(skinManager.CurrentSkin.Value, beatmap));
|
||||
|
||||
if (skinManager.CurrentSkin.Value is LegacySkin)
|
||||
SkinSources.Add(ruleset.CreateLegacySkinProvider(skinManager.DefaultLegacySkin, beatmap));
|
||||
|
||||
SkinSources.Add(ruleset.CreateLegacySkinProvider(skinManager.DefaultSkin, beatmap));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user