Esempio n. 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);
        }
Esempio n. 2
0
 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));
 }
Esempio n. 3
0
        public override bool MouseHover(int x, int y, float frameDeltaTime)
        {
            bool result = _techDescription.MouseHover(x, y, frameDeltaTime);

            for (int i = 0; i < _maxVisible; i++)
            {
                result = _availableTechsToResearchButtons[i].MouseHover(x, y, frameDeltaTime) || result;
            }
            if (_scrollBar.MouseHover(x, y, frameDeltaTime))
            {
                RefreshTechButtons();
                result = true;
            }
            return(result);
        }