summaryrefslogtreecommitdiffstats
path: root/libtastt.py
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2022-11-26 17:08:09 -0800
committeryum <yum.food.vr@gmail.com>2022-11-26 17:13:36 -0800
commit480463b0578407a8f5a6585eb7018933e6ec7186 (patch)
tree2a11d8298aaca6169581008f225f7fcbcc70bae8 /libtastt.py
parent89a929fe76e4dbd56436288055366d9416c13e74 (diff)
Add emotes
Add emotes.py. It accepts a list of images and creates a texture with 64 total embedded images. The shader knows how to draw these into fixed 6-character-wide slots. Each slot must be aligned to a 6-character boundary. osc_ctrl has to pad with spaces to make this work. This whole patch is a little more complicated than it has any right to be, but my brain feels fuzzy and I don't know where to start fixing it, so I'm going to leave it shitty-but-functional for now. There's also some bug where writing a character into the 11th slot causes it to show up at the end of the board. I'll figure that out later, idk. I didn't include any of the emotes I use since I couldn't find any info on their licenses. I'm just banking on having a good workflow later on so people can add their own.
Diffstat (limited to 'libtastt.py')
-rw-r--r--libtastt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtastt.py b/libtastt.py
index 36ccec7..bee535f 100644
--- a/libtastt.py
+++ b/libtastt.py
@@ -373,7 +373,7 @@ def generateFXLayer(which_layer: int, anim: libunity.UnityAnimator, layer:
enable_param, True)
select_states = {}
- for i in range(0, 2 ** generate_utils.INDEX_BITS):
+ for i in range(0, generate_utils.NUM_REGIONS):
dx = i * 200
dy = 200