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.
Force Text Resize?
● ARCHIVED · READ-ONLY
-
-
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 :) -
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.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! :)
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. -
But does that work for database items? Or just in the message window?
-
Oh ok I see, yea just for messaga boxes.But does that work for database items? Or just in the message window?
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. -
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.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!