Unify TGUI crew manifest across lobby and ghosts, make it a true table (#16436)

This commit is contained in:
ShadowLarkens
2024-10-12 16:48:13 +02:00
committed by GitHub
parent 98293e1aa9
commit 1063c5e19c
4 changed files with 64 additions and 43 deletions
+2 -5
View File
@@ -703,11 +703,8 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
set name = "Show Crew Manifest"
set category = "Ghost"
var/dat
dat += "<h4>Crew Manifest</h4>"
dat += data_core.get_manifest()
src << browse(dat, "window=manifest;size=370x420;can_close=1")
var/datum/tgui_module/crew_manifest/self_deleting/S = new(src)
S.tgui_interact(src)
//This is called when a ghost is drag clicked to something.
/mob/observer/dead/MouseDrop(atom/over)
+2 -7
View File
@@ -658,13 +658,8 @@
return new_character
/mob/new_player/proc/ViewManifest()
var/dat = "<div align='center'>"
dat += data_core.get_manifest(OOC = 1)
//src << browse(dat, "window=manifest;size=370x420;can_close=1")
var/datum/browser/popup = new(src, "Crew Manifest", "Crew Manifest", 370, 420, src)
popup.set_content(dat)
popup.open()
var/datum/tgui_module/crew_manifest/self_deleting/S = new(src)
S.tgui_interact(src)
/mob/new_player/Move()
return 0