示例#1
0
 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() + "%";
 }
示例#2
0
 private void ClickOptions(Command c)
 {
     MainMenu.Off(); OptionMenu.On(); OptionMenu.ResetIndex();
 }
示例#3
0
 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() + "%";
 }
示例#4
0
 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();
 }
示例#5
0
 private void ClickChampionship(Command c)
 {
 }
示例#6
0
 private void ClickBack(Command c)
 {
     OptionMenu.Off(); MainMenu.On();
 }