mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-30 16:48:12 +01:00
[MIRROR] browse to browser continued (#11088)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
Kashargul
parent
2a0bb3120b
commit
590a653d5a
@@ -42,9 +42,10 @@
|
||||
if(src.occupant)
|
||||
dat += "[src.ready ? "<A href='byond://?src=\ref[src];implant=1'>Implant</A>" : "Recharging"]<BR>"
|
||||
user.set_machine(src)
|
||||
user << browse("<html>[dat]</html>", "window=implant")
|
||||
onclose(user, "implant")
|
||||
|
||||
var/datum/browser/popup = new(user, "implant", "Implant")
|
||||
popup.set_content(dat)
|
||||
popup.open()
|
||||
|
||||
/obj/machinery/implantchair/Topic(href, href_list)
|
||||
if((get_dist(src, usr) <= 1) || isAI(usr))
|
||||
|
||||
@@ -26,9 +26,10 @@
|
||||
dat += span_bold("Four uses use them wisely:") + "<BR>"
|
||||
dat += "<A href='byond://?src=\ref[src];spell_teleport=1'>Teleport</A><BR>"
|
||||
dat += "Kind regards,<br>Wizards Federation<br><br>P.S. Don't forget to bring your gear, you'll need it to cast most spells.<HR>"
|
||||
user << browse("<html>[dat]</html>", "window=scroll")
|
||||
onclose(user, "scroll")
|
||||
return
|
||||
|
||||
var/datum/browser/popup = new(user, "scroll", "Scroll")
|
||||
popup.set_content(dat)
|
||||
popup.open()
|
||||
|
||||
/obj/item/teleportation_scroll/Topic(href, href_list)
|
||||
..()
|
||||
|
||||
Reference in New Issue
Block a user