public override void Draw()
        {
            base.Draw();

            _saveGameListBackground.Draw();

            for (int i = 0; i < _buttons.Length; i++)
            {
                _buttons[i].Draw();
            }

            for (int i = 0; i < _maxVisible; i++)
            {
                _saveGameButtons[i].Draw();
            }

            _scrollBar.Draw();

            if (_promptShowing)
            {
                _saveGameNamePromptBackground.Draw();
                _saveGameNamePromptInstructionLabel.Draw();
                _saveGameNameField.Draw();
            }
        }
Exemple #2
0
 public override void Draw()
 {
     if (!_colonizing)
     {
         base.Draw();
         _instructionLabel.Draw();
         for (int i = 0; i < _maxShips; i++)
         {
             _shipButtons[i].Draw();
         }
         _systemNameLabel.Draw();
         _starSystem.Planets[0].SmallSprite.Draw(_xPos + 285, _yPos + 80);
         _cancelButton.Draw();
         _colonizeButton.Draw();
     }
     else
     {
         _groundViewBackground.Draw();
         _groundView.Draw(_gameMain.ScreenWidth / 2 - 400, _gameMain.ScreenHeight / 2 - 300);
         _landingShip.Draw(_gameMain.ScreenWidth / 2 + 50, _landingShipPos);
         if (_showingText)
         {
             _nameBackground.Draw();
             _nameTextBox.Draw();
         }
     }
 }
Exemple #3
0
 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;
     }
 }
Exemple #4
0
        public void DrawScreen()
        {
            for (int i = 0; i < _gameMain.ScreenWidth; i += (int)_nebulaBackground.Width)
            {
                for (int j = 0; j < _gameMain.ScreenHeight; j += (int)_nebulaBackground.Height)
                {
                    _nebulaBackground.Draw(i, j);
                }
            }
            _background.Draw();
            _playerBackground.Draw();
            _playerInfoBackground.Draw();
            for (int i = 0; i < _playerLabels.Length; i++)
            {
                _playerLabels[i].Draw();
            }
            _playerRaceButton.Draw();
            _raceSprites[0].Draw(_xPos + 350, _yPos + 51);
            _playerRaceDescription.Draw();
            _playerEmperorName.Draw();
            _playerHomeworldName.Draw();

            _AIBackground.Draw();
            _difficultyLabel.Draw();

            _numberOfAILabel.Draw();
            _numericUpDownAI.Draw();
            for (int i = 0; i < _numericUpDownAI.Value; i++)
            {
                _AIRaceButtons[i].Draw();
                _raceSprites[i + 1].Draw(_xPos + 51 + (i * 155), _yPos + 271);
            }

            _galaxyBackground.Draw();
            //if (GameConfiguration.AllowGalaxyPreview)
            {
                DrawGalaxyPreview();
            }

            _okButton.Draw();
            _cancelButton.Draw();

            //Comboboxes should be drawn last, due to their "drop-down" feature
            _galaxyComboBox.Draw();
            _difficultyComboBox.Draw();

            if (_showingSelection)
            {
                _raceSelection.Draw();
            }
            if (_generatingGalaxy)
            {
                _busyImage.Draw();
                _busyText.Draw();
            }
        }
 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;
     }
 }
Exemple #6
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();
            }
        }
        public override void Draw()
        {
            base.Draw();

            _fieldsBackground.Draw();
            _technologyListBackground.Draw();

            for (int i = 0; i < 6; i++)
            {
                _techFieldLabels[i].Draw();
                _techNamesBeingResearchedLabels[i].Draw();
                _techProgressLabels[i].Draw();
                _techSliders[i].Draw();
                _techLockButtons[i].Draw();
                _techFieldButtons[i].Draw();
            }
            _totalResearchPointsLabel.Draw();
            _researchedTechnologyDescriptions.Draw();
        }
Exemple #8
0
 public void DrawScreen()
 {
     _background.Draw(0, 0, _gameMain.ScreenWidth / _background.Width, _gameMain.ScreenHeight / _background.Height);
     _planet.Draw(_x, _y);
     _title.Draw(_x, _y);
     foreach (BBButton button in _buttons)
     {
         button.Draw();
     }
     if (_showingLoadMenu)
     {
         _loadBackground.Draw();
         foreach (var button in _saveGameButtons)
         {
             button.Draw();
         }
         _scrollBar.Draw();
     }
     _versionLabel.Draw();
 }
        public override void Draw()
        {
            base.Draw();
            _techDescriptionBackground.Draw();
            _availableTechsToResearchBackground.Draw();
            _techIcon.Draw(_xPos + 35, _yPos + 38);
            _techDescription.Draw();
            _instructionLabel.Draw();
            for (int i = 0; i < _maxVisible; i++)
            {
                _availableTechsToResearchButtons[i].Draw();
                _researchCosts[i].Draw();
            }
            _scrollBar.Draw();

            for (int i = 0; i < _maxVisible; i++)
            {
                _availableTechsToResearchButtons[i].DrawToolTip();
            }
        }
