From f5e4d0eca24e2f3d7cda2b37c8449634fc134d7b Mon Sep 17 00:00:00 2001 From: ArcBot Date: Mon, 16 May 2016 16:29:29 -0400 Subject: [PATCH] Adds the report bug button again. --- code/controllers/configuration.dm | 4 ++++ interface/interface.dm | 12 ++++++++++++ interface/skin.dmf | 30 +++++++++++++++++++++++++++++- 3 files changed, 45 insertions(+), 1 deletion(-) diff --git a/code/controllers/configuration.dm b/code/controllers/configuration.dm index ec7719154c9..4fdcba63b72 100644 --- a/code/controllers/configuration.dm +++ b/code/controllers/configuration.dm @@ -100,6 +100,7 @@ var/list/gamemode_cache = list() var/banappeals var/wikiurl var/forumurl + var/reporturl var/githuburl //Alert level description @@ -409,6 +410,9 @@ var/list/gamemode_cache = list() if ("forumurl") config.forumurl = value + if ("reporturl") + config.reporturl = value + if ("githuburl") config.githuburl = value diff --git a/interface/interface.dm b/interface/interface.dm index 4b2688e3442..56d95ef1f40 100644 --- a/interface/interface.dm +++ b/interface/interface.dm @@ -23,6 +23,18 @@ src << "\red The forum URL is not set in the server configuration." return +/client/verb/reportbug() + set name = "reportbug" + set desc = "Report a bug." + set hidden = 1 + if( config.reporturl ) + if(alert("This will open the issue tracker in your browser. Are you sure?",,"Yes","No")=="No") + return + src << link(config.reporturl) + else + src << "\red The issue tracker URL 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 d9f0f48c0ff..e8b587d0a58 100644 --- a/interface/skin.dmf +++ b/interface/skin.dmf @@ -2049,6 +2049,34 @@ window "rpane" is-checked = false group = "rpanemode" button-type = pushbutton + elem "reportbugb" + type = BUTTON + pos = 410,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 = "Report Bug" + image = "" + command = "reportbug" + is-flat = false + stretch = false + is-checked = false + group = "rpanemode" + button-type = pushbutton elem "forumb" type = BUTTON pos = 215,0 @@ -2135,7 +2163,7 @@ window "rpane" button-type = pushbox elem "browseb" type = BUTTON - pos = 464,0 + pos = 480,0 size = 60x16 anchor1 = none anchor2 = none