New account registration is temporarily disabled.

[RMXP] CHANGE ROW HEIGHT / VERTICAL SPACE IN MESSAGES?

Posts

Pages: 1
Hey guys, I'm new obviously.
I'm not usually the type to ask for help, as I usually find the answers after digging around long enough, but I've been at it for hours now, with no results, so...

Does anyone know how to change the row height (vertical space) between lines of text in message boxes?
I'm trying to use a different font (MS Sans Serif) at a smaller size (somewhere between 16-20 oughtta do), but when I do that, I get an enormous gap between lines.

I am using DubeAlex's Advanced Message Script, but I could just as easily not, if that helps fix my issue.

Anyone able to shed some light on this?
It's hardcoded all over the place with no common factor to change. For example here's the draw text command in the Window_Message class, line 144:
self.contents.draw_text(4 + x, 32 * y, 40, 32, c)

The 32*y affects how much space is between lines. If you change the 32 to something smaller it should change the spacing between lines in messages.

e: Also I didn't check out the script you're using. It needs an account to see.
Thank you!
I tried editing Window_Message to no result, and concluded that the Advanced Message Script must be handling it, and in the end, I found the line of code that was responsible!

I don't understand most of the code, but I changed a 32 to a 20, and everything got a lot tighter.

Thank you thank you thank you!
Glad to hear you fixed the issue! If you need to change it in other windows you'll have to make a similar change in their class. Find where it's drawing text (generally the draw_text method) and look at the second parameter. That's the y coordinate where it's drawing the text. Sometimes it'll call a method to draw something (ie draw_actor_name) that takes an x/y parameter and uses that to locate where its drawing the text. In this case you'll have to find where these methods are being called and change the x/y's there. Window_MenuStatus iirc has a good example of this.
Pages: 1