Esempio n. 1
0
 public void OnPointerClick(PointerEventData eventData)
 {
     if (buttonText != null)
     {
         buttonText.color = Color.gray;
     }
     ButtonClickSound.Play();
 }
Esempio n. 2
0
        public bool LeftClick(MouseState mouseState)
        {
            if (mouseState.LeftButton == ButtonState.Pressed)
            {
                ButtonClickSound.Play(0.5f);
                ButtonClickSound.Wait = true;
            }
            else if (mouseState.LeftButton == ButtonState.Released)
            {
                ButtonClickSound.Wait = false;
            }

            return(ButtonClickSound.Wait);
        }
Esempio n. 3
0
 private void Btn_Options_Click(object sender, RoutedEventArgs e)
 {
     ButtonClickSound.Play();
     this.NavigationService.Navigate(new Option());
 }
Esempio n. 4
0
 private void Btn_New_How_To_Play_Click(object sender, RoutedEventArgs e)
 {
     ButtonClickSound.Play();
     this.NavigationService.Navigate(new HowToPlay());
 }
Esempio n. 5
0
 private void Ranking_Click(object sender, RoutedEventArgs e)
 {
     ButtonClickSound.Play();
     this.NavigationService.Navigate(new Ranking());
 }
Esempio n. 6
0
 private void New_game_Click(object sender, RoutedEventArgs e)
 {
     ButtonClickSound.Play();
     this.NavigationService.Navigate(new NewGame());
 }
Esempio n. 7
0
 private void Exit_Click(object sender, RoutedEventArgs e)
 {
     ButtonClickSound.Play();
     Application.Current.Shutdown();
 }