mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Map and GitHub buttons
This commit is contained in:
@@ -100,6 +100,7 @@ var/list/gamemode_cache = list()
|
|||||||
var/forumurl
|
var/forumurl
|
||||||
var/githuburl
|
var/githuburl
|
||||||
var/rulesurl
|
var/rulesurl
|
||||||
|
var/mapurl
|
||||||
|
|
||||||
//Alert level description
|
//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."
|
var/alert_desc_green = "All threats to the station have passed. Security may not have weapons visible, privacy laws are once again fully enforced."
|
||||||
@@ -421,6 +422,9 @@ var/list/gamemode_cache = list()
|
|||||||
if ("rulesurl")
|
if ("rulesurl")
|
||||||
config.rulesurl = value
|
config.rulesurl = value
|
||||||
|
|
||||||
|
if ("mapurl")
|
||||||
|
config.mapurl = value
|
||||||
|
|
||||||
if ("githuburl")
|
if ("githuburl")
|
||||||
config.githuburl = value
|
config.githuburl = value
|
||||||
if ("guest_jobban")
|
if ("guest_jobban")
|
||||||
|
|||||||
@@ -38,6 +38,32 @@
|
|||||||
src << "<span class='danger'>The rules URL is not set in the server configuration.</span>"
|
src << "<span class='danger'>The rules URL is not set in the server configuration.</span>"
|
||||||
return
|
return
|
||||||
|
|
||||||
|
/client/verb/map()
|
||||||
|
set name = "Map"
|
||||||
|
set desc = "See the map."
|
||||||
|
set hidden = 1
|
||||||
|
|
||||||
|
if(config.mapurl)
|
||||||
|
if(alert("This will open the map in your browser. Are you sure?",,"Yes","No")=="No")
|
||||||
|
return
|
||||||
|
src << link(config.mapurl)
|
||||||
|
else
|
||||||
|
src << "<span class='danger'>The map URL is not set in the server configuration.</span>"
|
||||||
|
return
|
||||||
|
|
||||||
|
/client/verb/github()
|
||||||
|
set name = "GitHub"
|
||||||
|
set desc = "Visit the GitHub"
|
||||||
|
set hidden = 1
|
||||||
|
|
||||||
|
if(config.githuburl)
|
||||||
|
if(alert("This will open the GitHub in your browser. Are you sure?",,"Yes","No")=="No")
|
||||||
|
return
|
||||||
|
src << link(config.githuburl)
|
||||||
|
else
|
||||||
|
src << "<span class='danger'>The GitHub URL is not set in the server configuration.</span>"
|
||||||
|
return
|
||||||
|
|
||||||
/client/verb/hotkeys_help()
|
/client/verb/hotkeys_help()
|
||||||
set name = "hotkeys-help"
|
set name = "hotkeys-help"
|
||||||
set category = "OOC"
|
set category = "OOC"
|
||||||
|
|||||||
@@ -1366,6 +1366,8 @@ window "chemdispenser"
|
|||||||
keep-aspect = false
|
keep-aspect = false
|
||||||
align = center
|
align = center
|
||||||
text-wrap = false
|
text-wrap = false
|
||||||
|
allow-html = false
|
||||||
|
letterbox = true
|
||||||
elem "eject"
|
elem "eject"
|
||||||
type = BUTTON
|
type = BUTTON
|
||||||
pos = 264,4
|
pos = 264,4
|
||||||
@@ -1532,6 +1534,8 @@ window "chemdispenser"
|
|||||||
keep-aspect = false
|
keep-aspect = false
|
||||||
align = center
|
align = center
|
||||||
text-wrap = false
|
text-wrap = false
|
||||||
|
allow-html = false
|
||||||
|
letterbox = true
|
||||||
elem "child1"
|
elem "child1"
|
||||||
type = CHILD
|
type = CHILD
|
||||||
pos = 0,40
|
pos = 0,40
|
||||||
@@ -1653,6 +1657,8 @@ window "chemdispenser_reagents"
|
|||||||
keep-aspect = false
|
keep-aspect = false
|
||||||
align = center
|
align = center
|
||||||
text-wrap = false
|
text-wrap = false
|
||||||
|
allow-html = false
|
||||||
|
letterbox = true
|
||||||
|
|
||||||
window "mainwindow"
|
window "mainwindow"
|
||||||
elem "mainwindow"
|
elem "mainwindow"
|
||||||
@@ -1978,7 +1984,7 @@ window "rpane"
|
|||||||
on-close = ""
|
on-close = ""
|
||||||
elem "rpanewindow"
|
elem "rpanewindow"
|
||||||
type = CHILD
|
type = CHILD
|
||||||
pos = 0,0
|
pos = 0,-3
|
||||||
size = 640x499
|
size = 640x499
|
||||||
anchor1 = 0,0
|
anchor1 = 0,0
|
||||||
anchor2 = 100,100
|
anchor2 = 100,100
|
||||||
@@ -2002,9 +2008,65 @@ window "rpane"
|
|||||||
splitter = 50
|
splitter = 50
|
||||||
show-splitter = true
|
show-splitter = true
|
||||||
lock = none
|
lock = none
|
||||||
|
elem "github"
|
||||||
|
type = BUTTON
|
||||||
|
pos = 392,0
|
||||||
|
size = 60x16
|
||||||
|
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 = "GitHub"
|
||||||
|
image = ""
|
||||||
|
command = "github"
|
||||||
|
is-flat = false
|
||||||
|
stretch = false
|
||||||
|
is-checked = false
|
||||||
|
group = "rpanemode"
|
||||||
|
button-type = pushbutton
|
||||||
|
elem "mapb"
|
||||||
|
type = BUTTON
|
||||||
|
pos = 332,0
|
||||||
|
size = 60x16
|
||||||
|
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 = "Map"
|
||||||
|
image = ""
|
||||||
|
command = "map"
|
||||||
|
is-flat = false
|
||||||
|
stretch = false
|
||||||
|
is-checked = false
|
||||||
|
group = "rpanemode"
|
||||||
|
button-type = pushbutton
|
||||||
elem "rulesb"
|
elem "rulesb"
|
||||||
type = BUTTON
|
type = BUTTON
|
||||||
pos = 278,0
|
pos = 272,0
|
||||||
size = 60x16
|
size = 60x16
|
||||||
anchor1 = none
|
anchor1 = none
|
||||||
anchor2 = none
|
anchor2 = none
|
||||||
@@ -2032,7 +2094,7 @@ window "rpane"
|
|||||||
button-type = pushbutton
|
button-type = pushbutton
|
||||||
elem "changelog"
|
elem "changelog"
|
||||||
type = BUTTON
|
type = BUTTON
|
||||||
pos = 341,0
|
pos = 488,0
|
||||||
size = 67x16
|
size = 67x16
|
||||||
anchor1 = none
|
anchor1 = none
|
||||||
anchor2 = none
|
anchor2 = none
|
||||||
@@ -2060,7 +2122,7 @@ window "rpane"
|
|||||||
button-type = pushbutton
|
button-type = pushbutton
|
||||||
elem "forumb"
|
elem "forumb"
|
||||||
type = BUTTON
|
type = BUTTON
|
||||||
pos = 215,0
|
pos = 212,0
|
||||||
size = 60x16
|
size = 60x16
|
||||||
anchor1 = none
|
anchor1 = none
|
||||||
anchor2 = none
|
anchor2 = none
|
||||||
@@ -2144,7 +2206,7 @@ window "rpane"
|
|||||||
button-type = pushbox
|
button-type = pushbox
|
||||||
elem "browseb"
|
elem "browseb"
|
||||||
type = BUTTON
|
type = BUTTON
|
||||||
pos = 464,0
|
pos = 560,0
|
||||||
size = 60x16
|
size = 60x16
|
||||||
anchor1 = none
|
anchor1 = none
|
||||||
anchor2 = none
|
anchor2 = none
|
||||||
|
|||||||
Reference in New Issue
Block a user