From 1cb5bdfe8cba6fe4647448cd3cf0c63ecbd7dfc2 Mon Sep 17 00:00:00 2001 From: yum Date: Thu, 2 Feb 2023 18:00:18 -0800 Subject: 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 --- Scripts/osc_ctrl.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Scripts/osc_ctrl.py') 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 -- cgit v1.2.3