Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: MigrantP on March 15, 2017, 01:20:51 PM

Title: Bug: UILabel underline not drawing properly in 3.11.2
Post by: MigrantP on March 15, 2017, 01:20:51 PM
I just updated from NGUI 3.9.9 so I'm not sure when the problem was introduced, but UILabel's underline is not drawing an underline but a "fuzz" across the entire text. You can see the problem in a new project right in the example scene. Screenshot is attached. Thanks!
Title: Re: Bug: UILabel underline not drawing properly in 3.11.2
Post by: MigrantP on March 15, 2017, 01:23:43 PM
Note, this is on Unity 5.5.2f1.
Title: Re: Bug: UILabel underline not drawing properly in 3.11.2
Post by: ArenMook on March 15, 2017, 01:34:33 PM
Confirmed as a bug, thanks. I'll look into it and fix it.
Title: Re: Bug: UILabel underline not drawing properly in 3.11.2
Post by: ArenMook on March 15, 2017, 02:14:46 PM
One line fix... NGUIText line 1837:
  1. if (strikethrough)
  2. {
  3.         v0y = (-y + dash.v0.y);
  4.         v1y = (-y + dash.v1.y);
  5. }
Comment out the 'if' statement leaving only:
  1. v0y = (-y + dash.v0.y);
  2. v1y = (-y + dash.v1.y);
Title: Re: Bug: UILabel underline not drawing properly in 3.11.2
Post by: MigrantP on March 15, 2017, 03:01:12 PM
That did the trick, thanks!