From 233dca23fdf0cec75dfe08ecfa1cae59c798fe23 Mon Sep 17 00:00:00 2001 From: Arokha Sieyes Date: Mon, 6 Mar 2017 15:09:55 -0500 Subject: [PATCH] Display OOC notes on mind and body records --- code/modules/resleeving/computers.dm | 12 ++++++++-- nano/templates/sleever.tmpl | 33 +++++++++++++++++++++++++++- 2 files changed, 42 insertions(+), 3 deletions(-) diff --git a/code/modules/resleeving/computers.dm b/code/modules/resleeving/computers.dm index 8516075afb..17c9154eac 100644 --- a/code/modules/resleeving/computers.dm +++ b/code/modules/resleeving/computers.dm @@ -165,7 +165,8 @@ "gender" = active_br.bodygender, \ "synthetic" = active_br.synthetic ? "Yes" : "No", \ "locked" = active_br.locked ? "Low" : "High", \ - "cando" = can_grow_active) + "cando" = can_grow_active, + "booc" = active_br.body_oocnotes) else data["activeRecord"] = null @@ -175,7 +176,8 @@ can_sleeve_current = 0 data["activeMindRecord"] = list("charname" = active_mr.mindname, \ "obviously_dead" = active_mr.dead_state == MR_DEAD ? "Past-due" : "Current", \ - "cando" = can_sleeve_current) + "cando" = can_sleeve_current, + "mooc" = active_mr.mind_oocnotes) else data["activeMindRecord"] = null @@ -215,6 +217,12 @@ active_mr = null temp = "ERROR: Record missing." + else if (href_list["boocnotes"]) + menu = 6 + + else if (href_list["moocnotes"]) + menu = 7 + else if (href_list["refresh"]) updateUsrDialog() diff --git a/nano/templates/sleever.tmpl b/nano/templates/sleever.tmpl index 58f99cbacd..6e6e9699bb 100644 --- a/nano/templates/sleever.tmpl +++ b/nano/templates/sleever.tmpl @@ -108,6 +108,10 @@
Synthetic:
{{:data.activeBodyRecord.synthetic}}
+
+
OOC Notes:
+
{{:helper.link('View', null, {'boocnotes' : data.activeBodyRecord.booc}, data.activeBodyRecord.booc ? null : 'linkOff')}}
+
{{:helper.link('Create', 'play', {'create' : data.activeBodyRecord.real_name}, data.activeBodyRecord.cando ? null : 'linkOff')}} @@ -126,13 +130,40 @@
{{:data.activeMindRecord.charname}}
-
Backup status:
+
Backup Status:
{{:data.activeMindRecord.obviously_dead}}
+
+
OOC Notes:
+
{{:helper.link('View', null, {'moocnotes' : data.activeMindRecord.mooc}, data.activeMindRecord.mooc ? null : 'linkOff')}}
+
{{:helper.link('Sleeve', 'play', {'sleeve' : data.activeMindRecord.charname}, data.activeMindRecord.cando ? null : 'linkOff')}} {{else}}
ERROR: Record not found.
{{/if}} + + + {{else data.menu == 6}} +

Body OOC Notes (This is OOC!)

+
{{:helper.link('Back', 'arrowreturn-1-w', {'menu' : 4})}}
+ {{if data.activeBodyRecord}} +
Notes:
+
{{:data.activeBodyRecord.booc}}
+ {{else}} +
ERROR: Record not found.
+ {{/if}} + + + {{else data.menu == 7}} +

Mind OOC Notes (This is OOC!)

+
{{:helper.link('Back', 'arrowreturn-1-w', {'menu' : 5})}}
+ {{if data.activeMindRecord}} +
Notes:
+
{{:data.activeMindRecord.mooc}}
+ {{else}} +
ERROR: Record not found.
+ {{/if}} + {{/if}} {{/if}} \ No newline at end of file