diff options
| author | yum <yum.food.vr@gmail.com> | 2024-07-30 13:38:24 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-07-30 13:38:24 -0700 |
| commit | c27d3fdcdf3b13dbe0df7a0a153cb53673d1b6c2 (patch) | |
| tree | 07390db29febc5db533fde1ffc06f470529967e4 /Scripts | |
| parent | 82043c568c29a7bc8c48d3b44f0c46ce389c8758 (diff) | |
Support as few as 1 char per sync in custom chatbox
Diffstat (limited to 'Scripts')
| -rw-r--r-- | Scripts/generate_utils.py | 3 | ||||
| -rw-r--r-- | Scripts/libtastt.py | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/Scripts/generate_utils.py b/Scripts/generate_utils.py index 7d231f9..ccc92fc 100644 --- a/Scripts/generate_utils.py +++ b/Scripts/generate_utils.py @@ -26,8 +26,7 @@ class Config(): def layerNeedsParity(self, which_layer): num_cells = self.BOARD_ROWS * self.BOARD_COLS layers_in_last_region = num_cells % self.CHARS_PER_SYNC - float_result = num_cells / self.CHARS_PER_SYNC - if which_layer >= layers_in_last_region: + if layers_in_last_region > 0 and which_layer >= layers_in_last_region: return True else: return False diff --git a/Scripts/libtastt.py b/Scripts/libtastt.py index 4b4dda9..81baa8b 100644 --- a/Scripts/libtastt.py +++ b/Scripts/libtastt.py @@ -761,7 +761,7 @@ def generateFXLayer(which_layer: int, anim: libunity.UnityAnimator, layer: dummy_param = generate_utils.getDummyParam() anim.addTransitionBooleanCondition(state, home_state_transition, dummy_param, False) - + if generate_utils.config.layerNeedsParity(which_layer): # There may be layers which never write to the text box. In this case, # when those layers are turned on to write to that last region, they |
