Skip to content

Commit 75f6cc5

Browse files
committed
change your vocal cords
немного флекса
1 parent 2dc8f2a commit 75f6cc5

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
ADMIN_VERB(change_announcements_voice, R_FUN, "Change Announcement Voice", "Tries to Change Announcement Voice if tts subsystem is available", ADMIN_CATEGORY_FUN)
2+
if(!SStts.tts_enabled)
3+
var/retry = tgui_alert(user, "Text To Speech is currently off, would you like to try re-establish connection", "Whoops!", list("Yes", "No")) == "Yes"
4+
if(retry)
5+
message_admins("[key_name_admin(user)] attempted to re-establish connection to the TTS HTTP server.")
6+
log_admin("[key_name(user)] attempted to re-establish connection to the TTS HTTP server.")
7+
SStts.establish_connection_to_tts()
8+
if(!SStts.can_fire)
9+
SStts.can_fire = TRUE
10+
11+
var/voice = tgui_input_list(user, "What voice to use?", "How are we speaking today?", SStts.available_speakers, SStts.centcom_voice)
12+
if(isnull(voice)) // just in case admin presses cancel if they change their mind
13+
return
14+
if(voice == SStts.centcom_voice)
15+
return
16+
message_admins("[key_name(user)] has changed centcom announcement to from [SStts.centcom_voice] to [voice]")
17+
log_admin("[key_name(user)] has changed centcom announcement to from [SStts.centcom_voice] to [voice]")
18+
SStts.centcom_voice = voice
19+
20+
21+
22+
23+

modular_meta/features/ntts-nd-tg-tts/includes.dm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include "code\middleware.dm"
44
#include "code\picker.dm"
55
#include "code\announcements.dm"
6+
#include "code\verb.dm"
67

78
/datum/modpack/ntts_nd_tg_tts
89
id = "ntts-nd-tg-tts"

0 commit comments

Comments
 (0)