Closed blt950 closed 4 years ago
I'm not so familiar with the used libraries in this plugin, so it's best that someone who knows them fixes the optimization. I just wanted to fix the inconsistency.
There's some code duplication with setting the onDrawText
callback, so a better fix would probably be to move the duplicated code into 1 function and call that instead.
This code is slower
There has been a issue where the text doesn't look the exact same when you create it, and when you rejoin and get the list of all texts to render. This is because two different methods were used to draw it, where the first one did not support alignY, making texts appear at the wrong place, but then moving when you reconnected.
I just simple made both functions use the same drawing functions to ensure consistency of the displaying of text.