Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jphales

Pages: [1]
1
Thank you so much for the response ArenMook.

The Label content changes dynamically (from a couple words, to several sentences) and must be confined to a specific screen area (we have more UI going on.) So, the label is anchored already to a 'shrink content' box area. We want the background to readjust dynamically to only the text in the label, not the entire label's anchored area.

Anything else we might use to fudge the results in our favor or is shrink content just tricky?

Thanks again!

2
Hello ArenMook, everyone.

Thanks for the awesome tools!

I've read a half dozen posts related to this and most are solved simply by ensuring the UILabel's UpdateNGUIText() is called before NGUIText.CalculatePrintedSize().
I'm receiving what seems like incorrect Y bounds information even after doing the above when the text runs over into a new line -- But not always. [pic1]
When this happens, if I add a few more characters the bounds update correctly. [pic2]

Dynamic fonts, shrink content, center aligned.
Code is also simple, resizing a UISprite behind text. Nothing fancy.

Am I missing something simple? Please see the attached images.
Thanks.


Pages: [1]