Report a Bug Button

Adds a button. Yup.
This commit is contained in:
skull132
2015-02-25 17:14:39 +02:00
parent 0f9263aa51
commit 6d5fa8dd60
3 changed files with 45 additions and 1 deletions
+4
View File
@@ -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
+12
View File
@@ -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"
+29 -1
View File
@@ -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