Change choice windows height depending on the font's size

KotoYama

Veteran
Veteran
Joined
Apr 20, 2019
Messages
256
Reaction score
28
First Language
Spanish
Primarily Uses
RMMV
I'm using \{ inside the choice window to make my font bigger, but my text appears cropped since Maker fails to resize the window. IS there any way to fix that?
 

Rugman

Veteran
Veteran
Joined
Jun 11, 2020
Messages
261
Reaction score
76
First Language
English
Primarily Uses
RMMV
Save this as a plugin. It's using switch 19 as the condition, but you can change that to a variable or whatever condition you want. 50 will be your new line height. change that as needed.
JavaScript:
Window_Base.prototype.lineHeight = function() {
    if ($gameSwitches.value(19, true)) {
        return 100;
    } else {
        return 36;
    }
};
 

KotoYama

Veteran
Veteran
Joined
Apr 20, 2019
Messages
256
Reaction score
28
First Language
Spanish
Primarily Uses
RMMV
Weirdly it doesn't change the choice window, only the message one :D
That's okay though, thanks for the effort.
 

Rugman

Veteran
Veteran
Joined
Jun 11, 2020
Messages
261
Reaction score
76
First Language
English
Primarily Uses
RMMV
It does in my game. Are you using a plugin that would overwrite it?
 

KotoYama

Veteran
Veteran
Joined
Apr 20, 2019
Messages
256
Reaction score
28
First Language
Spanish
Primarily Uses
RMMV
Maybe that's the case.
 

Rugman

Veteran
Veteran
Joined
Jun 11, 2020
Messages
261
Reaction score
76
First Language
English
Primarily Uses
RMMV
You might try moving it around in your plugin order
 

KotoYama

Veteran
Veteran
Joined
Apr 20, 2019
Messages
256
Reaction score
28
First Language
Spanish
Primarily Uses
RMMV
Doesn't worth I'm afraid :D
 

Latest Threads

Latest Profile Posts

When you don't find any time to work... :kaocry:
First Ten Minutes of my Caretaker inspired game

Finally, I got a good Gmail message [from smg5urded]
"This game does look a bit plain, but, I'm sure this does not destroy the experience as a whole. Monsters fit your style of game-play, mapping looks crude but I'm sure you can make it better if you do a remake of Forgotten Eclipse"
Going to start a new project today. OMG, it will be on RPGMaker MV. :D
Paid material WIP~
EysZO9cVEAEWy9W

This is Alchemy pack.
I decided to add more witch elements.

Now we have wooden props, candles, pots, and potion bottles.
We also want to add herbs, kettles, fireplaces, etc.

Forum statistics

Threads
110,397
Messages
1,052,941
Members
143,451
Latest member
carlboss159
Top