adding padding to dialogue box

Hello, I am wondering how I can add padding around the text in a dialogue box. I found the following code but it only works for width, not height. How do I go about adding padding to all sides?
Code:
Window_Message.prototype.newLineX = function(textState) {
const faceExists = $gameMessage.faceName() !== "";
const faceWidth = ImageManager.faceWidth;
const spacing = 20;
const margin = faceExists ? faceWidth + spacing : 50;
return textState.rtl ? this.innerWidth - margin : margin;
};
Here's a screenshot of my current dialogue box setup. The text isn't padded.
Screenshot 2023-07-13 212008.png
Windows have a padding property that you can adjust. Failing that, you could dive deeper and make adjustments to how the window(s) render individual lines of text.

That being said, based on your screenshot and depending upon how much code you want to tweak, I might humbly suggest being careful in terms of how you plan the graphical design of your windows. You can certainly position things however you like with enough code adjustments, but unless you plan your designs within the general scope of how MZ renders windows, you'll likely need to adjust more than just the padding value.
This plugin lets you change window message padding
This plugin lets you change window message padding
That's strange. I tried using the plugin but the window padding remains the same. I checked the console and this message popped up.
Screenshot 2023-07-13 224855.png
That's strange. I tried using the plugin but the window padding remains the same. I checked the console and this message popped up.
View attachment 269360
That error suggests something wrong with what was put inside the curly braces in the parameters or how the inputs were formatted. There may be a missing comma or quotation mark, etc

@Eliaquim
That's strange. I tried using the plugin but the window padding remains the same. I checked the console and this message popped up.
View attachment 269360
Hi!

As I can see on the erro trance, It seems that something is wrong with the plugin parameters that let you set the window position.
Please, open the plugin manager and check out those parameters to see if everything is filled properly.
Hi!

As I can see on the erro trance, It seems that something is wrong with the plugin parameters that let you set the window position.
Please, open the plugin manager and check out those parameters to see if everything is filled properly.
Hello, it seems there may be an error with the code. I think there are parameters missing.
Screenshot 2023-07-14 002449.png
Have you tried clicking those parameters and editing them?
Have you tried clicking those parameters and editing them?
I have! The padding: 50 is what I edited. The default padding is 12 iirc. Nothing shows up in game and the error message pops up in the console. I'm guessing it's an error in the code.
Hello, it seems there may be an error with the code. I think there are parameters missing.
View attachment 269365
There is no error. You need to click on the parameters and edit/fill them:
  • Top Settings
  • Center Settings
  • Bottom Settings

Everytime you install a plugin on your project, you need to read the help file to understand how the parameters works and open the plugin manager and make sure you setup everything. Those three parameters, the user must setup them.
There is no error. You need to click on the parameters and edit/fill them:
  • Top Settings
  • Center Settings
  • Bottom Settings

Everytime you install a plugin on your project, you need to read the help file to understand how the parameters works and open the plugin manager and make sure you setup everything. Those three parameters, the user must setup them.
My bad, I assumed the parameters were automatically set up! I thought it was a code error. I got it to work, thank you so much :]
Edit: Actually nevermind
There is no error. You need to click on the parameters and edit/fill them:
  • Top Settings
  • Center Settings
  • Bottom Settings

Everytime you install a plugin on your project, you need to read the help file to understand how the parameters works and open the plugin manager and make sure you setup everything. Those three parameters, the user must setup them.
I tried your plugin and got error messages as well. Mine says ''Type Error this.updateHorizontalOpenness is not a function''. Do I have to write something in the original JS code?
I tried your plugin and got error messages as well. Mine says ''Type Error this.updateHorizontalOpenness is not a function''. Do I have to write something in the original JS code?
Do you have Eli book installed?
Do you have Eli book installed?
I... I forgot to install it in RPG Maker MZ. My bad, I was inattentive. It works like a charm now! Thank you for the reminder.

Original thread: https://forums.rpgmakerweb.com/threads/adding-padding-to-dialogue-box.159302/