mirror of
https://github.com/ppy/osu
synced 2025-01-02 20:32:10 +00:00
Remove mentioning of "layer" in skin providers
`SkinSources` sounds better.
This commit is contained in:
parent
1aaad7bfd4
commit
18edbdd135
@ -52,8 +52,8 @@ namespace osu.Game.Skinning
|
||||
|
||||
private void updateSkins()
|
||||
{
|
||||
SkinLayers.Clear();
|
||||
SkinLayers.AddRange(skinManager.CurrentSkinLayers.Select(s => ruleset.CreateLegacySkinProvider(s, beatmap)));
|
||||
SkinSources.Clear();
|
||||
SkinSources.AddRange(skinManager.CurrentSkinLayers.Select(s => ruleset.CreateLegacySkinProvider(s, beatmap)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ namespace osu.Game.Skinning
|
||||
/// <summary>
|
||||
/// The list of skins provided by this <see cref="SkinProvidingContainer"/>.
|
||||
/// </summary>
|
||||
protected readonly List<ISkin> SkinLayers = new List<ISkin>();
|
||||
protected readonly List<ISkin> SkinSources = new List<ISkin>();
|
||||
|
||||
[CanBeNull]
|
||||
private ISkinSource fallbackSource;
|
||||
@ -43,7 +43,7 @@ namespace osu.Game.Skinning
|
||||
public SkinProvidingContainer(ISkin skin)
|
||||
: this()
|
||||
{
|
||||
SkinLayers.Add(skin);
|
||||
SkinSources.Add(skin);
|
||||
}
|
||||
|
||||
protected SkinProvidingContainer()
|
||||
@ -53,7 +53,7 @@ namespace osu.Game.Skinning
|
||||
|
||||
public ISkin FindProvider(Func<ISkin, bool> lookupFunction)
|
||||
{
|
||||
foreach (var skin in SkinLayers)
|
||||
foreach (var skin in SkinSources)
|
||||
{
|
||||
if (skin is ISkinSource source)
|
||||
{
|
||||
@ -74,7 +74,7 @@ namespace osu.Game.Skinning
|
||||
{
|
||||
if (AllowDrawableLookup(component))
|
||||
{
|
||||
foreach (var skin in SkinLayers)
|
||||
foreach (var skin in SkinSources)
|
||||
{
|
||||
Drawable sourceDrawable;
|
||||
if ((sourceDrawable = skin?.GetDrawableComponent(component)) != null)
|
||||
@ -89,7 +89,7 @@ namespace osu.Game.Skinning
|
||||
{
|
||||
if (AllowTextureLookup(componentName))
|
||||
{
|
||||
foreach (var skin in SkinLayers)
|
||||
foreach (var skin in SkinSources)
|
||||
{
|
||||
Texture sourceTexture;
|
||||
if ((sourceTexture = skin?.GetTexture(componentName, wrapModeS, wrapModeT)) != null)
|
||||
@ -104,7 +104,7 @@ namespace osu.Game.Skinning
|
||||
{
|
||||
if (AllowSampleLookup(sampleInfo))
|
||||
{
|
||||
foreach (var skin in SkinLayers)
|
||||
foreach (var skin in SkinSources)
|
||||
{
|
||||
ISample sourceSample;
|
||||
if ((sourceSample = skin?.GetSample(sampleInfo)) != null)
|
||||
@ -127,7 +127,7 @@ namespace osu.Game.Skinning
|
||||
{
|
||||
if (canUseSkinLookup)
|
||||
{
|
||||
foreach (var skin in SkinLayers)
|
||||
foreach (var skin in SkinSources)
|
||||
{
|
||||
IBindable<TValue> bindable;
|
||||
if ((bindable = skin?.GetConfig<TLookup, TValue>(lookup)) != null)
|
||||
|
Loading…
Reference in New Issue
Block a user