Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: hmnyari on April 12, 2013, 04:47:43 AM
-
watch my screenshot please
I want to decrease the text with the text was to maintain a constant width.
Please let me know how to resolve it.
thank you :)
-
This was added in the latest version of NGUI. 'Shrink to fit text', it doesn't scale text up though, just down when it needs to.
-
thank you dlewis :)
-
Anyone figure out how to get it to scale up when needed?
We have a money amount I'd like to scale back up to its original scale value if it would fit in the max width setting on the UILabel.
Right now, the player could get rich, shrinking the size of the money value to fit in the box. then spend it all and have a very tiny money number.
-
Call MakePixelPerfect on it after setting the amount.
-
Thanks, easy enough.
I am having trouble getting shrink to fit to work in 2.6.2. it seems to have broken after i merged up. Now it just seems to word wrap all the time even when shrink to fit is turned on.
I've rolled back UILabel's ProcessText back to what was in 2.6.1 and its working locally. I noticed that function was changed pretty drastically in 2.6.2.
-
Set the max number of lines to 1.
-
i tried this before after reading the code. no luck
-
The label will only create more than 1 line with the max lines set to 1 if it's able to fit them in the space afforded by 100% of the label's height. Meaning if your font size is 20, and the max lines is set to 1, you will be able to fit two 10-height labels.