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 --- libunity.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libunity.py') diff --git a/libunity.py b/libunity.py index 486df9f..dcf3b69 100644 --- a/libunity.py +++ b/libunity.py @@ -1120,6 +1120,8 @@ if __name__ == "__main__": "result of the computation") parser.add_argument("--guid_map", type=str, help="Path to guid.map, " + "generated by a previous call to `guid_map`") + parser.add_argument("--guid_map_append", type=bool, help="If set, " + + "append to GUID map instead of overwriting.") args = parser.parse_args() if args.cmd == "merge": @@ -1152,6 +1154,12 @@ if __name__ == "__main__": print("Looking up GUIDs under {}".format(args.project_root), file=sys.stderr) guid_map = getGuidMap(args.project_root) + if args.guid_map_append: + tmp_map = {} + with open(args.save_to, "rb") as f: + tmp_map = pickle.load(f) + # combine guid_map and tmp_map + guid_map = {**guid_map, **tmp_map} print("Saving to {}".format(args.save_to), file=sys.stderr) with open(args.save_to, 'wb') as f: pickle.dump(guid_map, f) -- cgit v1.2.3