Exemple #10
0
 public override void Draw()
 {
     base.Draw();
     _raceBackground.Draw();
     for (int i = 0; i < _maxVisible; i++)
     {
         _raceButtons[i].Draw();
     }
     _raceScrollBar.Draw();
     if (_whichRaceSelected == null)
     {
         _randomSprite.Draw(_xPos + 315, _yPos + 15, 300 / _randomSprite.Width, 300 / _randomSprite.Height);
     }
     else
     {
         _whichRaceSelected.NeutralAvatar.Draw(_xPos + 315, _yPos + 15, 300 / _whichRaceSelected.NeutralAvatar.Width, 300 / _whichRaceSelected.NeutralAvatar.Height);
     }
     _raceDescription.Draw();
     _okButton.Draw();
 }
        public override void Draw()
        {
            base.Draw();

            for (int i = 0; i < _columnHeaders.Length; i++)
            {
                _columnHeaders[i].Draw();
            }
            for (int i = 0; i < _columnCells.Length; i++)
            {
                for (int j = 0; j < _columnCells[i].Length; j++)
                {
                    _columnCells[i][j].Draw();
                }
            }
            _expensesBackground.Draw();
            _incomeBackground.Draw();
            _reserves.Draw();
            _expenseTitle.Draw();
            _incomeTitle.Draw();
            _scrollBar.Draw();
            for (int i = 0; i < 4; i++)
            {
                _expenses[i].Draw();
                _expenseLabels[i].Draw();
            }
            for (int i = 0; i < 2; i++)
            {
                _incomes[i].Draw();
                _incomeLabels[i].Draw();
            }
            _reserveSlider.Draw();
            _reservesLabel.Draw();
            _reservesAmount.Draw();
            _transferSlider.Draw();
            _transferLabel.Draw();
            _transferAmount.Draw();
            _transferReserves.Draw();
        }
Exemple #12
0
 public override void Draw()
 {
     base.Draw();
     _name.Draw();
     if (_isExplored)
     {
         _currentSystem.Planets[0].SmallSprite.Draw(_xPos + 10, _yPos + 60);
         _popLabel.Draw();
         _terrainLabel.Draw();
         if (_isOwnedSystem)
         {
             if (IsTransferring)
             {
                 _generalPurposeBackground.Draw();
                 _generalPurposeText.Draw();
                 _popTransferSlider.Draw();
                 _transferLabel.Draw();
                 _transferToButton.Draw();
                 _transferToButton.DrawToolTip();
             }
             else if (IsRelocating)
             {
                 _generalPurposeBackground.Draw();
                 _generalPurposeText.Draw();
                 _relocateToButton.Draw();
                 _relocateToButton.DrawToolTip();
             }
             else
             {
                 _productionLabel.Draw();
                 _infrastructureBackground.Draw();
                 _researchBackground.Draw();
                 _environmentBackground.Draw();
                 _defenseBackground.Draw();
                 _constructionProjectButton.Draw();
                 _infrastructureIcon.Draw(_xPos + 20, _yPos + 140);
                 _researchIcon.Draw(_xPos + 20, _yPos + 200);
                 _environmentIcon.Draw(_xPos + 20, _yPos + 260);
                 _defenseIcon.Draw(_xPos + 20, _yPos + 320);
                 _constructionIcon.Draw(_xPos + 20, _yPos + 380);
                 _infrastructureLabel.Draw();
                 _infrastructureSlider.Draw();
                 _infrastructureLockButton.Draw();
                 _researchLabel.Draw();
                 _researchSlider.Draw();
                 _researchLockButton.Draw();
                 _environmentLabel.Draw();
                 _environmentSlider.Draw();
                 _environmentLockButton.Draw();
                 _defenseLabel.Draw();
                 _defenseSlider.Draw();
                 _defenseLockButton.Draw();
                 _constructionLabel.Draw();
                 _constructionSlider.Draw();
                 _constructionLockButton.Draw();
                 _relocateToButton.Draw();
                 _transferToButton.Draw();
                 _relocateToButton.DrawToolTip();
                 _transferToButton.DrawToolTip();
                 if (_currentSystem.Planets[0].TransferSystem.Key.StarSystem != null)
                 {
                     _transferLabel.Draw();
                 }
             }
         }
         else
         {
             _generalPurposeBackground.Draw();
             _generalPurposeText.Draw();
         }
     }
     else
     {
         _generalPurposeBackground.Draw();
         _generalPurposeText.Draw();
     }
 }
 public virtual void Draw()
 {
     _backGroundImage.Draw();
 }