mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-21 12:02:31 +01:00
516 compatibility for browsers (#20652)
this is a bit of https://github.com/cmss13-devs/cmss13/pull/8646 https://github.com/cmss13-devs/cmss13/pull/8875 https://github.com/cmss13-devs/cmss13/pull/8606 https://github.com/cmss13-devs/cmss13/pull/8607 https://github.com/cmss13-devs/cmss13/pull/8359 https://github.com/cmss13-devs/cmss13/pull/7860 ( and thus https://github.com/ParadiseSS13/Paradise/pull/25105 https://github.com/ParadiseSS13/Paradise/pull/25205 https://github.com/ParadiseSS13/Paradise/pull/25363 https://github.com/ParadiseSS13/Paradise/pull/26423 and https://github.com/ParadiseSS13/Paradise/pull/26433 ) https://github.com/tgstation/tgstation/pull/89766 in order to work properly - using the efficient storage method, instead of the byond json method - github pages needs to be enabled and built from the gh-pages branch. because yeah --------- Co-authored-by: harryob <55142896+harryob@users.noreply.github.com>
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
<A href='byond://?src=[REF(src)]];create_mob=1'>Create Mob</A><br>
|
||||
"}
|
||||
|
||||
usr << browse(dat, "window=storytellerpanel;size=210x280")
|
||||
usr << browse(HTML_SKELETON(dat), "window=storytellerpanel;size=210x280")
|
||||
|
||||
/mob/abstract/ghost/storyteller/Topic(href, href_list)
|
||||
. = ..()
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
output += "</table>"
|
||||
|
||||
src << browse(output,"window=playerpolllist;size=500x300")
|
||||
src << browse(HTML_SKELETON(output),"window=playerpolllist;size=500x300")
|
||||
|
||||
/mob/abstract/new_player/proc/show_poll_link(var/pollid = -1)
|
||||
if(pollid == -1) return
|
||||
@@ -129,7 +129,7 @@
|
||||
output += "</div>"
|
||||
|
||||
|
||||
src << browse(output,"window=playerpoll;size=500x250")
|
||||
src << browse(HTML_SKELETON(output),"window=playerpoll;size=500x250")
|
||||
|
||||
//Polls with a text input
|
||||
if("TEXT")
|
||||
@@ -175,7 +175,7 @@
|
||||
output += "[vote_text]"
|
||||
|
||||
|
||||
src << browse(output,"window=playerpoll;size=500x500")
|
||||
src << browse(HTML_SKELETON(output),"window=playerpoll;size=500x500")
|
||||
|
||||
//Polls with a text input
|
||||
if("NUMVAL")
|
||||
@@ -250,7 +250,7 @@
|
||||
output += "</form>"
|
||||
|
||||
|
||||
src << browse(output,"window=playerpoll;size=500x500")
|
||||
src << browse(HTML_SKELETON(output),"window=playerpoll;size=500x500")
|
||||
|
||||
if("MULTICHOICE")
|
||||
var/DBQuery/voted_query = GLOB.dbcon.NewQuery("SELECT optionid FROM ss13_poll_vote WHERE pollid = [pollid] AND ckey = '[usr.ckey]'")
|
||||
@@ -317,7 +317,7 @@
|
||||
output += "</div>"
|
||||
|
||||
|
||||
src << browse(output,"window=playerpoll;size=500x250")
|
||||
src << browse(HTML_SKELETON(output),"window=playerpoll;size=500x250")
|
||||
return
|
||||
|
||||
/mob/abstract/new_player/proc/vote_on_poll(var/pollid = -1, var/optionid = -1, var/multichoice = 0)
|
||||
|
||||
@@ -390,7 +390,7 @@
|
||||
if(L.written_style)
|
||||
dat += "You can write in this language on papers by writing \[lang=[L.key]\]YourTextHere\[/lang\].<br/><br/>"
|
||||
|
||||
src << browse(dat, "window=checklanguage")
|
||||
src << browse(HTML_SKELETON(dat), "window=checklanguage")
|
||||
return
|
||||
|
||||
/mob/living/check_languages()
|
||||
@@ -410,7 +410,7 @@
|
||||
if(L.written_style)
|
||||
dat += "You can write in this language on papers by writing \[lang=[L.key]\]YourTextHere\[/lang\].<br/><br/>"
|
||||
|
||||
src << browse(dat, "window=checklanguage")
|
||||
src << browse(HTML_SKELETON(dat), "window=checklanguage")
|
||||
|
||||
/mob/living/Topic(href, href_list)
|
||||
if(href_list["default_lang"])
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
set desc = "Sets an extended description of your character's features."
|
||||
set category = "IC"
|
||||
|
||||
var/HTML = "<body>"
|
||||
var/HTML = ""
|
||||
HTML += "<tt><center>"
|
||||
HTML += "<b>Update Flavour Text</b> <hr />"
|
||||
HTML += "<br></center>"
|
||||
@@ -44,4 +44,4 @@
|
||||
HTML += "<hr />"
|
||||
HTML +="<a href='byond://?src=[REF(src)];flavor_change=done'>\[Done\]</a>"
|
||||
HTML += "<tt>"
|
||||
src << browse(HTML, "window=flavor_changes;size=430x300")
|
||||
src << browse(HTML_SKELETON(HTML), "window=flavor_changes;size=430x300")
|
||||
|
||||
@@ -383,7 +383,7 @@ GLOBAL_LIST_INIT(ai_verbs_default, list(
|
||||
Recall the channel list at any time by calling <code>Radio-Settings</code> under <em>AI Commands</em>.\
|
||||
</p>\
|
||||
"
|
||||
usr << browse(dat, "window=aihelp,size=520x700")
|
||||
usr << browse(HTML_SKELETON(dat), "window=aihelp,size=520x700")
|
||||
|
||||
/mob/living/silicon/ai/proc/pick_icon()
|
||||
set category = "AI Commands"
|
||||
|
||||
@@ -180,8 +180,7 @@
|
||||
if(!module)
|
||||
module = new /obj/item/robot_module/drone(src)
|
||||
|
||||
var/dat = "<HEAD><TITLE>Drone modules</TITLE></HEAD><BODY>\n"
|
||||
dat += {"
|
||||
var/dat = {"
|
||||
<B>Activated Modules</B>
|
||||
<BR>
|
||||
Module 1: [module_state_1 ? "<A href='byond://?src=[REF(src)];mod=[REF(module_state_1)]>[module_state_1]<A>" : "No Module"]<BR>
|
||||
@@ -221,4 +220,4 @@
|
||||
|
||||
dat += resources
|
||||
|
||||
src << browse(dat, "window=robotmod")
|
||||
src << browse(HTML_SKELETON_TITLE("Drone modules", dat), "window=robotmod")
|
||||
|
||||
@@ -485,7 +485,7 @@
|
||||
to_chat(src, SPAN_WARNING("WARNING: Power too low for self-diagnostic functions."))
|
||||
return
|
||||
var/dat = self_diagnosis()
|
||||
src << browse(dat, "window=robotdiagnosis")
|
||||
src << browse(HTML_SKELETON(dat), "window=robotdiagnosis")
|
||||
|
||||
/mob/living/silicon/robot/verb/toggle_component()
|
||||
set category = "Robot Commands"
|
||||
@@ -896,7 +896,7 @@
|
||||
dat += "[module.malf_AI_module]: <B>Activated</B><BR>"
|
||||
else
|
||||
dat += "[module.malf_AI_module]: <A href='byond://?src=[REF(src)];act=[REF(module.malf_AI_module)]>Activate</A><BR>"
|
||||
src << browse(dat, "window=robotmod")
|
||||
src << browse(HTML_SKELETON(dat), "window=robotmod")
|
||||
|
||||
|
||||
/mob/living/silicon/robot/Topic(href, href_list)
|
||||
|
||||
@@ -231,7 +231,7 @@
|
||||
var/synth = (L in speech_synthesizer_langs)
|
||||
dat += "<b>[L.name] ([get_language_prefix()][L.key])</b>[synth ? default_str : null]<br/>Speech Synthesizer: <i>[synth ? "YES" : "NOT SUPPORTED"]</i><br/>[L.desc]<br/><br/>"
|
||||
|
||||
src << browse(dat, "window=checklanguage")
|
||||
src << browse(HTML_SKELETON(dat), "window=checklanguage")
|
||||
return
|
||||
|
||||
/mob/living/silicon/proc/toggle_sensor_mode()
|
||||
|
||||
@@ -136,7 +136,7 @@
|
||||
else
|
||||
dat += "<br><b>Headset:</b> <a href='byond://?src=[REF(src)];add_inv=ears'>Nothing</a>"
|
||||
|
||||
user << browse(dat, "window=mob[name];size=325x500")
|
||||
user << browse(HTML_SKELETON(dat), "window=mob[name];size=325x500")
|
||||
onclose(user, "mob[real_name]")
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user