mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 16:18:01 +01:00
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  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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user