summaryrefslogtreecommitdiffstats
path: root/generate_utils.py
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2022-10-24 22:08:06 -0700
committeryum <yum.food.vr@gmail.com>2022-10-24 22:08:06 -0700
commit08655f96dc798e3e129058a5e97c5aa7ff96e798 (patch)
treeb2543852ec52fec22319f562a737e48e95681b37 /generate_utils.py
parent4b0d262f4630538cc04f6e8bda407fe3f3ba213b (diff)
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
Diffstat (limited to 'generate_utils.py')
-rw-r--r--generate_utils.py7
1 files changed, 6 insertions, 1 deletions
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: