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:
Matt Atlas
2020-09-24 23:06:04 +03:00
committed by GitHub
parent a7401aeb1d
commit d4666caaac
277 changed files with 4057 additions and 2955 deletions
+8 -8
View File
@@ -241,27 +241,27 @@
malfunction = TRUE
checkhp()
/obj/machinery/shieldgen/attack_hand(mob/user as mob)
/obj/machinery/shieldgen/attack_hand(mob/user)
if(locked)
to_chat(user, "The machine is locked, you are unable to use it.")
to_chat(user, SPAN_WARNING("The machine is locked!"))
return
if(is_open)
to_chat(user, "The panel must be closed before operating this machine.")
to_chat(user, SPAN_WARNING("The panel must be closed before operating this machine."))
return
if (src.active)
user.visible_message("<span class='notice'>\icon[src] [user] deactivated the shield generator.</span>", \
"<span class='notice'>\icon[src] You deactivate the shield generator.</span>", \
user.visible_message("<span class='notice'>[icon2html(src, viewers(get_turf(src)))] [user] deactivates the shield generator.</span>", \
"<span class='notice'>[icon2html(src, viewers(get_turf(src)))] You deactivate the shield generator.</span>", \
"You hear heavy droning fade out.")
src.shields_down()
else
if(anchored)
user.visible_message("<span class='notice'>\icon[src] [user] activated the shield generator.</span>", \
"<span class='notice'>\icon[src] You activate the shield generator.</span>", \
user.visible_message("<span class='notice'>[icon2html(src, viewers(get_turf(src)))] [user] activate the shield generator.</span>", \
"<span class='notice'>[icon2html(src, viewers(get_turf(src)))] You activate the shield generator.</span>", \
"You hear heavy droning.")
src.shields_up()
else
to_chat(user, "The device must first be secured to the floor.")
to_chat(user, SPAN_WARNING("The device must first be secured to the floor."))
return
/obj/machinery/shieldgen/emag_act(var/remaining_charges, var/mob/user)
+2 -2
View File
@@ -216,14 +216,14 @@
covered_turfs = null
for(var/mob/M in view(5,src))
to_chat(M, "\icon[src] You hear heavy droning start up.")
to_chat(M, "[icon2html(src, M)] You hear heavy droning start up.")
else
for(var/obj/effect/energy_field/D in field)
field.Remove(D)
D.loc = null
for(var/mob/M in view(5,src))
to_chat(M, "\icon[src] You hear heavy droning fade out.")
to_chat(M, "[icon2html(src, M)] You hear heavy droning fade out.")
/obj/machinery/shield_gen/update_icon()
if(stat & BROKEN)