Exemplo n.º 1
0
 public void enableBoard(bool isEnabled)
 {
     for (int iX = 0; iX < TILES_WIDE; iX++)
     {
         for (int iY = 0; iY < TILES_HIGH; iY++)
         {
             if (isEnabled)
             {
                 WindowControls.Register(gameBoard[iX, iY]);
             }
             else
             {
                 WindowControls.Unregister(gameBoard[iX, iY]);
             }
         }
     }
 }
Exemplo n.º 2
0
        private void terminateWindow()
        {
            for (int i = 0; i < shopItems.Length; i++)
            {
                WindowControls.Unregister(shopItems[i].button);
            }

            isShowing = false;
            tempBoard.enableBoard(true);

            for (int i = 0; i < shopItems.Length; i++)
            {
                if (images[i] != null)
                {
                    fbgfx.DestroyPNG(images[i]);
                }
            }
        }