Exemple #1
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 #2
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 #3
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();
     }
 }