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

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

public Draw ( ) : void
Результат void
        public override void Draw()
        {
            base.Draw();
            _empireBackground.Draw();
            _empireNameLabel.Draw();
            _previousFleet.Draw();
            _nextFleet.Draw();
            for (int i = 0; i < _maxVisible; i++)
            {
                _shipBackground[i].Draw();
                _shipLabels[i].Draw();
                if (!_isTransports)
                {
                    _shipSliders[i].Draw();
                }
            }
            if (_showingPreview)
            {
                _shipPreview.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 void DrawScreen()
        {
            DrawGalaxy();

            Empire     currentEmpire      = _gameMain.EmpireManager.CurrentEmpire;
            StarSystem selectedSystem     = currentEmpire.SelectedSystem;
            FleetGroup selectedFleetGroup = currentEmpire.SelectedFleetGroup;

            _taskBar.Draw();

            if (selectedFleetGroup != null)
            {
                _fleetView.Draw();
            }
            if (selectedSystem != null)
            {
                _systemView.Draw();
            }
            if (_windowShowing != null)
            {
                _windowShowing.Draw();
            }
        }