private void ClickSoundVolume(Command c) { double temp = (Sample.DefaultVolume + 0.1) % 1.1; Sample.DefaultVolume = (float)Math.Max(0, Math.Min(temp, 1)); MainMenu.Volume = Sample.DefaultVolume; OptionMenu.Volume = Sample.DefaultVolume; c.Content = "Music Volume: " + ((int)(Sample.DefaultVolume * 100)).ToString() + "%"; }
private void ClickOptions(Command c) { MainMenu.Off(); OptionMenu.On(); OptionMenu.ResetIndex(); }
private void ClickMusicVolume(Command c) { double temp = (Music.DefaultVolume + 0.1) % 1.1; Music.DefaultVolume = (float)Math.Max(0, Math.Min(temp, 1)); Music.Volume = Music.DefaultVolume; c.Content = "Music Volume: " + ((int)(Music.DefaultVolume*100)).ToString() + "%"; }
private void ClickFullscreen(Command c) { if (XNAGame.I.Graphics.IsFullScreen) { XNAGame.I.Graphics.IsFullScreen = false; c.Content = "Fullscreen: OFF"; } else { XNAGame.I.Graphics.IsFullScreen = true; c.Content = "Fullscreen: ON"; } XNAGame.I.Graphics.ApplyChanges(); }
private void ClickChampionship(Command c) { }
private void ClickBack(Command c) { OptionMenu.Off(); MainMenu.On(); }