From d19c9012a75bb89a75ed35222cd4740aff19f49b Mon Sep 17 00:00:00 2001 From: SkyMarshal Date: Mon, 5 Mar 2012 20:08:38 -0700 Subject: [PATCH] Detective UI update. --- code/modules/DetectiveWork/detective_work.dm | 46 ++++++++------------ 1 file changed, 18 insertions(+), 28 deletions(-) diff --git a/code/modules/DetectiveWork/detective_work.dm b/code/modules/DetectiveWork/detective_work.dm index 721a79cb32..3a80fcec21 100644 --- a/code/modules/DetectiveWork/detective_work.dm +++ b/code/modules/DetectiveWork/detective_work.dm @@ -245,28 +245,23 @@ obj/machinery/computer/forensic_scanning print_string = "Fingerprints: (80% or higher completion reached)
" + prints[num2text(2)] + "
" temp += print_string for(var/i = 2, i <= dossier.len, i++) + temp += "
" var/list/outputs = dossier[i] var/item_name = get_name(outputs[1]) var/list/prints_len = outputs[2] - temp += "Object: [item_name]
" + temp += "Object: [item_name]
" + temp += " Fingerprints:
" temp += "    [prints_len.len] Unique fingerprints found.
" var/list/fibers = outputs[3] if(fibers && fibers.len) - var/dat = "[fibers[1]]" - for(var/j = 2, j <= fibers.len, j++) - dat += ",
      [fibers[j]]" - temp += "    Fibers: [dat]
" - else - temp += "    No fibers found.
" + temp += " Fibers:
" + for(var/j = 1, j <= fibers.len, j++) + temp += "      [fibers[j]]
" var/list/blood = outputs[4] if(blood && blood.len) - var/dat = "[blood[1]]" - if(blood.len > 1) - for(var/j = 2, j <= blood.len, j++) - dat += ",
      [blood[j]]" - temp += "    Blood: [dat]
" - else - temp += "    No blood found.
" + temp += " Blood:
" + for(var/j = 1, j <= blood.len, j++) + temp += "      [blood[j]]
" else temp = "ERROR. Database not found!
" temp += "
{Delete this Dossier}" @@ -286,28 +281,23 @@ obj/machinery/computer/forensic_scanning print_string = "Fingerprints: " + prints[num2text(2)] + "
" P.info += print_string for(var/i = 2, i <= dossier.len, i++) + P.info += "
" var/list/outputs = dossier[i] var/item_name = get_name(outputs[1]) var/list/prints_len = outputs[2] - P.info += "Object: [item_name]
" + P.info += "Object: [item_name]
" + P.info += " Fingerprints:
" P.info += "    [prints_len.len] Unique fingerprints found.
" var/list/fibers = outputs[3] if(fibers && fibers.len) - var/dat = "[fibers[1]]" - for(var/j = 2, j <= fibers.len, j++) - dat += ",
      [fibers[j]]" - P.info += "    Fibers: [dat]
" - else - P.info += "    No fibers found.
" + P.info += " Fibers:
" + for(var/j = 1, j <= fibers.len, j++) + P.info += "      [fibers[j]]
" var/list/blood = outputs[4] if(blood && blood.len) - var/dat = "[blood[1]]" - if(blood.len > 1) - for(var/j = 2, j <= blood.len, j++) - dat += ",
      [blood[j]]" - P.info += "    Blood: [dat]
" - else - P.info += "    No blood found." + P.info += " Blood:
" + for(var/j = 1, j <= blood.len, j++) + P.info += "      [blood[j]]
" else usr << "ERROR. Database not found!
" if("auxiliary")