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(); } }
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(); } } }
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(); _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(); } }