Merge pull request #1418 from peppy/fix-volume-and-overlay

Fix VolumeControl and OnScreenDisplay being added to the wrong container
This commit is contained in:
Dan Balasescu 2017-10-24 15:24:15 +09:00 committed by GitHub
commit 24de147046

View File

@ -185,8 +185,8 @@ namespace osu.Game
},
}, overlayContent.Add);
loadComponentSingleFile(volume = new VolumeControl(), AddInternal);
loadComponentSingleFile(new OnScreenDisplay(), AddInternal);
loadComponentSingleFile(volume = new VolumeControl(), Add);
loadComponentSingleFile(new OnScreenDisplay(), Add);
//overlay elements
loadComponentSingleFile(direct = new DirectOverlay { Depth = -1 }, mainContent.Add);