Use AddInternal instead of AddTopLevel.

This commit is contained in:
Thomas Müller
2016-10-09 11:56:41 +02:00
committed by Dean Herbert
parent bcb5a02221
commit dd04b33232
4 changed files with 18 additions and 18 deletions

View File

@ -22,18 +22,19 @@ namespace osu.Game.Graphics.UserInterface
set
{
foreach (var k in value)
AddKey(k);
addKey(k);
Children = value;
}
}
public void AddKey(KeyCounter key)
private void addKey(KeyCounter key)
{
counters.Add(key);
key.IsCounting = this.IsCounting;
key.FadeTime = this.FadeTime;
key.KeyDownTextColor = this.KeyDownTextColor;
key.KeyUpTextColor = this.KeyUpTextColor;
base.Add(key);
key.IsCounting = IsCounting;
key.FadeTime = FadeTime;
key.KeyDownTextColor = KeyDownTextColor;
key.KeyUpTextColor = KeyUpTextColor;
}
public void ResetCount()