Beyond_Beyaan.Screens.FleetSpecsWindow.Draw C# (CSharp) Метод

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

public Draw ( ) : void
Результат void
        public override void Draw()
        {
            base.Draw();
            for (int i = 0; i < _maxVisible; i++)
            {
                _shipBackgrounds[i].Draw();
                _shipNameLabels[i].Draw();
                _scrapButtons[i].Draw();
                _beamBackgrounds[i].Draw();
                _beamDefLabels[i].Draw();
                _beamDefValueLabels[i].Draw();
                _missileBackgrounds[i].Draw();
                _missileDefLabels[i].Draw();
                _missileDefValueLabels[i].Draw();
                _attackBackgrounds[i].Draw();
                _attackLevelLabels[i].Draw();
                _attackLevelValueLabels[i].Draw();
                _hitPointsBackgrounds[i].Draw();
                _hitPointsLabels[i].Draw();
                _hitPointsValueLabels[i].Draw();
                _shieldBackgrounds[i].Draw();
                _shieldLabels[i].Draw();
                _shieldValueLabels[i].Draw();
                _galaxySpeedBackgrounds[i].Draw();
                _galaxySpeedLabels[i].Draw();
                _galaxySpeedValueLabels[i].Draw();
                _combatSpeedBackgrounds[i].Draw();
                _combatSpeedLabels[i].Draw();
                _combatSpeedValueLabels[i].Draw();
                _weaponsBackgrounds[i].Draw();
                _specialsBackgrounds[i].Draw();
                for (int j = 0; j < 4; j++)
                {
                    _weaponLabels[i][j].Draw();
                }
                for (int j = 0; j < 3; j++)
                {
                    _specialLabels[i][j].Draw();
                }
                _amountLabels[i].Draw();
                _amountValueLabels[i].Draw();
                _costLabels[i].Draw();
                _costValueLabels[i].Draw();
            }
            if (_previewVisible)
            {
                _shipBackground.Draw();
                GorgonLibrary.Gorgon.CurrentShader = _gameMain.ShipShader;
                _gameMain.ShipShader.Parameters["EmpireColor"].SetValue(_empireColor);
                _shipSprite.Draw(_shipPoint.X, _shipPoint.Y);
                GorgonLibrary.Gorgon.CurrentShader = null;
            }
        }

Usage Example

Пример #1
0
        public override void Draw()
        {
            base.Draw();

            int i;

            for (i = 0; i < 6; i++)
            {
                _shipNames[i].Draw();
            }
            _statusLabels[0].Draw();

            for (i = 0; i < _maxVisible; i++)
            {
                _planetBackgrounds[i].Draw();
                _planetNames[i].Draw();
                _statusLabels[i + 1].Draw();
                for (int j = 0; j < 6; j++)
                {
                    if (_shipAmountLabels[i][j].Enabled)
                    {
                        _shipAmountLabels[i][j].Draw();
                    }
                }
            }
            for (; i < 10; i++)
            {
                _planetBackgrounds[i].Draw();
            }
            _scrollBar.Draw();
            for (i = 0; i < 6; i++)
            {
                _scrapButtons[i].Draw();
            }
            _maintenanceCostBackground.Draw();
            _maintenanceLabel.Draw();
            _maintenanceAmountLabel.Draw();
            _viewSpecsButton.Draw();

            if (_fleetSpecsShowing)
            {
                _fleetSpecsWindow.Draw();
            }
        }