diff --git a/code/game/machinery/telecomms/ntsl2.dm b/code/game/machinery/telecomms/ntsl2.dm
index 5b0b4a8d0bb..fefd1ba1aee 100644
--- a/code/game/machinery/telecomms/ntsl2.dm
+++ b/code/game/machinery/telecomms/ntsl2.dm
@@ -197,6 +197,7 @@ GLOBAL_DATUM_INIT(ntsl2_config, /datum/ntsl2_configuration, new())
if(!(var_to_toggle in to_serialize))
return
vars[var_to_toggle] = !vars[var_to_toggle]
+ log_action(user, "toggled NTSL2 variable [var_to_toggle] [vars[var_to_toggle] ? "on" : "off"]")
// Strings
if(href_list["setting_language"])
@@ -210,6 +211,8 @@ GLOBAL_DATUM_INIT(ntsl2_config, /datum/ntsl2_configuration, new())
setting_language = new_language
to_chat(user, "Messages will now be converted to [new_language].")
+ log_action(user, new_language == "--DISABLE--" ? "disabled NTSL2 language conversion" : "set NTSL2 language conversion to [new_language]", TRUE)
+
// Tables
if(href_list["create_row"])
if(href_list["table"] && href_list["table"] in tables)
@@ -224,6 +227,7 @@ GLOBAL_DATUM_INIT(ntsl2_config, /datum/ntsl2_configuration, new())
var/list/table = vars[href_list["table"]]
table[new_key] = new_value
to_chat(user, "Added row [new_key] -> [new_value].")
+ log_action(user, "updated [href_list["table"]] - new row [new_key] -> [new_value]")
if(href_list["delete_row"])
if(href_list["table"] && href_list["table"] in tables)
@@ -232,6 +236,7 @@ GLOBAL_DATUM_INIT(ntsl2_config, /datum/ntsl2_configuration, new())
var/list/table = vars[href_list["table"]]
table.Remove(href_list["delete_row"])
to_chat(user, "Removed row [href_list["delete_row"]] from [href_list["table"]]")
+ log_action(user, "updated [href_list["table"]] - removed row [href_list["delete_row"]]")
// Arrays
if(href_list["create_item"])
@@ -244,6 +249,7 @@ GLOBAL_DATUM_INIT(ntsl2_config, /datum/ntsl2_configuration, new())
var/list/array = vars[href_list["array"]]
array.Add(new_value)
to_chat(user, "Added row [new_value].")
+ log_action(user, "updated [href_list["array"]] - new value [new_value]")
if(href_list["delete_item"])
if(href_list["array"] && href_list["array"] in arrays)
@@ -252,16 +258,25 @@ GLOBAL_DATUM_INIT(ntsl2_config, /datum/ntsl2_configuration, new())
var/list/array = vars[href_list["array"]]
array.Remove(href_list["delete_item"])
to_chat(user, "Removed [href_list["delete_item"]] from [href_list["array"]]")
+ log_action(user, "updated [href_list["array"]] - removed [href_list["delete_item"]]")
// Spit out the serialized config to the user
if(href_list["save_config"])
user << browse(ntsl_serialize(), "window=save_ntsl2")
if(href_list["load_config"])
- ntsl_deserialize(input(user, "Provide configuration JSON below.", "Load Config", ntsl_serialize()) as message, source)
+ var/json = input(user, "Provide configuration JSON below.", "Load Config", ntsl_serialize()) as message
+ ntsl_deserialize(json, source)
+ log_action(user, "has uploaded a NTSL2 JSON configuration: [json]", TRUE)
user << output(list2params(list(ntsl_serialize())), "[window_id].browser:updateConfig")
+/datum/ntsl2_configuration/proc/log_action(user, msg, adminmsg = FALSE)
+ log_game("NTSL2: [key_name(user)] [msg]")
+ log_investigate("[key_name(user)] [msg]", "ntsl")
+ if(adminmsg)
+ message_admins("[key_name_admin(user)] [msg]")
+
/* Asset datum for the UI */
/datum/asset/simple/ntsl2
assets = list(
diff --git a/code/modules/admin/admin_investigate.dm b/code/modules/admin/admin_investigate.dm
index 4623a46d7d1..49b2f06d003 100644
--- a/code/modules/admin/admin_investigate.dm
+++ b/code/modules/admin/admin_investigate.dm
@@ -26,6 +26,13 @@
investigate_log_subjects |= subject
F << "[time_stamp()] \ref[src] ([x],[y],[z]) || [src] [message]
"
+/proc/log_investigate(message, subject)
+ if(!message) return
+ var/F = investigate_subject2file(subject)
+ if(!F) return
+ investigate_log_subjects |= subject
+ F << "[time_stamp()] || [message]
"
+
//ADMINVERBS
/client/proc/investigate_show( subject in investigate_log_subjects )
set name = "Investigate"
diff --git a/html/ntsl2/dist/bundle.css b/html/ntsl2/dist/bundle.css
index 215594761e7..293fb16a941 100644
--- a/html/ntsl2/dist/bundle.css
+++ b/html/ntsl2/dist/bundle.css
@@ -1,6 +1,8 @@
/* Global */
html, body {
background-color: #272727;
+ font-family: Verdana, Geneva, sans-serif;
+ font-size: 12px;
color: #fff;
margin: 0;
padding: 0;
diff --git a/html/ntsl2/dist/tab_filtering.html b/html/ntsl2/dist/tab_filtering.html
index ba239abf240..ee9797c51a9 100644
--- a/html/ntsl2/dist/tab_filtering.html
+++ b/html/ntsl2/dist/tab_filtering.html
@@ -2,11 +2,11 @@
Filtering Settings
- | Print Jobs? |
+ Announce Jobs? |
|
- | Print Timecodes? |
+ Announce Timecodes? |
|
diff --git a/html/ntsl2/src/css/index.css b/html/ntsl2/src/css/index.css
index 215594761e7..293fb16a941 100644
--- a/html/ntsl2/src/css/index.css
+++ b/html/ntsl2/src/css/index.css
@@ -1,6 +1,8 @@
/* Global */
html, body {
background-color: #272727;
+ font-family: Verdana, Geneva, sans-serif;
+ font-size: 12px;
color: #fff;
margin: 0;
padding: 0;
diff --git a/html/ntsl2/src/html/tabs/tab_filtering.html b/html/ntsl2/src/html/tabs/tab_filtering.html
index ba239abf240..ee9797c51a9 100644
--- a/html/ntsl2/src/html/tabs/tab_filtering.html
+++ b/html/ntsl2/src/html/tabs/tab_filtering.html
@@ -2,11 +2,11 @@
Filtering Settings
- | Print Jobs? |
+ Announce Jobs? |
|
- | Print Timecodes? |
+ Announce Timecodes? |
|