Skip to content

Commit

Permalink
add links
Browse files Browse the repository at this point in the history
  • Loading branch information
E231kei500bandai committed Apr 16, 2024
1 parent 8e4bf65 commit 02ab3ed
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 20 deletions.
2 changes: 1 addition & 1 deletion code/controllers/configuration/entries/general.dm
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
/datum/config_entry/string/wikiurl
config_entry_value = ""

/datum/config_entry/string/forumurl
/datum/config_entry/string/discordurl
config_entry_value = ""

/datum/config_entry/string/rulesurl
Expand Down
10 changes: 5 additions & 5 deletions config/config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -231,17 +231,17 @@ USEBLACKLIST
## Don't set this to the same server, BYOND will automatically restart players to the server when it has restarted.
# SERVER ss13.example.com:2506

## forum address
# FORUMURL http://tgstation13.org/phpBB/index.php
## Discod address
DISCORDURL https://discord.gg/bx9c7ha5Qk

## Wiki address
# WIKIURL http://www.tgstation13.org/wiki
WIKIURL https://wiki.moviesfreepremium.xyz/blackstone

## Rules address
# RULESURL http://www.tgstation13.org/wiki/Rules
RULESURL https://wiki.moviesfreepremium.xyz/blackstone/rules

## Github address
# GITHUBURL https://www.github.com/tgstation/tgstation
GITHUBURL https://github.com/Blackstone-SS13/BLACKSTONE

## Round specific stats address
## Link to round specific parsed logs; IE statbus. It is appended with the RoundID automatically by ticker/Reboot()
Expand Down
27 changes: 13 additions & 14 deletions interface/interface.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/client/verb/wiki(query as text)
set name = "wiki"
set desc = ""
set hidden = 1
set category = "OOC"
var/wikiurl = CONFIG_GET(string/wikiurl)
if(wikiurl)
if(query)
Expand All @@ -14,23 +14,23 @@
to_chat(src, "<span class='danger'>The wiki URL is not set in the server configuration.</span>")
return

/client/verb/forum()
set name = "forum"
/client/verb/discord()
set name = "discord"
set desc = ""
set hidden = 1
var/forumurl = CONFIG_GET(string/forumurl)
if(forumurl)
if(alert("This will open the forum in your browser. Are you sure?",,"Yes","No")!="Yes")
set category = "OOC"
var/discordurl = CONFIG_GET(string/discordurl)
if(discordurl)
if(alert("This will open the discord. Are you sure?",,"Yes","No")!="Yes")
return
src << link(forumurl)
src << link(discordurl)
else
to_chat(src, "<span class='danger'>The forum URL is not set in the server configuration.</span>")
return

/client/verb/rules()
set name = "rules"
set desc = ""
set hidden = 1
set category = "OOC"
var/rulesurl = CONFIG_GET(string/rulesurl)
if(rulesurl)
if(alert("This will open the rules in your browser. Are you sure?",,"Yes","No")!="Yes")
Expand All @@ -43,7 +43,7 @@
/client/verb/github()
set name = "github"
set desc = ""
set hidden = 1
set category = "OOC"
var/githuburl = CONFIG_GET(string/githuburl)
if(githuburl)
if(alert("This will open the Github repository in your browser. Are you sure?",,"Yes","No")!="Yes")
Expand All @@ -56,7 +56,7 @@
/client/verb/reportissue()
set name = "report-issue"
set desc = ""
set hidden = 1
set category = "OOC"
var/githuburl = CONFIG_GET(string/githuburl)
if(githuburl)
var/message = "This will open the Github issue reporter in your browser. Are you sure?"
Expand Down Expand Up @@ -88,9 +88,8 @@
winset(src, "infowindow.changelog", "font-style=;")

/client/verb/hotkeys_help()
set name = "zHelp-Controls"
set category = "Options"

set name = "_Help-Controls"
set category = "OOC"
mob.hotkey_help()


Expand Down

0 comments on commit 02ab3ed

Please sign in to comment.