Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: matt1 on July 04, 2014, 04:15:29 PM

Title: Text List auto scroll to newest message.
Post by: matt1 on July 04, 2014, 04:15:29 PM
Hi

I've been using the Text List to create a chatbox, similar to your example12.

my problem is, after I add a message it doesn't automatically scroll and show the new message, but your example does and I can't figure it out.

If i hit enter, the message gets added and i can only see it if I then click the chat box and scroll down. (kinda seems like it's upsidedown XD)

Many thanks

Matt
Title: Re: Text List auto scroll to newest message.
Post by: ArenMook on July 05, 2014, 09:43:25 PM
Did you change the style to be "Chat"?
Title: Re: Text List auto scroll to newest message.
Post by: matt1 on July 11, 2014, 01:11:15 PM
Thanks, can't beleive I missed that!

I've got another problem, I can't figure out how to link a scroll wheel to the textlist, I can't find a property that allows me to scroll the text up/down, only support mouse wheel.

The only way I can think of doing it would be:

Textlist.scrollValue = Scrollwheel.scrollValue;

Thanks!
Title: Re: Text List auto scroll to newest message.
Post by: ArenMook on July 11, 2014, 09:02:00 PM
UITextList.scrollValue

You can link it to the scroll bar's value via a PropertyBinding if you like.