mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-09 07:57:50 +00:00
* 516 compat: HTML wrappers * More HTML * Legacy gult * Forgot these * forgot that thanks travis
37 lines
942 B
Plaintext
37 lines
942 B
Plaintext
/datum/admins/proc/climate_panel()
|
|
if (!map.climate)
|
|
alert("This map has no climate!")
|
|
return
|
|
|
|
var/datum/climate/C = map.climate
|
|
var/datum/weather/W = C.current_weather
|
|
var/dat = {"<html>
|
|
<head>
|
|
<style>
|
|
table,h2 {
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
border-collapse: collapse;
|
|
}
|
|
td, th {
|
|
border: 1px solid #dddddd;
|
|
padding: 8px;
|
|
}
|
|
tr:nth-child(even) {
|
|
background-color: #dddddd;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h2 style="text-align:center">Climate Panel</h2>
|
|
Climate: <a href='?_src_=vars;Vars=\ref[map.climate]'>\[VV\]</A><BR>
|
|
Current Weather: [W.name] <a href='?_src_=vars;Vars=\ref[W]'>\[VV\]</A> (<a href='?src=\ref[src];climate_timeleft=\ref[W]'>Remaining</A>: [formatTimeDuration(W.timeleft)])<BR>
|
|
<a href='?src=\ref[src];climate_weather=\ref[C]'>Quick-Change Weather</A>
|
|
"}
|
|
|
|
dat += {"
|
|
</body>
|
|
</html>
|
|
"}
|
|
|
|
usr << browse(HTML_SKELETON(dat), "window=climatepanel;size=360x175")
|