mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] browse to browser continued (#11088)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
2a0bb3120b
commit
590a653d5a
@@ -483,4 +483,6 @@
|
||||
output += "</table></div>"
|
||||
qdel(select_query)
|
||||
|
||||
usr << browse("<html>[output]</html>","window=lookupbans;size=900x700")
|
||||
var/datum/browser/popup = new(owner, "lookupbans", "Lookup Bans", 900, 700)
|
||||
popup.set_content(output)
|
||||
popup.open()
|
||||
|
||||
@@ -190,7 +190,10 @@ var/savefile/Banlist
|
||||
|
||||
dat += "</table>"
|
||||
dat = "<HR>" + span_bold("Bans:") + " " + span_blue("(U) = Unban , (E) = Edit Ban") + " - " + span_green("([count] Bans)") + "<HR><table border=1 rules=all frame=void cellspacing=0 cellpadding=3 >[dat]"
|
||||
usr << browse("<html>[dat]</html>", "window=unbanp;size=875x400")
|
||||
|
||||
var/datum/browser/popup = new(owner, "unbanp", "Unban", 875, 400)
|
||||
popup.set_content(dat)
|
||||
popup.open()
|
||||
|
||||
//////////////////////////////////// DEBUG ////////////////////////////////////
|
||||
|
||||
|
||||
@@ -67,7 +67,11 @@
|
||||
dat = "<table width='100%'>[dat]</table>"
|
||||
else
|
||||
dat = "No addresses in list."
|
||||
src << browse("<html>[dat]</html>","window=ToRban_show")
|
||||
|
||||
var/datum/browser/popup = new(src, "ToRban_show", "Torban")
|
||||
popup.set_content(dat)
|
||||
popup.open()
|
||||
|
||||
if("remove")
|
||||
var/savefile/F = new(TORFILE)
|
||||
var/choice = tgui_input_list(src,"Please select an IP address to remove from the ToR banlist:","Remove ToR ban", F.dir)
|
||||
|
||||
@@ -53,8 +53,7 @@ GLOBAL_VAR_INIT(floorIsLava, 0)
|
||||
to_chat(usr, "Error: you are not an admin!")
|
||||
return
|
||||
|
||||
var/body = "<html><head><title>Options for [M.key]</title></head>"
|
||||
body += "<body>Options panel for" + span_bold("[M]")
|
||||
var/body = "Options panel for" + span_bold("[M]")
|
||||
if(M.client)
|
||||
body += " played by " + span_bold("[M.client]")
|
||||
body += "\[<A href='byond://?src=\ref[src];[HrefToken()];editrights=show'>[M.client.holder ? M.client.holder.rank_names() : "Player"]</A>\]"
|
||||
@@ -236,11 +235,13 @@ GLOBAL_VAR_INIT(floorIsLava, 0)
|
||||
else
|
||||
body += "<a href='byond://?src=\ref[src];[HrefToken()];toglang=\ref[M];lang=[html_encode(k)]' style='color:#ff0000'>[k]</a>"
|
||||
|
||||
body += {"<br>
|
||||
</body></html>
|
||||
"}
|
||||
body += {"<br>"}
|
||||
|
||||
var/datum/browser/popup = new(owner, "adminplayeropts", "Edit Player", 550, 515)
|
||||
popup.add_head_content("<title>Options for [M.key]</title>")
|
||||
popup.set_content(body)
|
||||
popup.open()
|
||||
|
||||
usr << browse(body, "window=adminplayeropts;size=550x515")
|
||||
feedback_add_details("admin_verb","SPP") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
|
||||
@@ -314,7 +315,7 @@ GLOBAL_VAR_INIT(floorIsLava, 0)
|
||||
to_chat(usr, "Error: you are not an admin!")
|
||||
return
|
||||
var/dat
|
||||
dat = text("<HEAD><TITLE>Admin Newscaster</TITLE></HEAD><H3>Admin Newscaster Unit</H3>")
|
||||
dat = text("<H3>Admin Newscaster Unit</H3>")
|
||||
|
||||
switch(admincaster_screen)
|
||||
if(0)
|
||||
@@ -547,10 +548,11 @@ GLOBAL_VAR_INIT(floorIsLava, 0)
|
||||
|
||||
//to_world("Channelname: [src.admincaster_feed_channel.channel_name] [src.admincaster_feed_channel.author]")
|
||||
//to_world("Msg: [src.admincaster_feed_message.author] [src.admincaster_feed_message.body]")
|
||||
usr << browse("<html>[dat]</html>", "window=admincaster_main;size=400x600")
|
||||
onclose(usr, "admincaster_main")
|
||||
|
||||
|
||||
var/datum/browser/popup = new(owner, "admincaster_main", "Admin Newscaster", 400, 600)
|
||||
popup.add_head_content("<TITLE>Admin Newscaster</TITLE>")
|
||||
popup.set_content(dat)
|
||||
popup.open()
|
||||
|
||||
/datum/admins/proc/Jobbans()
|
||||
if(!check_rights(R_BAN)) return
|
||||
@@ -562,13 +564,17 @@ GLOBAL_VAR_INIT(floorIsLava, 0)
|
||||
r = copytext( r, 1, findtext(r,"##") )//removes the description
|
||||
dat += text("<tr><td>[t] (<A href='byond://?src=\ref[src];[HrefToken()];removejobban=[r]'>unban</A>)</td></tr>")
|
||||
dat += "</table>"
|
||||
usr << browse("<html>[dat]</html>", "window=ban;size=400x400")
|
||||
|
||||
var/datum/browser/popup = new(owner, "ban", "Job Bans", 400, 400)
|
||||
popup.add_head_content("<TITLE>Admin Newscaster</TITLE>")
|
||||
popup.set_content(dat)
|
||||
popup.open()
|
||||
|
||||
/datum/admins/proc/Game()
|
||||
if(!check_rights(0)) return
|
||||
|
||||
var/dat = {"
|
||||
<html><center>"} + span_bold("Game Panel") + {"</center><hr>\n
|
||||
<center>"} + span_bold("Game Panel") + {"</center><hr>\n
|
||||
<A href='byond://?src=\ref[src];[HrefToken()];c_mode=1'>Change Game Mode</A><br>
|
||||
"}
|
||||
if(GLOB.master_mode == "secret")
|
||||
@@ -582,11 +588,12 @@ GLOBAL_VAR_INIT(floorIsLava, 0)
|
||||
<A href='byond://?src=\ref[src];[HrefToken()];create_mob=1'>Create Mob</A><br>
|
||||
<br><A href='byond://?src=\ref[src];[HrefToken()];vsc=airflow'>Edit Airflow Settings</A><br>
|
||||
<A href='byond://?src=\ref[src];[HrefToken()];vsc=phoron'>Edit Phoron Settings</A><br>
|
||||
<A href='byond://?src=\ref[src];[HrefToken()];vsc=default'>Choose a default ZAS setting</A><br></html>
|
||||
<A href='byond://?src=\ref[src];[HrefToken()];vsc=default'>Choose a default ZAS setting</A><br>
|
||||
"}
|
||||
|
||||
usr << browse(dat, "window=admin2;size=210x280")
|
||||
return
|
||||
var/datum/browser/popup = new(owner, "admin2", "Game Panel", 210, 280)
|
||||
popup.set_content(dat)
|
||||
popup.open()
|
||||
|
||||
/datum/admins/proc/Secrets(var/datum/admin_secret_category/active_category = null)
|
||||
if(!check_rights(0)) return
|
||||
@@ -1255,7 +1262,9 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
out += " None."
|
||||
out += " <a href='byond://?src=\ref[ticker.mode];[HrefToken()];add_antag_type=1'>\[+\]</a><br/>"
|
||||
|
||||
usr << browse("<html>[out]</html>", "window=edit_mode[src]")
|
||||
var/datum/browser/popup = new(owner, "edit_mode[src]", "Edit Game Mode")
|
||||
popup.set_content(out)
|
||||
popup.open()
|
||||
feedback_add_details("admin_verb","SGM")
|
||||
|
||||
|
||||
|
||||
@@ -115,8 +115,9 @@ world/New()
|
||||
else
|
||||
output += "Whoops, no reports!"
|
||||
|
||||
usr << browse("<html>[output]</html>", "window=news;size=600x400")
|
||||
|
||||
var/datum/browser/popup = new(src, "news", "News", 600, 400)
|
||||
popup.set_content(output)
|
||||
popup.open()
|
||||
|
||||
/client/proc/Report(mob/M as mob in world)
|
||||
set category = "Admin.Moderation"
|
||||
|
||||
@@ -721,8 +721,10 @@ ADMIN_VERB(removetickets, R_ADMIN, "Security Tickets", "Allows one to remove tic
|
||||
dat += "</table>"
|
||||
|
||||
qdel(query)
|
||||
usr << browse("<html>[dat]</html>", "window=library")
|
||||
onclose(usr, "library")
|
||||
|
||||
var/datum/browser/popup = new(src, "library", "Delete Book")
|
||||
popup.set_content(dat)
|
||||
popup.open()
|
||||
|
||||
/client/proc/toggle_spawning_with_recolour()
|
||||
set name = "Toggle Simple/Robot recolour verb"
|
||||
|
||||
@@ -232,7 +232,10 @@ var/savefile/Banlistjob
|
||||
|
||||
dat += "</table>"
|
||||
dat = "<HR>" + span_bold("Bans:") + " " span_blue("(U) = Unban , ") + " - " + span_green("([count] Bans)") + "<HR><table border=1 rules=all frame=void cellspacing=0 cellpadding=3 >[dat]"
|
||||
usr << browse("<html>[dat]</html>", "window=unbanp;size=875x400")
|
||||
|
||||
var/datum/browser/popup = new(owner, "unbanjob", "Unban Job", 875, 400)
|
||||
popup.set_content(dat)
|
||||
popup.open()
|
||||
|
||||
/*/datum/admins/proc/permjobban(ckey, computerid, reason, bannedby, temp, minutes, rank)
|
||||
if(AddBanjob(ckey, computerid, reason, usr.ckey, 0, 0, job))
|
||||
|
||||
@@ -133,7 +133,10 @@
|
||||
output += "</table></div><div id='top'><b>Search:</b> <input type='text' id='filter' value='' style='width:70%;' onkeyup='updateSearch();'></div></body>"
|
||||
if(QDELETED(usr))
|
||||
return
|
||||
usr << browse("<!DOCTYPE html><html>[jointext(output, "")]</html>","window=editrights;size=1000x650")
|
||||
|
||||
var/datum/browser/popup = new(owner, "editrights", "Edit Rights", 1000, 650)
|
||||
popup.set_content(jointext(output, ""))
|
||||
popup.open()
|
||||
|
||||
/datum/admins/proc/edit_rights_topic(list/href_list)
|
||||
if(!check_rights(R_PERMISSIONS))
|
||||
|
||||
@@ -9,4 +9,7 @@
|
||||
var/dat = span_bold("Bombing List")
|
||||
for(var/l in GLOB.bombers)
|
||||
dat += text("[l]<BR>")
|
||||
user << browse("<html>[dat]</html>", "window=bombers")
|
||||
|
||||
var/datum/browser/popup = new(user, "bombers", "Bombers")
|
||||
popup.set_content(dat)
|
||||
popup.open()
|
||||
|
||||
@@ -11,4 +11,7 @@
|
||||
if(H.dna && H.ckey)
|
||||
dat += "<tr><td>[H]</td><td>[H.dna.unique_enzymes]</td><td>[H.dna ? H.dna.b_type : DEFAULT_BLOOD_TYPE]</td></tr>"
|
||||
dat += "</table>"
|
||||
user << browse("<html>[dat]</html>", "window=DNA;size=440x410")
|
||||
|
||||
var/datum/browser/popup = new(user, "DNA", "DNA", 440, 410)
|
||||
popup.set_content(dat)
|
||||
popup.open()
|
||||
|
||||
@@ -16,4 +16,7 @@
|
||||
else if(!H.dna)
|
||||
dat += "<tr><td>[H]</td><td>H.dna = null</td></tr>"
|
||||
dat += "</table>"
|
||||
user << browse("<html>[dat]</html>", "window=fingerprints;size=440x410")
|
||||
|
||||
var/datum/browser/popup = new(user, "fingerprints", "Fingerprints", 440, 410)
|
||||
popup.set_content(dat)
|
||||
popup.open()
|
||||
|
||||
@@ -9,4 +9,6 @@
|
||||
dat += "<h4>Crew Manifest</h4>"
|
||||
dat += GLOB.data_core.get_manifest()
|
||||
|
||||
user << browse("<html>[dat]</html>", "window=manifest;size=370x420;can_close=1")
|
||||
var/datum/browser/popup = new(user, "manifest", "Manifest", 370, 420)
|
||||
popup.set_content(dat)
|
||||
popup.open()
|
||||
|
||||
@@ -12,4 +12,7 @@
|
||||
var/dat = span_bold("Showing last [length(GLOB.lawchanges)] law changes.") + "<HR>"
|
||||
for(var/sig in GLOB.lawchanges)
|
||||
dat += "[sig]<BR>"
|
||||
user << browse("<html>[dat]</html>", "window=GLOB.lawchanges;size=800x500")
|
||||
|
||||
var/datum/browser/popup = new(user, "lawchanges", "Lawcahnges", 800, 500)
|
||||
popup.set_content(dat)
|
||||
popup.open()
|
||||
|
||||
@@ -12,4 +12,7 @@
|
||||
var/dat = span_bold("Showing last [length(GLOB.lastsignalers)] signalers.") + "<HR>"
|
||||
for(var/sig in GLOB.lastsignalers)
|
||||
dat += "[sig]<BR>"
|
||||
user << browse("<html>[dat]</html>", "window=lastsignalers;size=800x500")
|
||||
|
||||
var/datum/browser/popup = new(user, "lastsignalers", "Last Signallers", 800, 500)
|
||||
popup.set_content(dat)
|
||||
popup.open()
|
||||
|
||||
@@ -21,7 +21,9 @@ var/inactive_keys = "None<br>"
|
||||
else
|
||||
dat += "<a href='byond://?src=\ref[src];_src_=holder;[HrefToken()];populate_inactive_customitems=1'>Populate list (requires an active database connection)</a><br>"
|
||||
|
||||
usr << browse("<html>[dat]</html>", "window=inactive_customitems;size=600x480")
|
||||
var/datum/browser/popup = new(src, "inactive_customitems", "Inactive Custom Items", 600, 480)
|
||||
popup.set_content(dat)
|
||||
popup.open()
|
||||
|
||||
/proc/populate_inactive_customitems_list(var/client/C)
|
||||
set background = 1
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
else
|
||||
inactive_on_main_station++
|
||||
|
||||
var/output = {"<html><B>AIR SYSTEMS REPORT</B><HR>
|
||||
var/output = {"<B>AIR SYSTEMS REPORT</B><HR>
|
||||
<B>General Processing Data</B><BR>
|
||||
Cycle: [SSair.current_cycle]<br>
|
||||
Groups: [SSair.zones.len]<BR>
|
||||
@@ -36,10 +36,12 @@
|
||||
Hotspot Processing: [hotspots]<BR>
|
||||
<br>
|
||||
<B>Geometry Processing Data</B><BR>
|
||||
Tile Update: [SSair.tiles_to_update.len]<BR></html>
|
||||
Tile Update: [SSair.tiles_to_update.len]<BR>
|
||||
"}
|
||||
|
||||
usr << browse(output,"window=airreport")
|
||||
var/datum/browser/popup = new(src, "airreport", "Airreport")
|
||||
popup.set_content(output)
|
||||
popup.open()
|
||||
|
||||
/client/proc/fix_next_move()
|
||||
set category = "Debug.Game"
|
||||
@@ -95,7 +97,9 @@
|
||||
else
|
||||
output += " [device]<br>"
|
||||
|
||||
usr << browse("<html>[output]</html>","window=radioreport")
|
||||
var/datum/browser/popup = new(src, "radioreport", "Radioreport")
|
||||
popup.set_content(output)
|
||||
popup.open()
|
||||
feedback_add_details("admin_verb","RR") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/client/proc/reload_admins()
|
||||
|
||||
@@ -78,7 +78,7 @@ GLOBAL_LIST_BOILERPLATE(all_debugging_effects, /obj/effect/debugging)
|
||||
for(var/obj/machinery/camera/C in cameranet.cameras)
|
||||
CL += C
|
||||
|
||||
var/output = {""} + span_bold("CAMERA ANNOMALITIES REPORT") + {"<HR>
|
||||
var/output = span_bold("CAMERA ANNOMALITIES REPORT") + {"<HR>
|
||||
"} + span_bold("The following annomalities have been detected. The ones in red need immediate attention: Some of those in black may be intentional.") + {"<BR><ul>"}
|
||||
|
||||
for(var/obj/machinery/camera/C1 in CL)
|
||||
@@ -102,7 +102,10 @@ GLOBAL_LIST_BOILERPLATE(all_debugging_effects, /obj/effect/debugging)
|
||||
output += "<li>" + span_red("Camera not connected to wall at \[[C1.x], [C1.y], [C1.z]\] ([C1.loc.loc]) Network: [C1.network]") + "</li>"
|
||||
|
||||
output += "</ul>"
|
||||
usr << browse("<html>[output]</html>","window=airreport;size=1000x500")
|
||||
|
||||
var/datum/browser/popup = new(src, "airreport", "Airreport", 1000, 500)
|
||||
popup.set_content(output)
|
||||
popup.open()
|
||||
feedback_add_details("admin_verb","mCRP") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/client/proc/intercom_view()
|
||||
|
||||
Reference in New Issue
Block a user