Files
vgstation13/code/modules/admin/body_archive_panel.dm
kane-f 524d50aa29 Body archive mind transfer on spawning option. (#31840)
* Body archive mind transfer on spawning

* Some stuff for keeping old job clothes too

* Nicer way of doing it all

* Fix

Co-authored-by: kanef <kanef9x@protonmail.com>
2022-01-19 08:14:55 -06:00

52 lines
1.3 KiB
Plaintext

/datum/admins/proc/body_archive_panel()
if (!body_archives || !body_archives.len)
alert("No body archive has been created yet. Either nobody has spawned yet or something has gone wrong.")
return
var/dat = {"<html>
<head>
<style>
table,h2 {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
}
td, th {
border: 1px solid #dddddd;
padding: 8px;
}
tr:nth-child(even) {
background-color: #dddddd;
}
</style>
</head>
<body>
<h2 style="text-align:center">Body Archive Panel</h2>
<table>
<tr>
<th style="width:1%">Key</th>
<th style="width:1%">Name</th>
<th style="width:1%">Rank</th>
<th style="width:0.5%">Spawn Copy</th>
<th style="width:1%">Spawn and Transfer</th>
<th style="width:1%">Mob Type</th>
</tr>
"}
for (var/datum/body_archive/archive in body_archives)
dat += {"<tr>
<td>[archive.key]</td>
<td>[archive.name]</td>
<td>[archive.rank]</td>
<td><a href='?src=\ref[src];bodyarchivepanel_spawncopy=\ref[archive]'>\[SPAWN\]</a></td>
<td><a href='?src=\ref[src];bodyarchivepanel_spawntransfer=\ref[archive]'>\[SPAWN+TRANSFER\]</a></td>
<td><i>[archive.mob_type]</i></td>
</tr>
"}
dat += {"</table>
</body>
</html>
"}
usr << browse(dat, "window=bodyarchivepanel;size=860x640")