[MIRROR] browse to browser continued (#11088)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-06-18 22:11:21 +02:00
committed by GitHub
co-authored by Kashargul
parent 2a0bb3120b
commit 590a653d5a
38 changed files with 203 additions and 319 deletions
+3 -3
View File
@@ -205,9 +205,9 @@ Book Cart End
/// Proc that handles sending the book information to the user, as well as some housekeeping stuff.
/obj/item/book/proc/display_content(mob/living/user)
if(!findtext(dat, regex("^<html")))
dat = "<html>[dat]</html>"
user << browse(replacetext(dat, "<html>", "<html><TT><I>Penned by [author].</I></TT> <BR>"), "window=book")
var/datum/browser/popup = new(user, "book", "<TT><I>Penned by [author].</I></TT>")
popup.set_content(dat)
popup.open()
/obj/item/book/attackby(obj/item/W, mob/user)
if(carved)