Author Topic: UIGrid or UITable center alignment  (Read 4929 times)

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
UIGrid or UITable center alignment
« on: May 22, 2013, 02:10:58 PM »
There's anyway to align any of those to the center?
So in that way I can have this:

1 item   =       O
2 items =      O O
3 items =    O O O
4 items =   O O O O
5 items =  O O O O O 

Does anyone did a script for this?
« Last Edit: May 22, 2013, 03:06:00 PM by jeldrez »

wizardsmoke

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 5
  • Posts: 40
    • View Profile
Re: UIGrid or UITable center alignment
« Reply #1 on: May 22, 2013, 06:26:37 PM »
I recently wrote this script to do exactly what you're describing.  Enjoy! :)

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: UIGrid or UITable center alignment
« Reply #2 on: May 23, 2013, 10:37:56 AM »
Thanks a lot!
I'll try it

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: UIGrid or UITable center alignment
« Reply #3 on: September 11, 2013, 10:20:55 AM »
Sorry for the bump, but just to know. There's any idea to put this into NGUI built-in?
I think alignment (left - center - right) for UIGrid and UITable would be really useful.

Aren, I would really appreciate it if you consider this.  ::)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIGrid or UITable center alignment
« Reply #4 on: September 11, 2013, 05:11:02 PM »
I am waiting for some feedback on the insane amount of stuff that went into 3.0 before considering more features atm (read: bug fixes first :) )

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: UIGrid or UITable center alignment
« Reply #5 on: September 11, 2013, 05:12:15 PM »
Of course, I imagine the last update bring a lot of work.
So, just to have in mind.

Thanks Aren.

dtreble

  • Guest
Re: UIGrid or UITable center alignment
« Reply #6 on: September 24, 2013, 08:50:20 AM »
I just modified UIGrid to handle this.

Hope it helps someone.