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:
Matt Atlas
2023-10-11 23:26:59 +02:00
committed by GitHub
co-authored by Matt Atlas
parent 518c843e00
commit 54dc8a0860
185 changed files with 2203 additions and 632 deletions
+6 -6
View File
@@ -696,7 +696,7 @@ var/global/enabled_spooking = 0
if (!check_rights(R_ADMIN))
return
var/message = input("Global message to send:", "Admin Announce", null, null) as message
var/message = tgui_input_text(usr, "Enter a global message to send.", "Admin Announce", multiline = TRUE)
if(message)
if(!check_rights(R_SERVER, 0))
message = sanitize(message, 500, extra = 0)
@@ -1286,7 +1286,7 @@ var/global/enabled_spooking = 0
to_chat(usr, "Mode has not started.")
return
var/antag_type = input("Choose a template.","Force Latespawn") as null|anything in all_antag_types
var/antag_type = tgui_input_list(usr, "Choose a template.", "Force Latespawn", all_antag_types)
if(!antag_type || !all_antag_types[antag_type])
to_chat(usr, "Aborting.")
return
@@ -1349,16 +1349,16 @@ var/global/enabled_spooking = 0
/datum/admins/proc/ccannoucment()
set category = "Special Verbs"
set name = "Custom sound Command Announcment"
set desc = "Emulate announcement that looks and sounds like the real one"
set desc = "Emulate announcement that looks and sounds like the real one."
if(!check_rights(R_FUN))
return
var/title = input("Announcement TITLE:", "CAnnounce", null, null) as text
var/title = tgui_input_text(usr, "Input the announcement's title.", "Custom Announcement")
if(!title)
return
if(!check_rights(R_SERVER,0))
title = sanitize(title, 255, extra = 0)
var/message = input("Announcement content:", "CAnnounce", null, null) as message
var/message = tgui_input_text("Input the announcement's content.", "CAnnounce", multiline = TRUE)
if(!message)
return
if(!check_rights(R_SERVER,0))
@@ -1370,7 +1370,7 @@ var/global/enabled_spooking = 0
sounds += "--LOCAL--"
sounds += sounds_cache
var/melody = input("Select a sound from the server to play", "Server sound list", "--CANCEL--") in sounds
var/melody = tgui_input_list(usr, "Select a sound from the server to play.", "Sound Selection", sounds)
if(melody == "--CANCEL--")
return