From 08655f96dc798e3e129058a5e97c5aa7ff96e798 Mon Sep 17 00:00:00 2001 From: yum Date: Mon, 24 Oct 2022 22:08:06 -0700 Subject: STT now beeps when it shows text, and can be locked to world Empty cells are excluded from the beeping behavior. Note: I have not checked in the prefab with the audio source yet. * libtastt gen_fx now adds 3 toggles to FX layer: toggle board, toggle world lock, toggle beep sound * libunity guid_map can now append instead of replacing * TaSTT_Toggle_{On,Off}.anim now use the prefab path, as do generated animations --- generate_utils.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'generate_utils.py') diff --git a/generate_utils.py b/generate_utils.py index e066eb1..df08953 100644 --- a/generate_utils.py +++ b/generate_utils.py @@ -12,7 +12,6 @@ def replaceMacros(lines, macro_defs): BOARD_ROWS=8 BOARD_COLS=22 INDEX_BITS=4 -#CHARS_PER_CELL=4 CHARS_PER_CELL=80 NUM_LAYERS=ceil((BOARD_ROWS * BOARD_COLS) / (2**INDEX_BITS)) @@ -46,6 +45,12 @@ def getHandToggleParam(): def getToggleParam(): return "TaSTT_Toggle" +def getSpeechNoiseToggleParam(): + return "TaSTT_Speech_Noise_Toggle" + +def getLockWorldParam(): + return "TaSTT_Lock_World" + # Each layer controls a group of cells. There's only one letter per layer, thus # this is also the name of the parameter which sets the letter for a layer. def getLayerParam(which_layer: int) -> str: -- cgit v1.2.3