예제 #1
0
        /// <summary>
        ///     Called when the background of the current map has been blurred.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private static void OnBackgroundBlurred(object sender, BackgroundBlurredEventArgs e)
        {
            if (e.Map != MapManager.Selected.Value && MapManager.GetBackgroundPath(e.Map) != MapManager.GetBackgroundPath(MapManager.Selected.Value))
            {
                return;
            }

            BackgroundHelper.Background.Image = e.Texture;
            BackgroundHelper.FadeIn();
        }
예제 #2
0
 /// <summary>
 ///     Called after a background has been loaded and blurred.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OnBackgroundBlurred(object sender, BackgroundBlurredEventArgs e) => HandleBackgroundChange();