/// <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(); }
/// <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();