]> 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 e22a408540798be1dd3ca9bffb6025cec21bd9b1..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));
+     
     
 
 }
@@ -43,4 +44,21 @@ void RoidsEditView::slotValueChanged( const QString & s )
                type = tr("score");
        test = type;
     emit changed(type, s.toInt());
+}
+
+
+void RoidsEditView::slotSetLost( QString type, float i )
+{ 
+    if (type == tr("metal"))
+       MetalLostEdit->setText(QString("%1").arg(i));
+    else if (type == tr("crystal"))
+       CrystalLostEdit->setText(QString("%1").arg(i));
+    else if (type == tr("eonium"))
+       EoniumLostEdit->setText(QString("%1").arg(i));
+    else if (type == tr("uninit"))
+       UninitLostEdit->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