Improve tgui say experience with extra control prefs (#16470)

This commit is contained in:
ShadowLarkens
2024-10-14 12:41:21 +02:00
committed by GitHub
parent b9e646002c
commit e95ec9b73d
8 changed files with 76 additions and 9 deletions
+2 -2
View File
@@ -31,7 +31,7 @@
set name = "Me verb"
set category = "IC"
if(client?.prefs?.read_preference(/datum/preference/toggle/tgui_say))
if(client?.prefs?.read_preference(/datum/preference/toggle/tgui_say) && client?.prefs?.read_preference(/datum/preference/toggle/tgui_say_emotes))
winset(src, null, "command=[client.tgui_say_create_open_command(ME_CHANNEL)]")
return
@@ -65,7 +65,7 @@
set category = "IC"
set desc = "Emote to nearby people (and your pred/prey)"
if(client?.prefs?.read_preference(/datum/preference/toggle/tgui_say))
if(client?.prefs?.read_preference(/datum/preference/toggle/tgui_say) && client?.prefs?.read_preference(/datum/preference/toggle/tgui_say_emotes))
winset(src, null, "command=[client.tgui_say_create_open_command(SUBTLE_CHANNEL)]")
return