playMaker

Author Topic: Help with scrolling chat window  (Read 3368 times)

will_brett

  • Junior Playmaker
  • **
  • Posts: 72
Help with scrolling chat window
« on: July 26, 2013, 12:48:51 PM »
Hello everyone.

I have created a chat room in Unity and I now want to improve on this further by making it scrollable. By this I mean I want the new messages to appear in a speech bubble that moves all the previous messages up in the y axis. I then want to be able to drag/scroll back through previous messages.

Does anyone have any tips on how to go about doing this?

I have attached some illustrations of what it is I am trying to achieve.

Cheers

W

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Help with scrolling chat window
« Reply #1 on: July 29, 2013, 09:58:53 AM »
Hi,

 if you are using Unity GUI, this is going to be real tricky within playmaker I am afraid because this requires dynaminc content, and for now you can only have content defined in actions within a state, so no dynamism here...

If you use a 2d framework, then they all provide some functionnaylities like that. I have for example ported the list example of ngui into playmaker to show how to create and deal with dynamic listed with ngui and playmaker.

https://hutonggames.fogbugz.com/?W1111

bye,

 Jean

will_brett

  • Junior Playmaker
  • **
  • Posts: 72
Re: Help with scrolling chat window
« Reply #2 on: July 29, 2013, 11:30:48 AM »
Thanks Jean,

I am actually using NGUI. I think I have figured out how to do this now. Spent all weekend and today on it.

Will post back when/if I've done it.

Cheers

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Help with scrolling chat window
« Reply #3 on: July 30, 2013, 06:12:35 AM »
Hi,

 I have a ready made example in the ngui playmaker package on the wiki, basically have two prefabs, one that has bubble on the left and one that has bubble on the right. It's all there pretty much.


bye,

 Jean

will_brett

  • Junior Playmaker
  • **
  • Posts: 72
Re: Help with scrolling chat window
« Reply #4 on: July 30, 2013, 06:22:36 AM »
Brillant. I will compare it with what I have made. Cheers again