mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-20 14:45:05 +00:00
* Medical/Security records now use the max/min age. * merge conflict * Refactors crew records (#72725) I have attempted or otherwise started this project at least 4 times. I am sick of it being on my calendar. The code needs it. I need it. - This makes crew records a proper datum rather than assigning properties record.fields. - General, medical, and security records are merged. - Did some slight refactoring here and there for things that looked obvious. - Wanted states are now defined (and you can suspect someone through sechud) - pAI (unrelated but annoying) had some poorly named exported types that i made more specific - Job icons are moved back to the JS side (I wanted to get icons for initial rank without passing trim) <details> <summary>previews</summary> Editable fields & security console  Medical records  Look and feel of the more current version  </details> TGUI'd some of the worst UIs in the game. Creating new records is made much simpler. Manifest_inject is made readable. Probably bug fixes 🆑 refactor: Crew records have been refactored. refactor: Medical records -> TGUI refactor: Security records -> TGUI refactor: Warrants console -> TGUI qol: Players are now alerted when their fines are paid off. qol: Cleaned up sec hud examination text. qol: Adding and deleting crimes is easier. qol: Writing crimes in the console sets players to arrest. qol: You can now mark someone as a suspect through sec hud. /🆑 Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com> * I've got something that now actually works Just got to incorporate the records into what players can actually see. * Turns out that client has already been transferred after all * Adds the past records in the TGUI records (they're kinda ugly but it works, so y'know) * Whoops * Hate you too sometimes Prettier * Fixes ghost roles using LITERAL records, which caused problems * Fixes the leaks caused by ghost roles not getting their name right because of the stupid freaking special() proc * I hate list operations man they're so stupid * Fixes the stars on the crew manifest! --------- Co-authored-by: NamelessFairy <40036527+NamelessFairy@users.noreply.github.com> Co-authored-by: KathrinBailey <53862927+KathrinBailey@users.noreply.github.com> Co-authored-by: Jeremiah <42397676+jlsnow301@users.noreply.github.com> Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com> Co-authored-by: GoldenAlpharex <jerego1234@hotmail.com>
36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
/datum/computer_file/program/crew_manifest
|
|
filename = "plexagoncrew"
|
|
filedesc = "Plexagon Crew List"
|
|
category = PROGRAM_CATEGORY_CREW
|
|
program_icon_state = "id"
|
|
extended_desc = "Program for viewing and printing the current crew manifest"
|
|
transfer_access = list(ACCESS_COMMAND)
|
|
requires_ntnet = TRUE
|
|
size = 4
|
|
tgui_id = "NtosCrewManifest"
|
|
program_icon = "clipboard-list"
|
|
detomatix_resistance = DETOMATIX_RESIST_MAJOR
|
|
|
|
/datum/computer_file/program/crew_manifest/ui_static_data(mob/user)
|
|
var/list/data = get_header_data()
|
|
data["manifest"] = GLOB.manifest.get_manifest()
|
|
return data
|
|
|
|
/datum/computer_file/program/crew_manifest/ui_act(action, params, datum/tgui/ui)
|
|
. = ..()
|
|
if(.)
|
|
return
|
|
|
|
switch(action)
|
|
if("PRG_print")
|
|
if(computer) //This option should never be called if there is no printer
|
|
var/contents = {"<h4>Crew Manifest</h4>
|
|
<br>
|
|
[GLOB.manifest ? GLOB.manifest.get_html(0) : ""]
|
|
"}
|
|
if(!computer.print_text(contents,text("crew manifest ([])", station_time_timestamp())))
|
|
to_chat(usr, span_notice("Printer is out of paper."))
|
|
return
|
|
else
|
|
computer.visible_message(span_notice("\The [computer] prints out a paper."))
|