Beyond_Beyaan.Screens.RaceSelection.MouseHover C# (CSharp) Метод

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

public MouseHover ( int x, int y, float frameDeltaTime ) : bool
x int
y int
frameDeltaTime float
Результат bool
        public override bool MouseHover(int x, int y, float frameDeltaTime)
        {
            _okButton.MouseHover(x, y, frameDeltaTime);
            _raceDescription.MouseHover(x, y, frameDeltaTime);
            for (int i = 0; i < _maxVisible; i++)
            {
                _raceButtons[i].MouseHover(x, y, frameDeltaTime);
            }
            return base.MouseHover(x, y, frameDeltaTime);
        }

Usage Example

Пример #1
0
        public void Update(int x, int y, float frameDeltaTime)
        {
            if (_generatingGalaxy)
            {
                return;
            }
            if (_showingSelection)
            {
                _raceSelection.MouseHover(x, y, frameDeltaTime);
                return;
            }
            _playerEmperorName.Update(frameDeltaTime);
            _playerHomeworldName.Update(frameDeltaTime);
            _galaxyComboBox.MouseHover(x, y, frameDeltaTime);
            _difficultyComboBox.MouseHover(x, y, frameDeltaTime);
            _playerRaceButton.MouseHover(x, y, frameDeltaTime);

            for (int i = 0; i < _numericUpDownAI.Value; i++)
            {
                _AIRaceButtons[i].MouseHover(x, y, frameDeltaTime);
            }

            _numericUpDownAI.MouseHover(x, y, frameDeltaTime);
            _playerRaceDescription.MouseHover(x, y, frameDeltaTime);
            _okButton.MouseHover(x, y, frameDeltaTime);
            _cancelButton.MouseHover(x, y, frameDeltaTime);
        }