From 7cab658b9bf3c6445004c94a74de3cb22b61f0df Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Thu, 27 Oct 2022 04:06:48 +0200 Subject: [PATCH] [MIRROR] Adds Station's Date To NTos Window (check the time+date on your tablet!) [MDB IGNORE] (#17191) * Adds Station's Date To NTos Window (check the time+date on your tablet!) (#70754) * The date and time is now displayed in NtOS tablets, showing the in-game date (540 years after current), bringing the feature from old PDAs over. * Adds Station's Date To NTos Window (check the time+date on your tablet!) Co-authored-by: san7890 --- .../modular_computers/computers/item/computer.dm | 1 + tgui/packages/tgui/layouts/NtosWindow.js | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/code/modules/modular_computers/computers/item/computer.dm b/code/modules/modular_computers/computers/item/computer.dm index 4e21972cd87..c9c961da3b3 100644 --- a/code/modules/modular_computers/computers/item/computer.dm +++ b/code/modules/modular_computers/computers/item/computer.dm @@ -592,6 +592,7 @@ GLOBAL_LIST_EMPTY(TabletMessengers) // a list of all active messengers, similar data["PC_programheaders"] = program_headers data["PC_stationtime"] = station_time_timestamp() + data["PC_stationdate"] = "[time2text(world.realtime, "DDD, Month DD")], [GLOB.year_integer+540]" data["PC_showexitprogram"] = !!active_program // Hides "Exit Program" button on mainscreen return data diff --git a/tgui/packages/tgui/layouts/NtosWindow.js b/tgui/packages/tgui/layouts/NtosWindow.js index d0f21322695..e6f25a93f41 100644 --- a/tgui/packages/tgui/layouts/NtosWindow.js +++ b/tgui/packages/tgui/layouts/NtosWindow.js @@ -18,6 +18,7 @@ export const NtosWindow = (props, context) => { PC_showbatteryicon, PC_batterypercent, PC_ntneticon, + PC_stationdate, PC_stationtime, PC_programheaders = [], PC_showexitprogram, @@ -28,6 +29,15 @@ export const NtosWindow = (props, context) => {
+