diff --git a/code/controllers/configuration.dm b/code/controllers/configuration.dm index ce70d501..0d7dea4f 100644 --- a/code/controllers/configuration.dm +++ b/code/controllers/configuration.dm @@ -86,6 +86,7 @@ var/wikiurl var/forumurl var/aurorawikiurl + var/githuburl //Alert level description var/alert_desc_green = "All threats to the station have passed. Security may not have weapons visible, privacy laws are once again fully enforced." @@ -339,6 +340,9 @@ if ("aurorawikiurl") config.aurorawikiurl = value + if ("githuburl") + config.githuburl = value + if ("guest_jobban") config.guest_jobban = 1 diff --git a/interface/interface.dm b/interface/interface.dm index dbead8d3..ff8d3767 100644 --- a/interface/interface.dm +++ b/interface/interface.dm @@ -35,6 +35,18 @@ src << "\red The URL for the Aurorastation wiki is not set in the server configuration." return +/client/verb/github() + set name = "github" + set desc = "Visit the Aurorastation Github page, where bugs and issues can be reported!" + set hidden = 1 + if ( config.githuburl ) + if(alert("This will open the Github Issues page in your browser. Are you sure?",,"Yes","No")=="No") + return + src << link(config.githuburl) + else + src << "\red The URL for the server's Github (issues) page is not set in the server configuration." + return + #define RULES_FILE "config/rules.html" /client/verb/rules() set name = "Rules" diff --git a/interface/skin.dmf b/interface/skin.dmf index 111f5685..d0a59f86 100644 --- a/interface/skin.dmf +++ b/interface/skin.dmf @@ -1577,6 +1577,34 @@ window "rpane" is-checked = false group = "rpanemode" button-type = pushbutton + elem "githubb" + type = BUTTON + pos = 461,0 + size = 67x16 + anchor1 = none + anchor2 = none + font-family = "" + font-size = 0 + font-style = "" + text-color = #000000 + background-color = none + is-visible = true + is-disabled = false + is-transparent = false + is-default = false + border = none + drop-zone = false + right-click = false + saved-params = "is-checked" + on-size = "" + text = "Bug Report" + image = "" + command = "github" + is-flat = false + stretch = false + is-checked = false + group = "rpanemode" + button-type = pushbutton elem "aurorawikib" type = BUTTON pos = 202,0 @@ -1663,7 +1691,7 @@ window "rpane" button-type = pushbox elem "browseb" type = BUTTON - pos = 464,0 + pos = 564,0 size = 60x16 anchor1 = none anchor2 = none