Status
Not open for further replies.

l8rose

Perpetually Exhausted
Veteran
Joined
Jun 1, 2014
Messages
473
Reaction score
1,535
First Language
English
Primarily Uses
RMMV
Is there any way to change the size of the text in the default choice boxes?

I know how to create new choice boxes with common events but I'd prefer not to have to do this if I can just edit the text size as that's the only issue with my choice boxes.
 

Archeia

Level 99 Demi-fiend
Staff member
Developer
Joined
Mar 1, 2012
Messages
15,472
Reaction score
15,920
First Language
Filipino
Primarily Uses
RMMZ
Are you using an extension that affects it or just default?
 

l8rose

Perpetually Exhausted
Veteran
Joined
Jun 1, 2014
Messages
473
Reaction score
1,535
First Language
English
Primarily Uses
RMMV
Just the default.

I don't mind using an extension if that's what is needed. I know there are a few out there that will change everything but was hoping there was something just for the font size.
 

Archeia

Level 99 Demi-fiend
Staff member
Developer
Joined
Mar 1, 2012
Messages
15,472
Reaction score
15,920
First Language
Filipino
Primarily Uses
RMMZ
No it's fine just asking. I made an extension that lets you put images for default choices and changes this easily so I want to be sure it's not that. Changing the Choice Box text requires scripts. Look for the script, Template_ChoiceBox. It can be seen here:

1590856762097.png

Copy and Paste it and rename it to like, Template_ChoiceBox_L8Rose or something. Then look for this section here on your newly copy pasted script:
1590856852518.png

Now what this means is that it gets its size on the "style" RegularUIText. It means you can't just change it easily because it will also affect the font size of your other UI. Rename regularUIText to something like L8RoseChoiceText or something like that.

Now look for this script and copy this section:
1590857051562.png

Then make a new coffeescript file and name it something like Style_L8Rose. Paste that section and rename it to something like this:

CoffeeScript:
ui.UIManager.styles["L8RoseChoiceText:enabled"] = {
    "font": {
        "name": "Times New Roman",
        "size": 12, #Change the Font Size here
        "smallCaps": true,
        "italic": true,
        "color": [255, 255, 255, 255]
    },
    "opacity": 255
}

Hit save and it should work.
 

l8rose

Perpetually Exhausted
Veteran
Joined
Jun 1, 2014
Messages
473
Reaction score
1,535
First Language
English
Primarily Uses
RMMV
I think I must have messed something else up as it doesn't work.

I did have another font style coffeescript (from the help files I believe) but that didn't have anything conflicting (and removed it just to test) so my guess is I edited something somewhere when I initially started this project and have no idea where.

Thank you though!


Edit as I did more testing after I posted.

So on further testing, I've realized that if I set Positioning back to Auto instead of Direct, I do get the font size changed. However, if the choice is disabled then it goes back to the default size.

Location isn't too much of an issue as I can just edit the new coffeescript I made with what you showed me and I can just hide the disabled options through switches/if combos so that totally works for me.
 
Last edited:

Archeia

Level 99 Demi-fiend
Staff member
Developer
Joined
Mar 1, 2012
Messages
15,472
Reaction score
15,920
First Language
Filipino
Primarily Uses
RMMZ
Yeah the Template has comments on what choices are what, so it should be pretty easy to find the one you're looking for!
 

l8rose

Perpetually Exhausted
Veteran
Joined
Jun 1, 2014
Messages
473
Reaction score
1,535
First Language
English
Primarily Uses
RMMV
It is!
Thank you again!
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
6,115
Reaction score
5,816
First Language
English
Primarily Uses
RMVXA

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Profile Posts


1,Randomly generate events with planted spawner events(great flexibility for customization and auto-match player's level)
2,Randomly enter roguelike dungeon
3,Player can exit dungeon or back to town or choose to challenge BOSS at the end of each dungeon
4,Dungeon maps can be randomly generated by a third-party tool
Got locked out of the house yesterday... best friends who had the spare ghosted me. Locksmith had to literally drill thru the lock bc they couldn't pick it. Whole process took 4 hours and far too much money. And they have to come back next week bc they don't have the right cylinder, cause it's an old interlocking lock. I'm livid lol
 I’m probably going to regret this, but I need kobolds for my project and I’ve decided to sprite them myself. This is Attempt #1, front view only.

KoboldFront.gif
It's a shame that Selection Control will not be ported to MZ. I found a neat way of using it to enable ways for tanks to protect squishies. lol
Lately I have been taking a break from game and resource making so I won't get burnt out. But I am also interested in the Game Jams this site periodically holds. It'd be great if I knew when the next one, if any, is planned.

Forum statistics

Threads
115,354
Messages
1,089,223
Members
150,031
Latest member
Slashqian
Top