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

Pages: [1]
1
NGUI 3 Support / Re: UILabels messed up
« on: June 04, 2015, 02:11:33 AM »
Update:

[And as another update, one of the other tables broke as well somehow]

So I tried moving all the UI elements into a new panel (that is set up exactly the same as the old panel), fixing up all the references and the text is now looking correct. However the boxes are still mis-aligned - I noticed for example if the anchor of the box is Left +0, and I change it to Left +8, it makes no change visually. Left +9 makes a visual change by the correct amount. Increasing the amount then makes no visual change up to Left +24, after which it starts squeezing the horizontal scale of the box. Really strange.

It's almost like the UI has a UV map that has become distorted, if that makes sense.

2
NGUI 3 Support / UILabels messed up
« on: June 01, 2015, 11:18:55 PM »
Hi there

I have a large table of UILabels (manually set up, not using UITable) which used to look fine, and then somewhere along the way they all got broken and look really messy and illegible. There are two other tables in my UIPanel which are set up in exactly the same way, which look as they are supposed to. For some reason just this one table has gotten broken.

Please see attachment for example of broken + not broken tables.

The UILabels are set up as NGUI Fonts.

I have tried:
- Changing them to Unity fonts
- Changing sizes
- Changing overflow to clamp instead of shrink
- On the Font Prefab, re-assigning the references to TTF Font and Material
- On the Font Material, changing texture to something else and then back again
- On the font text file, changing "spacing=1,1" to "spacing=0,0" and then back again
- Checking all parents to see that their scaling is set to 1
- Turning parents on and off

Nothing seems to work. Any help would be appreciated!

Thanks

Edit: I've noticed it might not be the UILabels specifically... as in the attachment, you can see some of the boxes (UI2DSprites) are positioned incorrectly as well)

3
NGUI 3 Support / Getting real font size of a shrunk UILabel
« on: August 28, 2014, 09:37:58 PM »
Hi there

I have a set of buttons with UILabels inside them as children. These UILabels were set to ShrinkContent so that the text is always there when the buttons resized.

However, some buttons' texts are longer than others - e.g. "Attachments", "Notes". "Attachments" will get shrunk first because it is longer. I would like the "Notes" text to be shown at the same font size as the Attachments one so that the font size is always the same for all those buttons.

So what I did is I wrote a script to set the "Notes" font size to be the same as "Attachments" font size - but this does not work because "Attachments" is shrunk and the actual shown size does not match the font size.

How can I get access to the font size that is actually displayed when a UILabel is shrunk?

Thanks

4
NGUI 3 Support / Underline tags in UILabel causing bugs with styling
« on: August 06, 2014, 03:01:01 AM »
Hi ArenMook

I have found a possible bug with UILabel.

To replicate please do the following:

1. Start with new project and import latest NGUI package.
2. Add a UILabel (position if necessary)
3. Paste the following text into the text field:

  1. [b][u]Increase Size of Cat[/u][/b]
  2.  
  3. [0070C0](For future cat access)[FFFFFF]
  4.  
  5. Remove cat from door.
  6.  
  7. Mark the existing cat access on the right of the door

4. Note how the text is not appearing as it should (in this example, the text is coloured in the wrong place as seen in attached image).
5. Remove the underline tags -- I suspect it is only the opening underline tag that causes this error however.
6. Note that the text is now displaying correctly.

If you could please have a look soon that would be appreciated.

Cheers

Pages: [1]