mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 04:26:03 +01:00
Subtle PDA indicator (#2243)
## About The Pull Request Adds a span so that you can tell normal PDA messages from subtle ones. ## Why It's Good For The Game You can tell between the two messages types. ## Proof Of Testing <details> <summary>Screenshots/Videos</summary>   </details> ## Changelog 🆑 LT3 qol: Received subtle PDA messages are labelled subtle in the text log /🆑
This commit is contained in:
@@ -0,0 +1 @@
|
||||
#define span_subtlepda(str) ("<span class='subtlepda'>" + str + "</span>")
|
||||
@@ -665,10 +665,13 @@
|
||||
to_chat(listener, "[FOLLOW_LINK(listener, source)] [ghost_message]")
|
||||
// Log to public log
|
||||
log_public_file(public_message)
|
||||
// BUBBER EDIT CHANGE END
|
||||
|
||||
if(sender)
|
||||
to_chat(sender, span_info("PDA message sent to [signal.format_target()]: \"[message]\""))
|
||||
if(subtle)
|
||||
to_chat(sender, span_subtlepda("Subtle PDA message sent to [signal.format_target()]: \"[message]\""))
|
||||
else
|
||||
to_chat(sender, span_info("PDA message sent to [signal.format_target()]: \"[message]\""))
|
||||
// BUBBER EDIT CHANGE END
|
||||
|
||||
if (alert_able && !alert_silenced)
|
||||
computer.send_sound()
|
||||
@@ -688,6 +691,7 @@
|
||||
var/is_fake_user = is_rigged || is_automated || isnull(signal.data["ref"])
|
||||
var/fake_name = is_fake_user ? signal.data["fakename"] : null
|
||||
var/fake_job = is_fake_user ? signal.data["fakejob"] : null
|
||||
var/is_subtle = signal.data["subtle"] // BUBBER EDIT ADDITION - SUBTLE MESSAGES
|
||||
|
||||
var/sender_ref = signal.data["ref"]
|
||||
|
||||
@@ -739,7 +743,12 @@
|
||||
var/inbound_message = "[signal.format_message()]"
|
||||
|
||||
var/photo_message = signal.data["photo"] ? " (<a href='byond://?src=[REF(src)];choice=[photo_href];skiprefresh=1;target=[REF(chat)]'>Photo Attached</a>)" : ""
|
||||
to_chat(messaged_mob, span_infoplain("[icon2html(computer, messaged_mob)] <b>PDA message from [sender_title], </b>\"[inbound_message]\"[photo_message] [reply]"))
|
||||
// BUBBER EDIT CHANGE BEGIN - SUBTLE MESSAGES
|
||||
if(is_subtle)
|
||||
to_chat(messaged_mob, span_subtlepda("[icon2html(computer, messaged_mob)] <b>Subtle PDA message from [sender_title], </b>\"[inbound_message]\"[photo_message] [reply]"))
|
||||
else
|
||||
to_chat(messaged_mob, span_infoplain("[icon2html(computer, messaged_mob)] <b>PDA message from [sender_title], </b>\"[inbound_message]\"[photo_message] [reply]"))
|
||||
// BUBBER EDIT CHANGE END - SUBTLE MESSAGES
|
||||
|
||||
SEND_SIGNAL(computer, COMSIG_COMPUTER_RECEIVED_MESSAGE, sender_title, inbound_message, photo_message)
|
||||
|
||||
|
||||
@@ -503,6 +503,7 @@
|
||||
#include "code\__DEFINES\~~bubber_defines\research_categories.dm"
|
||||
#include "code\__DEFINES\~~bubber_defines\say.dm"
|
||||
#include "code\__DEFINES\~~bubber_defines\signals.dm"
|
||||
#include "code\__DEFINES\~~bubber_defines\span.dm"
|
||||
#include "code\__DEFINES\~~bubber_defines\species.dm"
|
||||
#include "code\__DEFINES\~~bubber_defines\status_indicator_defines.dm"
|
||||
#include "code\__DEFINES\~~bubber_defines\storyteller_defines.dm"
|
||||
|
||||
@@ -1332,4 +1332,8 @@ $border-width-px: $border-width * 1px;
|
||||
font-weight: bold;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.subtlepda {
|
||||
color: #eb6bff;
|
||||
}
|
||||
// SKYRAT EDIT ADDITION END
|
||||
|
||||
@@ -1285,4 +1285,8 @@ $border-width-px: $border-width * 1px;
|
||||
color: #9b6000;
|
||||
}
|
||||
}
|
||||
|
||||
.subtlepda {
|
||||
color: #9e008c;
|
||||
}
|
||||
// SKYRAT EDIT ADDITION END
|
||||
|
||||
Reference in New Issue
Block a user