Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Nseries on March 26, 2013, 04:25:43 PM

Title: Drag and stretch chat window
Post by: Nseries on March 26, 2013, 04:25:43 PM
Здравствуйте, делаю чат, однако, обращаюсь я к вам не из-за самого чата, а из-за того как сделать так, чтобы игрок мог подстраивать его размер и месторасположения. Он должен перетаскиваться по всему пространству и его можно было бы за угол растянуть, + к этому настройки должны сохраняться. Может кто уже сталкивался с этим и может помочь? Спасибо.

Hello, working on a chat, and I need to do, the player can adjust the size and location of the chat window. He should dragged across space and it could be a stretch, + this setting should be recorded. Maybe someone has experienced this and can help? Thank you. Sorry for my English.
Title: Re: Drag and stretch chat window
Post by: Nseries on March 26, 2013, 05:46:30 PM
With drag and drop out, but how make resize?  :-[
Title: Re: Drag and stretch chat window
Post by: PoN on March 26, 2013, 09:49:55 PM
ПОищите на здесь на форуме есть, кто то вынладывал доп фичи для NGUI, там как раз то что вам нужно.
Title: Re: Drag and stretch chat window
Post by: galuodo on March 26, 2013, 10:05:12 PM
you can refer to the example: calculates the maxLines after resize.
That is easy if you do not have a various line heights~~
Title: Re: Drag and stretch chat window
Post by: Nseries on March 27, 2013, 09:51:21 AM
I do not understand, i need to resize every widget inside panel or a universal solutin? Writting script?
(http://s61.radikal.ru/i171/1303/9c/f36cf1c50ca1t.jpg) (http://radikal.ru/F/s61.radikal.ru/i171/1303/9c/f36cf1c50ca1.jpg.html)