Exemple #1
0
 public override void MoveWindow()
 {
     base.MoveWindow();
     _name.MoveTo(_xPos + 10, _yPos + 15);
     _terrainLabel.MoveTo(_xPos + 55, _yPos + 60);
     _popLabel.MoveTo(_xPos + 55, _yPos + 80);
     _infrastructureBackground.MoveTo(_xPos + 10, _yPos + 130);
     _researchBackground.MoveTo(_xPos + 10, _yPos + 190);
     _environmentBackground.MoveTo(_xPos + 10, _yPos + 250);
     _defenseBackground.MoveTo(_xPos + 10, _yPos + 310);
     _constructionProjectButton.MoveTo(_xPos + 10, _yPos + 370);
     _productionLabel.MoveTo(_xPos + 55, _yPos + 100);
     _infrastructureLabel.MoveTo(_xPos + 65, _yPos + 140);
     _infrastructureSlider.MoveTo(_xPos + 65, _yPos + 160);
     _infrastructureLockButton.MoveTo(_xPos + 267, _yPos + 160);
     _researchLabel.MoveTo(_xPos + 65, _yPos + 200);
     _researchSlider.MoveTo(_xPos + 65, _yPos + 220);
     _researchLockButton.MoveTo(_xPos + 267, _yPos + 220);
     _environmentLabel.MoveTo(_xPos + 65, _yPos + 260);
     _environmentSlider.MoveTo(_xPos + 65, _yPos + 280);
     _environmentLockButton.MoveTo(_xPos + 267, _yPos + 280);
     _defenseLabel.MoveTo(_xPos + 65, _yPos + 320);
     _defenseSlider.MoveTo(_xPos + 65, _yPos + 340);
     _defenseLockButton.MoveTo(_xPos + 267, _yPos + 340);
     _constructionLabel.MoveTo(_xPos + 65, _yPos + 380);
     _constructionSlider.MoveTo(_xPos + 65, _yPos + 400);
     _constructionLockButton.MoveTo(_xPos + 267, _yPos + 400);
     if (IsRelocating)
     {
         _relocateToButton.MoveTo(_xPos + 215, _yPos + 435);
     }
     else
     {
         _relocateToButton.MoveTo(_xPos + 130, _yPos + 435);
     }
     _transferToButton.MoveTo(_xPos + 215, _yPos + 435);
 }
Exemple #2
0
        public override void MoveWindow()
        {
            base.MoveWindow();

            _empireBackground.MoveTo(_xPos + 10, _yPos + 10);
            _empireNameLabel.MoveTo(_xPos + 150 - (int)(_empireNameLabel.GetWidth() / 2), _yPos + 30 - (int)(_empireNameLabel.GetHeight() / 2));
            _previousFleet.MoveTo(_xPos + 18, _yPos + 22);
            _nextFleet.MoveTo(_xPos + 266, _yPos + 22);

            for (int i = 0; i < _shipBackground.Length; i++)
            {
                _shipBackground[i].MoveTo(_xPos + 10, _yPos + 55 + (i * 55));
                _shipLabels[i].MoveTo(_xPos + 15, _yPos + 65 + (i * 55));
                _shipSliders[i].MoveTo(_xPos + 15, _yPos + 85 + (i * 55));
            }
        }