]> ruin.nu Git - hbs.git/blobdiff - bs/ui/roidseditview.ui.h
now shows the lost score for the planet and the capping each tick
[hbs.git] / bs / ui / roidseditview.ui.h
index 22a8230ee24d3c7a401603ea661f9fa1f5cf0f0e..d02b348fb7ad66f72884f4cdc0039c067786b529 100644 (file)
@@ -23,6 +23,7 @@ void RoidsEditView::setValue( const QString & type, unsigned value )
        UninitEdit->setText(QString("%1").arg(value));
     else if (type == tr("score"))
        ScoreEdit->setText(QString("%1").arg(value));
+     
     
 
 }
@@ -46,7 +47,7 @@ void RoidsEditView::slotValueChanged( const QString & s )
 }
 
 
-void RoidsEditView::slotSetLost( QString type, int i )
+void RoidsEditView::slotSetLost( QString type, float i )
 { 
     if (type == tr("metal"))
        MetalLostEdit->setText(QString("%1").arg(i));
@@ -56,7 +57,8 @@ void RoidsEditView::slotSetLost( QString type, int i )
        EoniumLostEdit->setText(QString("%1").arg(i));
     else if (type == tr("uninit"))
        UninitLostEdit->setText(QString("%1").arg(i));
-    /*else if (type == tr("score"))
-       ScoreEdit->setText(QString("%1").arg(i));
-    */
+    else if (type == tr("scorelost"))
+       ScoreLostEdit->setText(QString("%1").arg(i));
+    else if (type == tr("capping"))
+       CappingEdit->setText(QString("%1\%").arg(i*100));
 }
\ No newline at end of file