Avoid using load to construct the drawable hierarchy whereever possible.

This commit is contained in:
Thomas Müller
2016-11-12 18:34:36 +01:00
parent 16dc74df5b
commit ac99e2d488
21 changed files with 159 additions and 194 deletions

View File

@ -80,8 +80,12 @@ namespace osu.Game
Audio.VolumeTrack.Weld(Config.GetBindable<double>(OsuConfig.VolumeMusic));
PlayMode = Config.GetBindable<PlayMode>(OsuConfig.PlayMode);
}
protected override void LoadComplete()
{
base.LoadComplete();
//todo: move to constructor or LoadComplete.
Add(new Drawable[] {
new VolumeControlReceptor
{