mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 12:57:36 +08:00
Make source manipulation methods protected
This commit is contained in:
parent
b4240d3ca4
commit
1232925f93
@ -64,7 +64,7 @@ namespace osu.Game.Skinning
|
||||
RelativeSizeAxes = Axes.Both;
|
||||
}
|
||||
|
||||
public void AddSource(ISkin skin)
|
||||
protected void AddSource(ISkin skin)
|
||||
{
|
||||
skinSources.Add(skin, new DisableableSkinSource(skin, this));
|
||||
|
||||
@ -72,7 +72,7 @@ namespace osu.Game.Skinning
|
||||
source.SourceChanged += anySourceChanged;
|
||||
}
|
||||
|
||||
public void RemoveSource(ISkin skin)
|
||||
protected void RemoveSource(ISkin skin)
|
||||
{
|
||||
skinSources.Remove(skin);
|
||||
|
||||
@ -80,7 +80,7 @@ namespace osu.Game.Skinning
|
||||
source.SourceChanged += anySourceChanged;
|
||||
}
|
||||
|
||||
public void ResetSources()
|
||||
protected void ResetSources()
|
||||
{
|
||||
foreach (var skin in AllSources.ToArray())
|
||||
RemoveSource(skin);
|
||||
|
Loading…
Reference in New Issue
Block a user