Author Topic: Popup list centred text  (Read 2618 times)

vipo

  • Guest
Popup list centred text
« on: June 12, 2014, 09:31:50 AM »
solved
« Last Edit: December 05, 2022, 03:07:38 PM by someone »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Popup list centred text
« Reply #1 on: June 13, 2014, 04:29:45 AM »
You mean the text of the labels within the popup itself? Looking at it, no there isn't. But if you wanted to do it, you can accomplish this by modifying UIPopupList.cs, around line 729 where the labels get created.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Popup list centred text
« Reply #2 on: June 13, 2014, 09:16:08 PM »
Just add
  1. lbl.alignment = NGUIText.Alignment.Center;
around the line I mentioned.

Edit: Actually more needs to be done. Let me just add the option to the next update. I'll push it either tonight or tomorrow.
« Last Edit: June 13, 2014, 09:23:19 PM by ArenMook »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Popup list centred text
« Reply #3 on: June 13, 2014, 10:30:32 PM »
Note my "edit".

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Popup list centred text
« Reply #4 on: June 13, 2014, 10:44:18 PM »
I've just pushed 3.6.4 so this feature should be in it.