mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-27 14:08:44 +01:00
browse to browser part 1 (#17800)
* browse to browser * some more * fix that * fix that * . * datum browser update port * . * .
This commit is contained in:
@@ -238,7 +238,9 @@
|
||||
if(index == page)
|
||||
dat = span_bold(dat)
|
||||
|
||||
usr << browse("<html>[dat]</html>", "window=player_notes;size=400x400")
|
||||
var/datum/browser/popup = new(usr, "player_notes", "Admin Playernotes", 480, 480)
|
||||
popup.set_content(dat)
|
||||
popup.open()
|
||||
|
||||
/datum/admins/proc/player_has_info_legacy(var/key as text)
|
||||
var/savefile/info = new("data/player_saves/[copytext(key, 1, 2)]/[key]/info.sav")
|
||||
@@ -253,8 +255,7 @@
|
||||
if (!istype(src,/datum/admins))
|
||||
to_chat(usr, "Error: you are not an admin!")
|
||||
return
|
||||
var/dat = "<html><head><title>Info on [key]</title></head>"
|
||||
dat += "<body>"
|
||||
var/dat = ""
|
||||
|
||||
var/p_age = "unknown"
|
||||
for(var/client/C in GLOB.clients)
|
||||
@@ -288,8 +289,10 @@
|
||||
dat += "<br>"
|
||||
dat += "<A href='byond://?src=\ref[src];[HrefToken()];add_player_info_legacy=[key]'>Add Comment</A><br>"
|
||||
|
||||
dat += "</body></html>"
|
||||
usr << browse(dat, "window=adminplayerinfo;size=480x480")
|
||||
var/datum/browser/popup = new(usr, "adminplayerinfo", "Admin Playerinfo", 480, 480)
|
||||
popup.add_head_content("<title>Info on [key]</title>")
|
||||
popup.set_content(dat)
|
||||
popup.open()
|
||||
|
||||
/datum/admins/Topic(href, href_list)
|
||||
..()
|
||||
|
||||
Reference in New Issue
Block a user