mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-26 10:02:28 +00:00
Adds TGUI say and TGUI input. (#17471)
* i alone am the honoured one * THROUGHOUT HEAVEN AND EARTH I ALONE AM THE HONOURED ONE * hollow point * nanana * ssss * tgsay final touches * stuff * tgui inputs * help * carpal tunnel syndrome * ffff * again and again and again and again * hehehehe * dsada * readd sanitize * whoops * dsad * nah fuck that * sd * fix * ow * remove prefs for testmerging * oops * oops 2 * fix that * f --------- Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
@@ -120,7 +120,7 @@
|
||||
if(announcement_cooldown)
|
||||
to_chat(usr, "Please allow at least one minute to pass between announcements")
|
||||
return
|
||||
var/input = input(usr, "Please write a message to announce to the station crew.", "Priority Announcement") as null|message
|
||||
var/input = tgui_input_text(usr, "Please write a message to announce to the station crew.", "Priority Announcement", multiline = TRUE)
|
||||
if(!input || computer.use_check_and_message(usr))
|
||||
return FALSE
|
||||
var/was_hearing = HAS_TRAIT(computer, TRAIT_HEARING_SENSITIVE)
|
||||
|
||||
@@ -323,9 +323,9 @@
|
||||
|
||||
if(href_list["Reply"])
|
||||
var/mob/living/user = usr
|
||||
if(ishuman(user))
|
||||
user.visible_message("[SPAN_BOLD("\The [user]")] taps on [user.get_pronoun("his")] [computer.lexical_name]'s screen.")
|
||||
var/datum/ntnet_conversation/conv = locate(href_list["Reply"])
|
||||
var/message = input(user, "Enter message or leave blank to cancel: ")
|
||||
var/message = tgui_input_text(user, "Enter a message or leave blank to cancel.", "Chat Client")
|
||||
if(istype(conv) && message)
|
||||
if(ishuman(user))
|
||||
user.visible_message("[SPAN_BOLD("\The [user]")] taps on [user.get_pronoun("his")] [computer.lexical_name]'s screen.")
|
||||
conv.cl_send(src, message, user)
|
||||
|
||||
Reference in New Issue
Block a user