- Last visit
|Well yes, that's one way to solve the problem, but there is a view type provided to display chat in Papaya as well, mention in the API_Reference pdf as |
getchatview(fontsize,fontalpha,colorOfSystem, colorOfPerson1, colorOfPerson2,…..)
As it says in the SDK Manual under the Views heading, text can be added to Chat View in the following manner:
chat.text(content,0); // 0 being the person no.
chat.text(content,1); // 1 being the person no.
I have two questions regarding this topic:
1) how do we clear text from this view? All of the text in it, and if possible, specific lines from it.
2) calling getChatView() again gives me reference to the same object once more (I've tried this, the colors, object address, object id are the same as the previous chat display view object I created). How do I create a NEW chat display view?