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,682
Reaction score
1,095
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,682
Reaction score
1,095
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
117
Reaction score
46
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 Profile Posts

All of the auditions for our game are so good, I'm so glad I'm not in charge of choosing completely. lol I just can't with some of them. I listen to them on repeat. XD
Working on a Patch to integrate AlphaABS into random generated Dungeons. Was a bit tricky, but the outcome is a real Life Changer!!

Will release it the next days!
Been pretty busy... but I got a better headset for recording and listening today. Dad says that he'll consider taking me to Great Wolf Lodge for the first time once I finish summer classes (my final semester!) I'll be taking my plushie friends with me: Bendy, Lolbit, and Helen Henny. (I WUV PLUSHIES!)
SF_Monster3,4 added!


My only regret is the portal mirror effect is too subtle to show up in these GIFs. It probably just needs more sparkles. :LZSwink:

Forum statistics

Threads
105,650
Messages
1,015,291
Members
137,327
Latest member
Mezzy
Top