Help please! Adjusting Choice Font Size

numituwi

Veteran
Veteran
Joined
Mar 2, 2018
Messages
49
Reaction score
41
First Language
English
Primarily Uses
RMMV


Good afternoon everyone! I've been making some progress on my game and I'm currently testing the choices!

Choices will be a big part of my game so I want to make sure they look nice, but currently my font is too big for the choices. Is there a way to make the font smaller specifically in the choice window only?



I also tried using Yanfly's Message Core's text code to manually make the text for choices smaller, but it's making a tangent with the highlight unlike when I make all the text smaller (28 size seems to prevent tangents).


Ideally I'd like to just set the choice font size to 28 and keep everything else at 40 font. If anyone knows how to only make the choice font smaller, please let me know!

Thank you! Have a wonderful day :kaohi:
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
1,708
Reaction score
1,127
First Language
Portuguese - Br
Primarily Uses
RMMZ
Copy and paste that into a txt file and save with ".js" without quotes.
Add this to your project, like a plugin.
Code:
Window_Base.prototype.standardFontSize = function() {
    return 40; // change this number to modify the size of any font in your game.
};

Window_ChoiceList.prototype.standardFontSize = function() {
    return 28; // change this number to modify the size of the font for Window Choices.
For the message box, you can alter in the parameters of the plugin from Yanfly message core.
 

numituwi

Veteran
Veteran
Joined
Mar 2, 2018
Messages
49
Reaction score
41
First Language
English
Primarily Uses
RMMV
Hello Eliaquim!

I think the text you sent had some plugin incompatibilities because it didn't work, but, I did try your Yanfly message core idea and made the textbox text bigger with the \{ text code.



Thank you so much! I appreciate the help. :kaojoy:
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
1,708
Reaction score
1,127
First Language
Portuguese - Br
Primarily Uses
RMMZ
I think if you try to put my snippet below the yanfly plugin it wiill work.
Because yanfly use this function to put a font size in the window_choicelist
Code:
LINE 975
Window_ChoiceList.prototype.standardFontSize = function() {
    return $gameSystem.getMessageFontSize();
};
Or try to change inside the yanfly plugin. Just replace the code after the return for a number you desire for your font.

Glad that I can help ^^

EDIT: MY BAD!
i forgot to add "};" in the first code.
Try to use this:

Code:
Window_Base.prototype.standardFontSize = function() {
    return 40; // change this number to modify the size of any font in your game.
};

Window_ChoiceList.prototype.standardFontSize = function() {
    return 28; // change this number to modify the size of the font for Window Choices.
};
 

alltheyuriz

The Question Asker
Veteran
Joined
Sep 18, 2020
Messages
148
Reaction score
77
First Language
English
Primarily Uses
RMMV


Good afternoon everyone! I've been making some progress on my game and I'm currently testing the choices!

Choices will be a big part of my game so I want to make sure they look nice, but currently my font is too big for the choices. Is there a way to make the font smaller specifically in the choice window only?



I also tried using Yanfly's Message Core's text code to manually make the text for choices smaller, but it's making a tangent with the highlight unlike when I make all the text smaller (28 size seems to prevent tangents).


Ideally I'd like to just set the choice font size to 28 and keep everything else at 40 font. If anyone knows how to only make the choice font smaller, please let me know!

Thank you! Have a wonderful day :kaohi:
I was just wondering how you changed the font style of your choice box?
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.
time for a new avatar :)

Forum statistics

Threads
106,015
Messages
1,018,351
Members
137,801
Latest member
topsan
Top