Separating message face from message text

In preparation for more message codes, I'm looking at what kind of functionality would need to be moved into a base script.


Here's what I've written so far:


http://himeworks.com/redirect.php?type=script&name=core_message_box


One of the things includes separating the face picture from the actual text, though I might just release this as a stand-alone feature since it's not really related to anything that doesn't deal with message faces.


The purpose of this separation is to allow you to change the face without having to clear and re-draw the contents.


So for example, here's a script that allows you to change the face dynamically using message codes


http://himeworks.com/redirect.php?type=script&name=message_face_control


However, if you tried to draw different faces in a single page, you'll see that it simply covers the old one instead of erasing the old pixels.


Another option is to just make it so that it clears the content and instantaneously draws whatever text was there so that the player doesn't notice anything, but I haven't tried it to see how it behaves.
I'll be quite impressed when this script is done.
Nevermind, I was looking through the Bitmap class and found out there's a method called "clear_rect" lol

Original thread: https://forums.rpgmakerweb.com/threads/separating-message-face-from-message-text.35229/