I need to implement a Label like in the chat apps. I want to put some images (like emoticons) inside text.
How can I achive that? Need to use LabelAtlas (those additional images should be treaten like regular letters?)? I want to have ability to break lines in this Label. What classes I need to use?
I dont know of a way to do this…
But, could you
- create the label
- create a sprite that represents what you want
- make the sprite a child of label
- set position of sprite so it is where you want it on the label
- set the z order to make sure it is always on top of the label
thus making it look like they belong together.
Yeah it could probably work but I affraid that Sprites will be over text itself. Too much effort to put spaces in text for empty places where those sprites could be. And calculations also will be complicated.
I think I 'll be digging in LabelAtlas class to achieve this behavior. It should be possible.