Ports HTML manifest to TGUI (#16210)

* Ghost manifest is tgui now

* moved to tgui modules

* Delete crew_manifest.dm

* global

* ghost -> nologo

* sorry mr. tgui, i forgot about you again

* Jade review + more trimming

* lobby and silicons get some love

* bye bye, all traces of old manifest.

* renamed
This commit is contained in:
S34N
2021-06-21 12:21:32 +01:00
committed by GitHub
parent f1ad48c450
commit 6b06ca3ef5
11 changed files with 46 additions and 146 deletions
@@ -0,0 +1,17 @@
GLOBAL_DATUM_INIT(generic_crew_manifest, /datum/ui_module/generic_crew_manifest, new)
/datum/ui_module/generic_crew_manifest
name = "Crew Manifest"
/datum/ui_module/generic_crew_manifest/ui_interact(user, ui_key = "GenericCrewManifest", datum/tgui/ui = null, datum/tgui/master_ui = null, state)
ui = SStgui.try_update_ui(user, src, ui_key, ui)
if(!ui)
ui = new(user, src, ui_key, "GenericCrewManifest", name, 588, 510, master_ui, state)
ui.set_autoupdate(FALSE)
ui.open()
/datum/ui_module/generic_crew_manifest/ui_data(user)
var/list/data = list()
GLOB.data_core.get_manifest_json()
data["manifest"] = GLOB.PDA_Manifest
return data