MV Moghunter BattleHud Issues

Hi, I'm using Moghunter's BattleHud plugin, but it's naturally designed to be used with the default screen size (816x624). I changed my project screen to 1280x720, but Help Window texts with more than one line are cut off. I've already tried changing some parameters in relation to this area in the plugin but nothing was effective, could anyone help me?

Below I attach an example of the text being cut to the scale at which my game is made:
1717186376850.png
Have you tried changing the Window Help box height? That should be an option within MOGHunter's MOG_BattleHud plugin. That should make the window height larger and show the second line of text.
Have you tried changing the Window Help box height? That should be an option within MOGHunter's MOG_BattleHud plugin. That should make the window height larger and show the second line of text.
Yes, I tried, but even increasing the height infinitely, the text remains cut off. However, decreasing the height to small amounts of pixels causes the text to crop even more, so I was confused about this.
Odd. I use MOGHunter's BattleHud too. What plugin are you using to change the screen size? The issue might come there.
Odd. I use MOGHunter's BattleHud too. What plugin are you using to change the screen size? The issue might come there.
The image below shows all the plugins I am using. I tried changing the Line Height value in Yanfly Core and it worked, but it changed the size of all the windows in my game and that's not what I wanted.
1717281173891.png
Did you change the screen size in YEP_CoreEngine or in Community_Basic?
Did you change the screen size in YEP_CoreEngine or in Community_Basic?
Both, is that a problem?
No. It isn't a problem. Just checking to see if one or the other might be working against each other. But I don't think you need to use the community basic if you are using YEP. Not sure why the help window would be cut off like that. Might be something else on the screen blocking the text itself. Maybe the screen size change made a enemy graphic you are using overlap. I would start there, might be just a graphical. Issue do you need the same issue when in battle with a didn't enemy - maybe a smaller one?
No. It isn't a problem. Just checking to see if one or the other might be working against each other. But I don't think you need to use the community basic if you are using YEP. Not sure why the help window would be cut off like that. Might be something else on the screen blocking the text itself. Maybe the screen size change made a enemy graphic you are using overlap. I would start there, might be just a graphical. Issue do you need the same issue when in battle with a didn't enemy - maybe a smaller one?
Even with a smaller one.
1717282593272.png
Best bet is to save a copy of your project and move it to a different folder. Then open the copy and turn off all plugins, but the two that change the screen and see if you have the issue if not. Turn on each plugin one by one to see which one causes the issue. That would help narrow down where the issue it coming from.
Have you changed your text line height in a plugin anywhere?

It looks like your custom font might be larger than the default one, so if you haven't adjusted the line height to reflect how tall your characters are, it could be causing this (for example, the help window might be defined as 2 rows, so it allocates 72 pixels for its contents, but your font might require 80).
Have you changed your text line height in a plugin anywhere?

It looks like your custom font might be larger than the default one, so if you haven't adjusted the line height to reflect how tall your characters are, it could be causing this (for example, the help window might be defined as 2 rows, so it allocates 72 pixels for its contents, but your font might require 80).
I thought I mentioned that too, but must have been in another thread. Yes, custom font can causes display issues depending on its size. @ATT_Turan is probably on the right path.
Have you changed your text line height in a plugin anywhere?

It looks like your custom font might be larger than the default one, so if you haven't adjusted the line height to reflect how tall your characters are, it could be causing this (for example, the help window might be defined as 2 rows, so it allocates 72 pixels for its contents, but your font might require 80).
I disabled all Moghunter plugins and the screen returned to its default appearance. This shows me that the help window is too small for all the text.
As I said previously, changing the size of the windows in the Yanfly's plugin had solved the problem, but it changed all the windows in my game. Would there be any way to change this specific window and keep all the others the same size?
1717288970137.png
This is the code that initializes the help window. As I said before, it is coded to fit two lines of text:
Code:
Window_Help.prototype.initialize = function(numLines) {
    var width = Graphics.boxWidth;
    var height = this.fittingHeight(numLines || 2);
    Window_Base.prototype.initialize.call(this, 0, 0, width, height);
    this._text = '';
};

you can see the height is set to fit the height of 2 lines. That tells me that what I already said above is the cause of it - your font is larger than what the game believes a line is.

You can change that formula to make the box larger, but if you just correct the line height it should happen automatically (and this isn't going to be the only place in the game affected).

Copy the below into a text editor, save as a *.js file, include as a plugin. Use an image editor to count the actual height in pixels of the tallest character in your font, and replace the number as appropriate.

Code:
Window_Base.prototype.lineHeight = function() {
    return 36;
};

You might also want to look through your various plugins, it's very possible one of them already has this as a plugin parameter and you just haven't configured it.

Edit: Yup, it's right in Yanfly's Core Engine.
This is the code that initializes the help window. As I said before, it is coded to fit two lines of text:
Code:
Window_Help.prototype.initialize = function(numLines) {
    var width = Graphics.boxWidth;
    var height = this.fittingHeight(numLines || 2);
    Window_Base.prototype.initialize.call(this, 0, 0, width, height);
    this._text = '';
};

you can see the height is set to fit the height of 2 lines. That tells me that what I already said above is the cause of it - your font is larger than what the game believes a line is.

You can change that formula to make the box larger, but if you just correct the line height it should happen automatically (and this isn't going to be the only place in the game affected).

Copy the below into a text editor, save as a *.js file, include as a plugin. Use an image editor to count the actual height in pixels of the tallest character in your font, and replace the number as appropriate.

Code:
Window_Base.prototype.lineHeight = function() {
    return 36;
};

You might also want to look through your various plugins, it's very possible one of them already has this as a plugin parameter and you just haven't configured it.

Edit: Yup, it's right in Yanfly's Core Engine.
CHANGING THE NUMBER OF LINES IN THE WINDOW WORKED! Thank you so much, you two, I am eternally grateful!
1717290501479.png
CHANGING THE NUMBER OF LINES IN THE WINDOW WORKED! Thank you so much, you two, I am eternally grateful!
View attachment 307172
@ATT_Turan - Did the heavy lifting. Thank them. Good Luck!

Original thread: https://forums.rpgmakerweb.com/threads/moghunter-battlehud-issues.169158/