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

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

public MouseDown ( int x, int y, int whichButton ) : void
x int
y int
whichButton int
Результат void
        public void MouseDown(int x, int y, int whichButton)
        {
            if (whichButton != 1)
            {
                return;
            }
            if (_generatingGalaxy)
            {
                return;
            }
            if (_showingSelection)
            {
                _raceSelection.MouseDown(x, y);
                return;
            }
            if (_playerRaceDescription.MouseDown(x, y))
            {
                return;
            }
            if (_galaxyComboBox.MouseDown(x, y))
            {
                return;
            }
            if (_difficultyComboBox.MouseDown(x, y))
            {
                return;
            }
            if (_playerEmperorName.MouseDown(x, y))
            {
                return;
            }
            if (_playerHomeworldName.MouseDown(x, y))
            {
                return;
            }
            if (_playerRaceButton.MouseDown(x, y))
            {
                return;
            }
            for (int i = 0; i < _numericUpDownAI.Value; i++)
            {
                if (_AIRaceButtons[i].MouseDown(x, y))
                {
                    return;
                }
            }
            if (_okButton.MouseDown(x, y))
            {
                return;
            }
            if (_cancelButton.MouseDown(x, y))
            {
                return;
            }
            _numericUpDownAI.MouseDown(x, y);
        }