Author Topic: Feature Request: Label overflow into other label  (Read 1345 times)

genesys

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
Feature Request: Label overflow into other label
« on: March 19, 2014, 06:18:25 PM »
First, things first, thanks a lot for this great tool! It's a lot of fun to work with NGUI!

There is one issue I encountered now a few times - it's a bit difficult to layout dynamic text freely. It would be great if Labels would offer an overflow mode where text does not get clamped or shrinked, but the overflow can be directed into another Label - that way it'd be possible to design text areas which are not square.

Thanks for consideration!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Feature Request: Label overflow into other label
« Reply #1 on: March 20, 2014, 01:00:54 AM »
Interesting thought, but unlikely to be practical to add as a feature as it would not be needed by vast majority.

You can currently do what you want like so:

NGUIText.Wrap the text, split the resulting string by newline (\n), add however many lines fit into the first label, and the rest -- to the second label.