dialog box too wide in widescreen

so im making a game where u can play it in pc and phone, but i saw that the dialog box is way elongated in widescreen 16:9.
how can i make the dialog box be the same size as a 4:3 window ?
should i do scripting or is there a plugin for this ?
You can reduce the UI Area Width value on the System 2 tab in the Database. However, that affects all game menus, as well as enemy positions in battle.

To affect only the message window, you would need a plugin.
You can reduce the UI Area Width value on the System 2 tab in the Database. However, that affects all game menus, as well as enemy positions in battle.

To affect only the message window, you would need a plugin.
do you know any plugin that works ?
There are probably existing plugins for this, but I can't think of one off the top of my head.

Maybe something like this~
Spoiler: plugin code
JavaScript:
/*:
 * @target MZ
 * @plugindesc Reduce message window width.
 * @author Caethyril
 * @url https://forums.rpgmakerweb.com/threads/166530/
 * @help Free to use and/or modify for any project, no credit required.
 */
;void (alias => {
  const REDUCTION = 200;  // <- reduce width by this many px
  Scene_Message.prototype.messageWindowRect = function() {
    const r = alias.apply(this, arguments);
    r.width -= REDUCTION;
    r.x += REDUCTION >> 1;
    return r;
  };
})(Scene_Message.prototype.messageWindowRect);
okay, this works. thanks man !
1710761649233.png
Hello,
is this going to effect font sizes as well or no ?
is this going to effect font sizes as well
No. However, you can change the game's font size on the System 2 tab of the database. The message window also supports the \{ (increase font size) text code.

Looks like the OP's question is answered, so~

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/dialog-box-too-wide-in-widescreen.166530/