Merge pull request #16759 from AffectedArc07/webmap-button

Adds a webmap button
This commit is contained in:
variableundefined
2021-09-22 22:35:08 -05:00
committed by GitHub
8 changed files with 37 additions and 8 deletions
+12
View File
@@ -0,0 +1,12 @@
/client/verb/webmap()
set name = "webmap"
set hidden = TRUE
if(!SSmapping.map_datum.webmap_url)
to_chat(usr, "<span class='warning'>The current map has no defined webmap. Please file an issue report.</span>")
return
if(alert(usr, "Do you want to open this map's Webmap in your browser?", "Webmap", "Yes", "No") != "Yes")
return
usr << link(SSmapping.map_datum.webmap_url)
+2
View File
@@ -834,6 +834,7 @@
winset(src, "rpane.forumb", "background-color=#40628a;text-color=#FFFFFF")
winset(src, "rpane.rulesb", "background-color=#40628a;text-color=#FFFFFF")
winset(src, "rpane.githubb", "background-color=#40628a;text-color=#FFFFFF")
winset(src, "rpane.webmap", "background-color=#40628a;text-color=#FFFFFF")
/* Mainwindow */
winset(src, "mainwindow.saybutton", "background-color=#40628a;text-color=#FFFFFF")
winset(src, "mainwindow.mebutton", "background-color=#40628a;text-color=#FFFFFF")
@@ -866,6 +867,7 @@
winset(src, "rpane.forumb", "background-color=none;text-color=#000000")
winset(src, "rpane.rulesb", "background-color=none;text-color=#000000")
winset(src, "rpane.githubb", "background-color=none;text-color=#000000")
winset(src, "rpane.webmap", "background-color=none;text-color=#000000")
/* Mainwindow */
winset(src, "mainwindow.saybutton", "background-color=none;text-color=#000000")
winset(src, "mainwindow.mebutton", "background-color=none;text-color=#000000")
+2
View File
@@ -12,3 +12,5 @@
var/technical_name
/// Path to the map file
var/map_path
/// URL to the maps webmap
var/webmap_url
+1
View File
@@ -2,3 +2,4 @@
fluff_name = "NSS Cyberiad"
technical_name = "Cyberiad"
map_path = "_maps/map_files/cyberiad/cyberiad.dmm"
webmap_url = "https://affectedarc07.github.io/SS13WebMap/Paradise/Cyberiad/"
+1
View File
@@ -2,3 +2,4 @@
fluff_name = "NSS Kerberos"
technical_name = "Delta"
map_path = "_maps/map_files/Delta/delta.dmm"
webmap_url = "https://affectedarc07.github.io/SS13WebMap/Paradise/Delta/"
+1
View File
@@ -2,3 +2,4 @@
fluff_name = "NSS Cerebron"
technical_name = "MetaStation"
map_path = "_maps/map_files/MetaStation/MetaStation.dmm"
webmap_url = "https://affectedarc07.github.io/SS13WebMap/Paradise/MetaStation/"
+17 -8
View File
@@ -287,6 +287,15 @@ window "rpane"
is-checked = true
group = "rpanemode"
button-type = pushbox
elem "webmap"
type = BUTTON
pos = 358,7
size = 50x16
anchor1 = none
anchor2 = none
saved-params = "is-checked"
text = "Map"
command = "webmap"
elem "infob"
type = BUTTON
pos = 64,7
@@ -301,8 +310,8 @@ window "rpane"
button-type = pushbox
elem "wikib"
type = BUTTON
pos = 155,7
size = 60x16
pos = 150,7
size = 50x16
anchor1 = none
anchor2 = none
saved-params = "is-checked"
@@ -310,8 +319,8 @@ window "rpane"
command = "wiki"
elem "forumb"
type = BUTTON
pos = 220,7
size = 60x16
pos = 202,7
size = 50x16
anchor1 = none
anchor2 = none
saved-params = "is-checked"
@@ -319,8 +328,8 @@ window "rpane"
command = "forum"
elem "rulesb"
type = BUTTON
pos = 285,7
size = 60x16
pos = 254,7
size = 50x16
anchor1 = none
anchor2 = none
saved-params = "is-checked"
@@ -328,8 +337,8 @@ window "rpane"
command = "rules"
elem "githubb"
type = BUTTON
pos = 350,7
size = 60x16
pos = 306,7
size = 50x16
anchor1 = none
anchor2 = none
saved-params = "is-checked"
+1
View File
@@ -1162,6 +1162,7 @@
#include "code\game\verbs\ooc.dm"
#include "code\game\verbs\randomtip.dm"
#include "code\game\verbs\suicide.dm"
#include "code\game\verbs\webmap.dm"
#include "code\game\verbs\who.dm"
#include "code\modules\admin\admin.dm"
#include "code\modules\admin\admin_investigate.dm"