mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
Add Relays to the Menu Bar (#1007)
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may not be viewable. --> <!-- You can view Contributing.MD for a detailed description of the pull request process. --> ## About The Pull Request Add's relays to the menu bar. <!-- Please make sure to actually test your PRs. If you have not tested your PR mention it. --> ## Why It's Good For The Game Latency. ## Proof Of Testing ## Changelog <!-- If your PR modifies aspects of the game that can be concretely observed by players or admins you should add a changelog. If your change does NOT meet this description, remove this section. Be sure to properly mark your PRs to prevent unnecessary GBP loss. You can read up on GBP and it's effects on PRs in the tgstation guides for contributors. Please note that maintainers freely reserve the right to remove and add tags should they deem it appropriate. You can attempt to finagle the system all you want, but it's best to shoot for clear communication right off the bat. --> 🆑 add: Shortcuts to internet relays are now on the top menu bar. /🆑 <!-- Both 🆑's are required for the changelog to work! You can put your name to the right of the first 🆑 if you want to overwrite your GitHub username as author ingame. --> <!-- You can use multiple of the same prefix (they're only used for the icon ingame) and delete the unneeded ones. Despite some of the tags, changelogs should generally represent how a player might be affected by the changes rather than a summary of the PR's contents. --> <!-- By opening a pull request. You have read and understood the repository rules located on the main README.md on this project. -->
This commit is contained in:
+4
-1
@@ -53,7 +53,10 @@ menu "menu"
|
||||
command = "Hotkeys-Help"
|
||||
category = "&Help"
|
||||
saved-params = "is-checked"
|
||||
|
||||
elem "Use Internet Routing Relay"
|
||||
name = "Internet Routing Relays"
|
||||
command = "go2relay"
|
||||
saved-params = "is-checked"
|
||||
|
||||
window "mainwindow"
|
||||
elem "mainwindow"
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
#define US_EAST_RELAY "byond://useast.bubberstation.org:3000"
|
||||
#define US_WEST_RELAY "byond://uswest.bubberstation.org:3000"
|
||||
#define SYDNEY_RELAY "byond://sydney.bubberstation.org:3000"
|
||||
#define EU_RELAY "byond://germany.bubberstation.org:3000"
|
||||
#define NO_RELAY "byond://game.bubberstation.org:3000"
|
||||
|
||||
/client/verb/go2relay()
|
||||
var/list/static/relays = list(
|
||||
US_EAST_RELAY = "Connect to US-East (Virginia)",
|
||||
US_WEST_RELAY = "Connect to US-West (Oregon)",
|
||||
SYDNEY_RELAY = "Connect to Sydney, Australia",
|
||||
EU_RELAY = "Connect to Europe (Germany, Alternative)",
|
||||
NO_RELAY = "No Relay",
|
||||
)
|
||||
var/choice = tgui_input_list(usr, "Which relay do you wish to use?", "Relay choice", relays)
|
||||
usr << link(choice)
|
||||
sleep(1 SECONDS)
|
||||
winset(usr, null, "command=.quit")
|
||||
@@ -8053,6 +8053,7 @@
|
||||
#include "modular_skyrat\modules\xenos_skyrat_redo\code\xeno_types\spitter.dm"
|
||||
#include "modular_skyrat\modules\xenos_skyrat_redo\code\xeno_types\warrior.dm"
|
||||
#include "modular_zubbers\code\__DEFINES\bloodsucker.dm"
|
||||
#include "modular_zubbers\code\__DEFINES\send2relay.dm"
|
||||
#include "modular_zubbers\code\__DEFINES\traits.dm"
|
||||
#include "modular_zubbers\code\__DEFINES\votes.dm"
|
||||
#include "modular_zubbers\code\_globalvars\lists\_maintenance_loot.dm"
|
||||
|
||||
Reference in New Issue
Block a user