Author Topic: Bug: UILabel underline not drawing properly in 3.11.2  (Read 414 times)

MigrantP

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 1
  • Posts: 21
    • View Profile
Bug: UILabel underline not drawing properly in 3.11.2
« 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!

MigrantP

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 1
  • Posts: 21
    • View Profile
Re: Bug: UILabel underline not drawing properly in 3.11.2
« Reply #1 on: March 15, 2017, 01:23:43 PM »
Note, this is on Unity 5.5.2f1.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 327
  • -Receive: 1153
  • Posts: 22,063
  • Toronto, Canada
    • View Profile
Re: Bug: UILabel underline not drawing properly in 3.11.2
« Reply #2 on: March 15, 2017, 01:34:33 PM »
Confirmed as a bug, thanks. I'll look into it and fix it.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 327
  • -Receive: 1153
  • Posts: 22,063
  • Toronto, Canada
    • View Profile
Re: Bug: UILabel underline not drawing properly in 3.11.2
« Reply #3 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);

MigrantP

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 1
  • Posts: 21
    • View Profile
Re: Bug: UILabel underline not drawing properly in 3.11.2
« Reply #4 on: March 15, 2017, 03:01:12 PM »
That did the trick, thanks!