UMS: Fit window to text mode fixes

Fit window to text from the Universal Message System (UMS) script made by ccoa, is a really useful mode I want to use in my game I'm developing.
Though, it has some problems that I really find annoying, and I wonder if they can be fixed.

1616069238084.png

1616069760598.png

1616069916021.png

1616069968238.png


The four problems in these screenshots are the following:

- The codes count in the windows, making random gaps and spaces and new lines.
- The name window is not affected by opacity.
- There's not a limit of how much small or large the window can be, making it go outside the screen if it's too large or make horrible fusions between the name box and the face sprite if it's too small.
- There's no fade in animation for the dialogue, but there is a fade out animation instead.

These are the original lines showed in the screenshots:
1616070129819.png

1616070207926.png


I wonder if these problems could be fixed, if y'all need more info or better explanations feel free to say it.
I asked for it in 2019. You can check this thread and take some suggestions there if you want to.

Also, if you're good at programming, you may take a look at wachunga's multiple message windows. It handles the window resizing better than UMS in my opinion (as it leaves no gap). Using it as a reference and editing the UMS if it's possible.
You can find the versions that don't require the SDK on the Chaos Project forum.

Original thread: https://forums.rpgmakerweb.com/threads/ums-fit-window-to-text-mode-fixes.134531/