Exemplo n.º 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);
     }
 }
Exemplo n.º 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);
            }
        }
Exemplo n.º 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);
             }
         }
     }
 }
Exemplo n.º 4
0
 void CreateNewCandy(int row, int column)
 {
     candies[row, column].Change(rand);
     MyAnimation.OpacityAnimation(candies[row, column].img, false);
 }
Exemplo n.º 5
0
 public void ElementClicked(object sender, RoutedEventArgs e)
 {
     //анимация выделения элемента
     MyAnimation.ResizeElement(sender, size);
 }