Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly adds the LOOC icon to runechat #4224

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion code/datums/chatmessage.dm
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@
var/image/r_icon = image('icons/ui_icons/chat/chat_icons.dmi', icon_state = "emote")
LAZYADD(prefixes, "\icon[r_icon]")
chat_color_name_to_use = target.get_visible_name(add_id_name = FALSE) // use face name for nonverbal messages
// monkestation start: looc
else if (extra_classes.Find("looc"))
var/image/r_icon = image('icons/ui_icons/chat/chat_icons.dmi', icon_state = "looc")
LAZYADD(prefixes, "\icon[r_icon]")
// monkestation end

if(isnull(chat_color_name_to_use))
if(HAS_TRAIT(target, TRAIT_SIGN_LANG))
Expand Down Expand Up @@ -346,8 +351,10 @@
// Display visual above source
if(runechat_flags & EMOTE_MESSAGE)
new /datum/chatmessage(raw_message, speaker, src, message_language, list("emote", "italics"))
else if(CHECK_BITFIELD(runechat_flags, LOOC_MESSAGE))
// monkestation start: looc
else if(runechat_flags & LOOC_MESSAGE)
new /datum/chatmessage(raw_message, speaker, src, message_language, list("looc", "italics"))
// monkestation end
else
new /datum/chatmessage(raw_message, speaker, src, message_language, spans)

Expand Down
Binary file modified icons/ui_icons/chat/chat_icons.dmi
Binary file not shown.
Loading