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

RefreshRaceLabels() приватный Метод

private RefreshRaceLabels ( ) : void
Результат void
        private void RefreshRaceLabels()
        {
            for (int i = 0; i < _maxVisible; i++)
            {
                _raceButtons[i].Selected = false;
                if (i + _raceScrollBar.TopIndex == 0)
                {
                    //This is the random race selection
                    _raceButtons[i].SetText("Random Race");
                    if (_whichRaceSelected == null)
                    {
                        _raceButtons[i].Selected = true;
                    }
                }
                else
                {
                    _raceButtons[i].SetText(_raceManager.Races[i - 1 + _raceScrollBar.TopIndex].RaceName);
                    if (_whichRaceSelected == _raceManager.Races[i - 1 + _raceScrollBar.TopIndex])
                    {
                        _raceButtons[i].Selected = true;
                    }
                }
            }
        }