Exemple #1
0
 void RemovingElementsAnimation()
 {
     for (int i = 0; i < combinations.Count(); i++)
     {
         MyAnimation.OpacityAnimation(
             candies[Int32.Parse("" + combinations[i][1]), Int32.Parse("" + combinations[i][0])].img, true);
     }
 }
Exemple #2
0
        private void SwapElements(int row1, int col1, int row2, int col2, int quantity = 1)
        {
            ChangeIndexesOnly(row1, col1, row2, col2);

            if (row1 == row2)
            {
                MyAnimation.SwapTwoImages(candies[row1, col1].img, candies[row2, col2].img, true, quantity);
            }
            else if (col1 == col2)
            {
                MyAnimation.SwapTwoImages(candies[row1, col1].img, candies[row2, col2].img, false, quantity);
            }
        }
Exemple #3
0
 public void MoveImages()
 {
     for (int i = 0; i < rows; i++)
     {
         for (int j = 0; j < columns; j++)
         {
             if (NeedToMoveImage(i, j))
             {
                 MyAnimation.MoveOneImage(i, j, size, candies[i, j].img);
             }
         }
     }
 }
Exemple #4
0
 void CreateNewCandy(int row, int column)
 {
     candies[row, column].Change(rand);
     MyAnimation.OpacityAnimation(candies[row, column].img, false);
 }
Exemple #5
0
 public void ElementClicked(object sender, RoutedEventArgs e)
 {
     //анимация выделения элемента
     MyAnimation.ResizeElement(sender, size);
 }