Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDA crew manifest app for all! #884

Merged
merged 2 commits into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
max_capacity = 32
///Static list of programss ALL command tablets have.
var/static/list/datum/computer_file/command_programs = list(
/datum/computer_file/program/crew_manifest,
// /datum/computer_file/program/crew_manifest, monke edit: everyone has the crew manifest anyways now
/datum/computer_file/program/science,
/datum/computer_file/program/status,
)
Expand Down
1 change: 1 addition & 0 deletions code/modules/modular_computers/computers/item/pda.dm
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
/datum/computer_file/program/messenger,
/datum/computer_file/program/nt_pay,
/datum/computer_file/program/notepad,
/datum/computer_file/program/crew_manifest // monke edit: install crew manifest by default
)
///List of items that can be stored in a PDA
var/static/list/contained_item = list(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/datum/computer_file/program/crew_manifest
transfer_access = list()
detomatix_resistance = NONE

/datum/computer_file/program/crew_manifest/New()
. = ..()
RegisterSignal(SSdcs, COMSIG_GLOB_CREWMEMBER_JOINED, PROC_REF(_update_ui_data))

/datum/computer_file/program/crew_manifest/Destroy()
. = ..()
UnregisterSignal(SSdcs, COMSIG_GLOB_CREWMEMBER_JOINED)
Absolucy marked this conversation as resolved.
Show resolved Hide resolved

/datum/computer_file/program/crew_manifest/proc/_update_ui_data()
SIGNAL_HANDLER
update_static_data_for_all_viewers()
1 change: 1 addition & 0 deletions tgstation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -6312,6 +6312,7 @@
#include "monkestation\code\modules\modular_bartending\item_modifications\attack_additions.dm"
#include "monkestation\code\modules\modular_bartending\item_modifications\reagent_modification.dm"
#include "monkestation\code\modules\modular_bartending\reactions\food_reactions.dm"
#include "monkestation\code\modules\modular_computers\file_system\programs\crewmanifest.dm"
#include "monkestation\code\modules\ocean_content\department_consoles\engineering.dm"
#include "monkestation\code\modules\ocean_content\fluff\barrier.dm"
#include "monkestation\code\modules\ocean_content\fluff\base_turf_editor.dm"
Expand Down
Loading