]> ruin.nu Git - hbs.git/blobdiff - bs/ui/resourceview.ui.h
added functionallity to show the cost for each roid.
[hbs.git] / bs / ui / resourceview.ui.h
index a794cb3ae449c35ba2b0beeea8a27ad8f983bdb7..485c4e59866db7a75ca779650ddabf2657578441 100644 (file)
@@ -6,4 +6,22 @@
 ** a constructor, and a destroy() slot in place of a destructor.
 *****************************************************************************/
 
-//test
\ No newline at end of file
+//test
+
+void ResourceView::setLines( QString type, float i )
+{
+    if (type == tr("metal"))
+       MetalEdit->setText(QString("%1").arg(i));
+    else if (type == tr("crystal"))
+       CrystalEdit->setText(QString("%1").arg(i));
+    else if (type == tr("eonium"))
+       EoniumEdit->setText(QString("%1").arg(i));
+    else if (type == tr("uninit"))
+       UninitEdit->setText(QString("%1").arg(i));
+    else if (type == tr("score"))
+       ScoreEdit->setText(QString("%1").arg(i));
+    else if (type == tr("lost"))
+       ScoreLostEdit->setText(QString("%1").arg(i));
+     else if (type == tr("cost"))
+       CostEdit->setText(QString("%1").arg(i));
+}
\ No newline at end of file