mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-30 07:27:57 +01:00
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:
@@ -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
|
||||
Reference in New Issue
Block a user