From 1d29f22baa80964917b9c4b4bb3c5fc2c4446364 Mon Sep 17 00:00:00 2001 From: Bokkiewokkie Date: Sun, 29 Oct 2023 19:38:25 +0100 Subject: [PATCH] Funny button --- nsv13/code/datums/starsystem_manager.dm | 9 ++++++++- tgui/packages/tgui/interfaces/StarsystemManager.js | 6 +++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/nsv13/code/datums/starsystem_manager.dm b/nsv13/code/datums/starsystem_manager.dm index 4931393b614..77692b51d3d 100644 --- a/nsv13/code/datums/starsystem_manager.dm +++ b/nsv13/code/datums/starsystem_manager.dm @@ -49,10 +49,12 @@ sys_inf["visited"] = 0 sys_inf["hidden"] = (SS.sector != current_sector) var/label = "" + if(SS.hidden) + label += " HIDDEN" if(SS.is_hypergate) label += " HYPERGATE" if(SS.is_capital && !label) - label = "CAPITAL" + label = " CAPITAL" if(SS.trader && SS.sector != 3) //Use shortnames in brazil for readability label = " [SS.trader.name]" if(SS.trader && SS.sector == 3) //Use shortnames in brazil for readability @@ -220,6 +222,11 @@ usr.client.debug_variables(target) if(command == "Delete") usr.client.cmd_admin_delete(target) + if("hideSystem") + var/datum/star_system/target = locate(params["sys_id"]) + if(!istype(target)) + return + target.hidden = !target.hidden if("systemVV") var/datum/star_system/target = locate(params["sys_id"]) if(!istype(target)) diff --git a/tgui/packages/tgui/interfaces/StarsystemManager.js b/tgui/packages/tgui/interfaces/StarsystemManager.js index 7ad69b1d5d9..66ec246f72f 100644 --- a/tgui/packages/tgui/interfaces/StarsystemManager.js +++ b/tgui/packages/tgui/interfaces/StarsystemManager.js @@ -46,13 +46,17 @@ export const StarsystemManager = (props, context) => { return (