literally just hook asay into tgui say (#73212)

## About The Pull Request

pressing f3 now opens asay in tgui say
## Why It's Good For The Game

![john willard gets
banned](https://user-images.githubusercontent.com/12202230/216750445-addb4f3f-0df4-47da-891d-4ef4820a10ab.png)

also fixes double-escaped special characters caused by #72407 and
finally gets rid of the gross regular tgui input popup
## Changelog
🆑
fix: asays are no longer double-escaped
admin: asay now uses tgui say
/🆑

---------

Co-authored-by: Scriptis <scriptis@duck.com>
This commit is contained in:
scriptis
2023-02-04 23:25:53 -07:00
committed by GitHub
co-authored by Scriptis
parent 42489570d4
commit 4e1fc078d7
8 changed files with 18 additions and 11 deletions
+7 -1
View File
@@ -1046,7 +1046,7 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
*
* Handles adding macros for the keys that need it
* And adding movement keys to the clients movement_keys list
* At the time of writing this, communication(OOC, Say, IC) require macros
* At the time of writing this, communication(OOC, Say, IC, ASAY) require macros
* Arguments:
* * direct_prefs - the preference we're going to get keybinds from
*/
@@ -1078,6 +1078,12 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
if(OOC_CHANNEL)
var/ooc = tgui_say_create_open_command(OOC_CHANNEL)
winset(src, "default-[REF(key)]", "parent=default;name=[key];command=[ooc]")
if(ADMIN_CHANNEL)
if(holder)
var/asay = tgui_say_create_open_command(ADMIN_CHANNEL)
winset(src, "default-[REF(key)]", "parent=default;name=[key];command=[asay]")
else
winset(src, "default-[REF(key)]", "parent=default;name=[key];command=")
/client/proc/change_view(new_size)
if (isnull(new_size))