Author Topic: creating a chat interface  (Read 2027 times)

careychico

  • Guest
creating a chat interface
« on: December 16, 2013, 05:55:08 PM »
Hello all,

I'm looking to create a chat interface. I have tried the chat demo, but this isn't working the way I want. I'm interested in creating a sliced sprite behind each chat message in a thread. The sliced sprite has to resize to the dimensions of the actual message--meaning, the larger and longer the message, the larger the sliced sprite has to be.

How can I do this and set it up?

Secondly, I need to have received messages align to the left part of the scroll window and the sent messages align with the right side of the scroll window. How can I set this up?

Any help is welcome.

Thanks.

Carey

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: creating a chat interface
« Reply #1 on: December 17, 2013, 12:27:51 PM »
Create a sliced sprite, set its anchor targets to be your label, call ResetAnchors(), then UpdateAnchors() to make it immediate.

To align labels, change their pivot -- left, or right.