mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 03:33:21 +00:00
[MIRROR] more missing tags (#9918)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
3d40810955
commit
c0ee2c30d3
@@ -209,6 +209,8 @@ 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")
|
||||
|
||||
/obj/item/book/attackby(obj/item/W as obj, mob/user as mob)
|
||||
@@ -339,7 +341,7 @@ Book Cart End
|
||||
else if(istype(pages[page], /obj/item/photo))
|
||||
var/obj/item/photo/P = W
|
||||
user << browse_rsc(P.img, "tmp_photo.png")
|
||||
user << browse(dat + "<html><head><title>[P.name]</title></head>" \
|
||||
user << browse("<html>" + dat + "<head><title>[P.name]</title></head>" \
|
||||
+ "<body style='overflow:hidden'>" \
|
||||
+ "<div> <img src='tmp_photo.png' width = '180'" \
|
||||
+ "[P.scribble ? "<div> Written on the back:<br><i>[P.scribble]</i>" : null]"\
|
||||
|
||||
Reference in New Issue
Block a user