File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
osu.Game/Screens/Backgrounds Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,13 @@ namespace osu.Game.Screens.Backgrounds
1111 public partial class BackgroundScreenBlack : BackgroundScreen
1212 {
1313 private readonly double delayBeforeBlack ;
14+ private readonly Box box ;
1415
1516 public BackgroundScreenBlack ( double delayBeforeBlack = 0 )
1617 {
1718 this . delayBeforeBlack = delayBeforeBlack ;
1819
19- InternalChild = new Box
20+ InternalChild = box = new Box
2021 {
2122 Colour = Color4 . Black ,
2223 RelativeSizeAxes = Axes . Both ,
@@ -27,7 +28,10 @@ public BackgroundScreenBlack(double delayBeforeBlack = 0)
2728
2829 public override void OnEntering ( ScreenTransitionEvent e )
2930 {
30- this . Delay ( delayBeforeBlack ) . FadeIn ( 200 ) ;
31+ this
32+ . Delay ( delayBeforeBlack )
33+ . FadeIn ( 200 )
34+ . OnComplete ( _ => box . Hide ( ) ) ;
3135 }
3236 }
3337}
You can’t perform that action at this time.
0 commit comments