Beyond_Beyaan.Screens.PlanetsView.MouseDown C# (CSharp) Метод

MouseDown() публичный Метод

public MouseDown ( int x, int y ) : bool
x int
y int
Результат bool
        public override bool MouseDown(int x, int y)
        {
            int left = (_gameMain.ScreenWidth / 2) - 513;
            int top = (_gameMain.ScreenHeight / 2) - 250;
            if (x >= left && x < left + 1010 && y >= top && y < top + 390)
            {
                //When clicking a column, that entire row is clicked
                for (int i = 0; i < _maxVisible; i++)
                {
                    _columnCells[0][i].MouseDown(left + 1, y);
                    _columnCells[1][i].MouseDown(left + 281, y);
                    _columnCells[2][i].MouseDown(left + 371, y);
                    _columnCells[3][i].MouseDown(left + 461, y);
                    _columnCells[4][i].MouseDown(left + 541, y);
                    _columnCells[5][i].MouseDown(left + 621, y);
                    _columnCells[6][i].MouseDown(left + 701, y);
                    _columnCells[7][i].MouseDown(left + 951, y);
                }
            }
            _transferReserves.MouseDown(x, y);
            _reserveSlider.MouseDown(x, y);
            _transferSlider.MouseDown(x, y);
            return base.MouseDown(x, y);
        }