diff --git a/code/controllers/configuration/entries/general.dm b/code/controllers/configuration/entries/general.dm index d45ea29b730..f960e6f4d62 100644 --- a/code/controllers/configuration/entries/general.dm +++ b/code/controllers/configuration/entries/general.dm @@ -330,6 +330,9 @@ /datum/config_entry/string/githuburl default = "https://www.github.com/tgstation/tgstation" +/datum/config_entry/string/configurl + default = "https://github.com/tgstation-operations/server-config" + /datum/config_entry/string/discordbotcommandprefix default = "?" diff --git a/code/modules/escape_menu/home_page.dm b/code/modules/escape_menu/home_page.dm index 0ab16e9ab37..02a050535b0 100644 --- a/code/modules/escape_menu/home_page.dm +++ b/code/modules/escape_menu/home_page.dm @@ -157,6 +157,20 @@ )) offset_order -= offset_order[1] + var/configurl = CONFIG_GET(string/configurl) + if(configurl) + resource_panels += page_holder.give_screen_object(new /atom/movable/screen/escape_menu/lobby_button/small/collapsible( + null, + /* hud_owner = */ null, + "Config", + "View the server configuration files", + /* button_screen_loc */ "BOTTOM:30,RIGHT:-20", + CALLBACK(client, TYPE_VERB_REF(/client, config)), + /* button_overlay = */ "config", + /* end_point */ offset_order[1], + )) + offset_order -= offset_order[1] + resource_panels += page_holder.give_screen_object(new /atom/movable/screen/escape_menu/lobby_button/small/collapsible( null, /* hud_owner = */ null, diff --git a/config/config.txt b/config/config.txt index fabfbada772..11bbb603cda 100644 --- a/config/config.txt +++ b/config/config.txt @@ -221,6 +221,9 @@ IPINTEL_REJECT_BAD ## Ban appeals URL - usually for a forum or wherever people should go to contact your admins. # BANAPPEALS http://justanotherday.example.com +## Config URL - Intended for servers that have a repository/public folder/etc. that show off the config that they are running +# CONFIGURL https://github.com/tgstation-operations/server-config + ## System command that invokes yt-dlp, used by Play Internet Sound. ## You can install yt-dlp with ## "pip install yt-dlp" if you have pip installed diff --git a/icons/hud/escape_menu_icons.dmi b/icons/hud/escape_menu_icons.dmi index 8f848aa25e4..a6c24f082ab 100644 Binary files a/icons/hud/escape_menu_icons.dmi and b/icons/hud/escape_menu_icons.dmi differ diff --git a/interface/interface.dm b/interface/interface.dm index 3441e36dcab..cdf929c5efa 100644 --- a/interface/interface.dm +++ b/interface/interface.dm @@ -54,6 +54,17 @@ return DIRECT_OUTPUT(src, link(githuburl)) +/client/verb/config() + set name = "config" + set desc = "View the server configuration files." + set hidden = TRUE + + var/configurl = CONFIG_GET(string/configurl) + if(!configurl) + to_chat(src, span_danger("The Config URL is not set in the server configuration.")) + return + DIRECT_OUTPUT(src, link(configurl)) + /client/verb/reportissue() set name = "report-issue" set desc = "Report an issue"