Phileas' Text Wrap (MZ automatic text break (word wrap) in the message)

@orgint, can you show me a screenshot of the seller's event commands in the editor or give me a link to the demo project?
Hi @Phileas -- sorry, I've discovered it elsewhere now. It seems to be happening any time that I leave one area and move to another. It always happens on the first block of text, but then corrects for the second block. No idea what's causing it now... Opening the shop window triggers the reset, as does exiting one area and moving to a new one.

Ah, okay, I figured it out. It's interacting oddly with NRP_MessageWindow, which is what I use to manage the width + number of lines in my dialogue boxes. Bummer.
Ah, okay, I figured it out. It's interacting oddly with NRP_MessageWindow, which is what I use to manage the width + number of lines in my dialogue boxes. Bummer.
So is the plugin working correctly now, or is the problem still there?
So is the plugin working correctly now, or is the problem still there?
It works but I had to make a manual adjustment


Code:
const Origin_startMessage = Window_Message.prototype.startMessage;
Window_Message.prototype.startMessage = function() {
    this.resetFontSettings();

    // had to add this line here in order to make everything refresh properly each time
    this.updatePlacement();
    this.createContents();

    this.phileasNumLines($gameMessage._texts[0]);
Hi Phileas! Hope you are well! Do you know if there's any way to make the text wrap *NOT* apply to the victory rewards window after battle? I'm running into a situation where for some reason the text wrap is forcing page breaks when they are not necessary, but only in the battle rewards window.
Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/phileas-text-wrap-mz-automatic-text-break-word-wrap-in-the-message.158894/