Adds In-Game Link To Server Config (#94371)

## About The Pull Request

On the tin, just adds a link to
https://github.com/tgstation-operations/server-config to the game so
people are a little bit more aware of it.

Here's how it looks:

<img width="1386" height="275" alt="image"
src="https://github.com/user-attachments/assets/63d2d284-6d5f-4f41-ba80-abc33699f7c5"
/>

## Why It's Good For The Game

More visibility to a public resource, this wasn't feasible before the
present situation. It won't show up here unless the config variable is
set.
## Changelog
🆑
config: If you publicly host a copy of your server's config, you may now
link to the public URL in the 'CONFIGURL' setting in the server config.
It will show to players in the Escape Menu's Resources Carousel.
/🆑
This commit is contained in:
san7890
2025-12-13 20:52:36 -05:00
committed by GitHub
parent 890c9d2101
commit bbd0e070a3
5 changed files with 31 additions and 0 deletions
@@ -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 = "?"
+14
View File
@@ -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,
+3
View File
@@ -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
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

+11
View File
@@ -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"