mirror of
https://github.com/ppy/osu.git
synced 2025-01-27 02:32:59 +08:00
Add comment explaining insertion of ruleset skin before default skin
Co-authored-by: Dean Herbert <pe@ppy.sh>
This commit is contained in:
parent
f598de4cdb
commit
779a1b322c
@ -89,6 +89,9 @@ namespace osu.Game.Skinning
|
||||
|
||||
int defaultSkinIndex = SkinSources.IndexOf(skinManager.DefaultSkin);
|
||||
|
||||
// Ruleset resources should be given the ability to override game-wide defaults
|
||||
// This is achieved by placing them before an instance of DefaultSkin.
|
||||
// Note that DefaultSkin may not be present in some test scenes.
|
||||
if (defaultSkinIndex >= 0)
|
||||
SkinSources.Insert(defaultSkinIndex, rulesetResourcesSkin);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user