mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Add FindProvider
lookup function
This commit is contained in:
@ -556,5 +556,16 @@ namespace osu.Game.Skinning
|
||||
Textures?.Dispose();
|
||||
Samples?.Dispose();
|
||||
}
|
||||
|
||||
ISkin ISkin.FindProvider(Func<ISkin, bool> lookupFunction)
|
||||
{
|
||||
if (lookupFunction(this))
|
||||
return this;
|
||||
|
||||
if (!fallbackToDefault)
|
||||
return null;
|
||||
|
||||
return (legacyDefaultFallback as ISkin)?.FindProvider(lookupFunction);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user