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 - eadwine

Pages: [1]
1
Thank you! Seems I was making it way too difficult for myself lol. Fixed size helped tons :)

2
But the idea is that if I have a big screen, the text won't remain small in the button, but will increase in size so the proportion of button versus text is the same.
That is why I put the label on shrink content and the font size on 40-something, so the bigger the screen gets, the bigger the fontsize (since the label area grows bigger).
If I make the label area bigger with the font sized 40 and keep the same sized button then it will ofcourse grow out of proportion with the button.

3
The anchors are all updated in OnUpdate. I'll add a picture showing 2 examples of my problem, the view in scene mode and the inspector settings.



Theres only a minor difference in de text size, but it's noticable when they are so close together.

4
Lol I found out it works perfectly when I don't anchor the labels at all   :)

EDIT  :( Seems that doesn't work for everything.... If anyone has a solution please let me know.

5
Hello there :) This is my first project with NGUI and I'm really enjoying it so far!

I have a little trouble however with anchoring labels the right way so the font sizes will stay the same on different screen sizes.
For example I have 3 buttons next to eachother with each a label attached. The way I've done it so far is put the overflow on ShrinkContent and the fontsize to 40, so that on a big screen the text will still keep its proportions. I've anchored the labels in a way that really hugs the text inside of it.
When i resize the screen however, it can happen that one of the texts increase in size before the rest. This looks pretty bad especially when these buttons are so close you can easily compare them.

Is there an easier or better way to get this working correctly?

Pages: [1]