mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-21 20:11:04 +01:00
Ports CM's langchat to replace floating chat. (#20818)
Works generally better and will allow for better customization and emote display. --------- Co-authored-by: realmattatlas <liermattia@gmail.com>
This commit is contained in:
co-authored by
realmattatlas
parent
2700e9b9ca
commit
1738301ea7
@@ -47,6 +47,8 @@ GLOBAL_LIST_INIT(admin_verbs_admin, list(
|
||||
/client/proc/admin_cancel_shuttle, //allows us to cancel the emergency shuttle, sending it back to centcomm,
|
||||
/client/proc/cmd_admin_direct_narrate, //send text directly to a player with no padding. Useful for narratives and fluff-text,
|
||||
/client/proc/cmd_admin_local_narrate, //sends text to all mobs within 7 tiles of src.mob
|
||||
/client/proc/cmd_admin_local_screen_text,
|
||||
/client/proc/cmd_admin_global_screen_text,
|
||||
/client/proc/cmd_admin_world_narrate, //sends text to all players with no padding,
|
||||
/client/proc/cmd_admin_create_centcom_report,
|
||||
/client/proc/check_ai_laws, //shows AI and borg laws,
|
||||
@@ -305,6 +307,8 @@ GLOBAL_LIST_INIT(admin_verbs_hideable, list(
|
||||
/client/proc/manage_silicon_laws,
|
||||
/client/proc/cmd_admin_direct_narrate,
|
||||
/client/proc/cmd_admin_local_narrate,
|
||||
/client/proc/cmd_admin_local_screen_text,
|
||||
/client/proc/cmd_admin_global_screen_text,
|
||||
/client/proc/cmd_admin_world_narrate,
|
||||
/client/proc/cmd_admin_grab_observers,
|
||||
/client/proc/cmd_admin_create_centcom_report,
|
||||
|
||||
@@ -119,6 +119,65 @@
|
||||
message_admins(SPAN_NOTICE("\bold LocalNarrate: [key_name_admin(usr)] : [msg]<BR>"), 1)
|
||||
feedback_add_details("admin_verb", "LCLN") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
|
||||
/client/proc/cmd_admin_local_screen_text()
|
||||
set category = "Special Verbs"
|
||||
set name = "Local Screen Text"
|
||||
|
||||
if(!check_rights(R_ADMIN, TRUE))
|
||||
return
|
||||
|
||||
var/list/mob/message_mobs = list()
|
||||
var/choice = tgui_alert(usr, "Local Screen Text will send a screen text message to mobs. Do you want the mobs messaged to be only ones that you can see, or ignore blocked vision and message everyone within seven tiles of you?", "Narrate Selection", list("View", "Range", "Cancel"))
|
||||
if(choice != "Cancel")
|
||||
if(choice == "View")
|
||||
message_mobs = mobs_in_view(view, src.mob)
|
||||
else
|
||||
for(var/mob/M in range(view, src.mob))
|
||||
message_mobs += M
|
||||
else
|
||||
return
|
||||
|
||||
var/msg = tgui_input_text(usr, "Insert the screen message you want to send.", "Local Screen Text")
|
||||
if(!msg)
|
||||
return
|
||||
|
||||
var/big_text = tgui_alert(src, "Do you want big or normal text?", "Local Screen Text", list("Big", "Normal"))
|
||||
var/text_type = /atom/movable/screen/text/screen_text
|
||||
if(big_text == "Big")
|
||||
text_type = /atom/movable/screen/text/screen_text/command_order
|
||||
|
||||
for(var/mob/M in message_mobs)
|
||||
if(M.client)
|
||||
M.play_screen_text(msg,text_type, COLOR_RED)
|
||||
log_admin("LocalScreenText: [key_name(usr)] : [msg]")
|
||||
message_admins(SPAN_NOTICE("Local Screen Text: [key_name_admin(usr)] : [msg]"), 1)
|
||||
feedback_add_details("admin_verb", "LSTX") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/client/proc/cmd_admin_global_screen_text()
|
||||
set category = "Special Verbs"
|
||||
set name = "Global Screen Text"
|
||||
|
||||
if(!check_rights(R_ADMIN, TRUE))
|
||||
return
|
||||
|
||||
var/msg = tgui_input_text(usr, "Insert the screen message you want to send.", "Global Screen Text")
|
||||
if(!msg)
|
||||
return
|
||||
|
||||
var/big_text = tgui_alert(src, "Do you want big or normal text?", "Global Screen Text", list("Big", "Normal"))
|
||||
var/text_type = /atom/movable/screen/text/screen_text
|
||||
if(big_text == "Big")
|
||||
text_type = /atom/movable/screen/text/screen_text/command_order
|
||||
|
||||
for(var/mob/M in GLOB.mob_list)
|
||||
if(M.client)
|
||||
M.play_screen_text(msg, text_type, COLOR_RED)
|
||||
|
||||
log_admin("GlobalScreenText: [key_name(usr)] : [msg]")
|
||||
message_admins(SPAN_NOTICE("Global Screen Text: [key_name_admin(usr)] : [msg]"), 1)
|
||||
feedback_add_details("admin_verb", "GSTX") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/client/proc/cmd_admin_direct_narrate(var/mob/M) // Targetted narrate -- TLE
|
||||
set category = "Special Verbs"
|
||||
set name = "Direct Narrate"
|
||||
|
||||
Reference in New Issue
Block a user