Force Text Resize?

Euphoria

Veteran
Veteran
Joined
Jun 27, 2013
Messages
378
Reaction score
93
First Language
English
Primarily Uses
I'm looking for a way to force my text to resize in certain scenes. For example:

In the shop scene some of my items names are long enough to where they overlap with the "amount to buy" number. And in battle my item selection screen has the same problem. I don't know if there's a simple way to do this or if I'll need to code something...

Any help will be appreciated. Thanks.

Edit: Got it working for the shop scene. But I still can't get it to work for the item select window in battle.
 
Last edited by a moderator:

Zoltor

Veteran
Veteran
Joined
Jan 18, 2014
Messages
1,550
Reaction score
211
First Language
English
Primarily Uses
You need a message script,  Go get Yanfly's custom message script now(everyone should really be using this anyway).

Here it is: http://yanflychannel.wordpress.com/rmvxa/core-scripts/ace-message-system/

There's a few scripts that everyone should use, and this is one of them.

It lets you customize pretty much everything to do with message boxes, and the texts therein.

Lets see, I used it to make custom char status pages that constantly update(you'll need the addon for that though), custom map name boxes, you can create name boxes just above the reg message box, I used it to write out the variable tied to how much gold is "in" a bank that I custom made from the ground up, I'm in the middle of using it to make a quest log system, as well as a bulleton board, ec. This script is so useful :)
 
Last edited by a moderator:

Euphoria

Veteran
Veteran
Joined
Jun 27, 2013
Messages
378
Reaction score
93
First Language
English
Primarily Uses
I've got Yanfly's message system, I just didn't see an option to change text size within the certain scenes. Maybe it's in the code somewhere. I'll look. I modified his shop-add on to make the font smaller when displaying the number you want to buy next to it. And I already made the font smaller in the battle item list, but I would like more control over the size rather than use the default scripts -8 to font size.

Thanks for the reply! :)
 
Last edited by a moderator:

Zoltor

Veteran
Veteran
Joined
Jan 18, 2014
Messages
1,550
Reaction score
211
First Language
English
Primarily Uses
I've got Yanfly's message system, I just didn't see an option to change text size within the certain scenes. Maybe it's in the code somewhere. I'll look. I modified his shop-add on to make the font smaller when displaying the number you want to buy next to it. And I already made the font smaller in the battle item list, but I would like more control over the size rather than use the default scripts -8 to font size.

Thanks for the reply! :)
It's there, look at the text code list before the actual script starts. 

There's two text codes for such actually. One increases/decreases font by 8 pixels, and another one that lets you change it to any size you want. The any font size one is \fs if I recall.
 
Last edited by a moderator:

Euphoria

Veteran
Veteran
Joined
Jun 27, 2013
Messages
378
Reaction score
93
First Language
English
Primarily Uses
But does that work for database items? Or just in the message window?
 

Zoltor

Veteran
Veteran
Joined
Jan 18, 2014
Messages
1,550
Reaction score
211
First Language
English
Primarily Uses
But does that work for database items? Or just in the message window?
Oh ok I see, yea just for messaga boxes.

I would have to look at his shop script to make sure, but odds are he doesn't have that in his shop script, since he can just use the default scripts info for that.

Most likely, you need to be looking in the default script to change that.

Edit: Yea it looks to be located in the default Window shop script.
 
Last edited by a moderator:

Euphoria

Veteran
Veteran
Joined
Jun 27, 2013
Messages
378
Reaction score
93
First Language
English
Primarily Uses
I already fixed the shop and I just fixed the item window. I just made a new method for resizing the text and called it before the items were drawn :p

Thanks for your help though!
 

Zoltor

Veteran
Veteran
Joined
Jan 18, 2014
Messages
1,550
Reaction score
211
First Language
English
Primarily Uses
I already fixed the shop and I just fixed the item window. I just made a new method for resizing the text and called it before the items were drawn :p

Thanks for your help though!
Lol ok, if you could do that(if you knew how to code), why didn't you do that from the start :) Well anyway, glad you got it to do what you wanted.
 
Last edited by a moderator:

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

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,078
Members
137,580
Latest member
Snavi
Top