mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-26 06:22:26 +01:00
Ports Goonchat from Baystation. (#9635)
changes:
rscadd: "Ported a new chat system, Goonchat, that allows for cool things like changing font style, size, spacing, highlighting up to 5 strings in the chat, and DARK MODE."
rscadd: "Repeated chat messages can now get compacted. You can disable this in goonchat settings."
rscadd: "You can change icon style to any font on your system."
tweak: "The game window has been altered a bit to adjust for this."
rscdel: "Removed skin style prefs as they are no longer used."
This commit is contained in:
@@ -314,4 +314,4 @@ var/list/admin_departments
|
||||
continue
|
||||
|
||||
var/message = "New fax has arrived at [src.department] fax machine."
|
||||
pda.new_info(pda.message_silent, pda.ttone, "\icon[pda] <b>[message]</b>")
|
||||
pda.new_info(pda.message_silent, pda.ttone, "[icon2html(pda, viewers(get_turf(pda)))] <b>[message]</b>")
|
||||
@@ -127,7 +127,7 @@
|
||||
user << browse(dat, "window=[name]")
|
||||
else if(istype(pages[page], /obj/item/photo))
|
||||
var/obj/item/photo/P = W
|
||||
to_chat(user, browse_rsc(P.img, "tmp_photo.png"))
|
||||
send_rsc(user, P.img, "tmp_photo.png")
|
||||
user << browse(dat + "<html><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]" + "</body></html>", "window=[name]")
|
||||
|
||||
/obj/item/paper_bundle/attack_self(mob/user as mob)
|
||||
|
||||
@@ -121,7 +121,7 @@ Pen exclusive commands
|
||||
to_chat(user, "<span class='warning'>You stab [M] with \the [src].</span>")
|
||||
// to_chat(M, "\red You feel a tiny prick!" //That's a whole lot of meta!)
|
||||
M.attack_log += text("\[[time_stamp()]\] <font color='orange'>Has been stabbed with [name] by [user.name] ([user.ckey])</font>")
|
||||
user.attack_log += text("\[[time_stamp()]\] <font color='red'>Used the [name] to stab [M.name] ([M.ckey])</font>")
|
||||
user.attack_log += text("\[[time_stamp()]\] <span class='warning'>Used the [name] to stab [M.name] ([M.ckey])</span>")
|
||||
msg_admin_attack("[user.name] ([user.ckey]) Used the [name] to stab [M.name] ([M.ckey]) (<A HREF='?_src_=holder;adminplayerobservecoodjump=1;X=[user.x];Y=[user.y];Z=[user.z]'>JMP</a>)",ckey=key_name(user),ckey_target=key_name(M))
|
||||
return
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ var/global/photo_count = 0
|
||||
to_chat(user, "<span class='notice'>It is too far away.</span>")
|
||||
|
||||
/obj/item/photo/proc/show(mob/user as mob)
|
||||
to_chat(user, browse_rsc(img, "tmp_photo_[id].png"))
|
||||
send_rsc(user, img, "tmp_photo_[id].png")
|
||||
user << browse("<html><head><title>[name]</title></head>" + "<body style='overflow:hidden;margin:0;text-align:center'>" + "<img src='tmp_photo_[id].png' width='[64*photo_size]' style='-ms-interpolation-mode:nearest-neighbor' />" + "[scribble ? "<br>Written on the back:<br><i>[scribble]</i>" : ""]" + "</body></html>", "window=book;size=[64*photo_size]x[scribble ? 400 : 64*photo_size]")
|
||||
onclose(user, "[name]")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user