Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Galahad_druid on July 29, 2012, 03:01:54 PM

Title: Label in columns
Post by: Galahad_druid on July 29, 2012, 03:01:54 PM
Good afternoon.

It is possible to make Label's extra lines(those after the specified value of Line Count) be organized into a new column?

What I'm trying to do is an e-book for iPads and Android Tabs. I'm using the Example 7 as a starting point since the dragging control and momentum really fits with I'm trying to achieve.
Title: Re: Label in columns
Post by: ArenMook on July 29, 2012, 07:30:33 PM
You'll have to code the logic for that.
Title: Re: Label in columns
Post by: Galahad_druid on July 29, 2012, 07:38:48 PM
Surely,

But which logic could work better?

Saving the extra characters in another string and instantiate a new GameObject with UILabel component, applying the saved string into it?

Or the characters could be repositioned in the same Label?

Or this entire idea is less efficient than just making several Labels and placing them myself?

What do you say guys?
Title: Re: Label in columns
Post by: ArenMook on July 29, 2012, 07:44:16 PM
It will need to be a new label. It will all be in the same draw call regardless. Using multiple labels will just make it easier.
Title: Re: Label in columns
Post by: Galahad_druid on July 29, 2012, 08:10:49 PM
Thanks,

I'll be trying tomorrow, if succeeds I'll be posting it.