Exemple #1
0
        public override void OnEntering(IScreen last)
        {
            base.OnEntering(last);

            loadNewPlayer();

            content.ScaleTo(0.7f);
            Background?.FadeColour(Color4.White, 800, Easing.OutQuint);

            contentIn();

            info.Delay(750).FadeIn(500);
            this.Delay(1800).Schedule(pushWhenLoaded);

            if (!muteWarningShownOnce.Value)
            {
                //Checks if the notification has not been shown yet and also if master volume is muted, track/music volume is muted or if the whole game is muted.
                if (volumeOverlay?.IsMuted.Value == true || audioManager.Volume.Value <= audioManager.Volume.MinValue || audioManager.VolumeTrack.Value <= audioManager.VolumeTrack.MinValue)
                {
                    notificationOverlay?.Post(new MutedNotification());
                    muteWarningShownOnce.Value = true;
                }
            }
        }
Exemple #2
0
 private void contentIn()
 {
     content.ScaleTo(1, 650, Easing.OutQuint);
     content.FadeInFromZero(400);
 }