public override void Update(IEnumerable <Entity> entities) { foreach (var slider in entities.OfType <Slider>()) { if (slider.State.DragDone) { MainMenu.InvokeSettingsChanged(); } } }
private void AddBackButton() { var backButton = new InteractiveButton(menuTheme, new Rectangle(0.3f, ScreenSpace.Current.Bottom - 0.2f, 0.4f, 0.15f)); backButton.Clicked += () => { Hide(); MainMenu.InvokeSettingsChanged(); if (!parent.BackSound.IsAnyInstancePlaying) { parent.BackSound.Play(); } parent.Show(); }; Add(backButton); }