summaryrefslogtreecommitdiffstats
path: root/Scripts/osc_ctrl.py
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2023-02-02 18:00:18 -0800
committeryum <yum.food.vr@gmail.com>2023-02-13 14:36:25 -0800
commit1cb5bdfe8cba6fe4647448cd3cf0c63ecbd7dfc2 (patch)
treee338264fbf6f75911246ca61c934110e00f144c8 /Scripts/osc_ctrl.py
parent7c6894614dcc3ebc5d4c8839b64f4da761b5ccf0 (diff)
Finish emotes
Emotes require 2 bytes per char. They're encoded into the region [0xE000, infinity). The texture is 4k, and uses 1k vertical pixels per emote segment, for a maximum of 32 segments. * Reduce volume of noise indicator by 90%. Quiet is probably better. Might want to add a volume slider idk. * Bugfix: emotes without a transparency channel now work * Address a couple Unity performance complaints about the shader
Diffstat (limited to 'Scripts/osc_ctrl.py')
-rw-r--r--Scripts/osc_ctrl.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Scripts/osc_ctrl.py b/Scripts/osc_ctrl.py
index 750059f..3ff56ca 100644
--- a/Scripts/osc_ctrl.py
+++ b/Scripts/osc_ctrl.py
@@ -90,6 +90,8 @@ def updateRegion(client, region_idx, letter_encoded):
# in FIFO order; e.g., the most recently spoken words are sent last.
# Returns True if done paging, False otherwise.
def pageMessage(osc_state: OscState, msg: str, estate: EmotesState) -> bool:
+ msg = estate.encode_emotes(msg)
+
msg_slice, slice_idx = osc_state.pager.getNextSlice(msg)
if slice_idx == -1:
return True