Change choice windows height depending on the font's size

KotoYama

Veteran
Veteran
Joined
Apr 20, 2019
Messages
258
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
271
Reaction score
79
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
258
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
271
Reaction score
79
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
258
Reaction score
28
First Language
Spanish
Primarily Uses
RMMV
Maybe that's the case.
 

Rugman

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

KotoYama

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

Latest Threads

Latest Posts

Latest Profile Posts

Whenever I start on a new chapter, it doesn't feel like the next episodes, but more like sequels :)
It can be frustrating that so many commercial games have used up titles that might otherwise be great for a project.
Light up explosions with QABS and Community Lighting.
qcPQHt9.gif

Forum statistics

Threads
110,655
Messages
1,054,985
Members
143,779
Latest member
Epitaph78
Top