void EditBoxTest::editBoxReturn(CCEditBox* editBox)
{
CCLog("editBox %p was returned !",editBox);
if (m_pEditName == editBox)
{
m_pTTFShowEditReturn->setString(editBox->getText());
}
else if (m_pEditPassword == editBox)
{
m_pTTFShowEditReturn->setString("Password EditBox return !");
}
else if (m_pEditEmail == editBox)
{
// i change this line..
m_pTTFShowEditReturn->setString(editBox->getText());
}
}
Now type emoji in editbox and return … see photo 1
editBoxReturn: function (editBox) {
cc.log("editBox " + this._getEditBoxName(editBox) + " was returned !");
this.label.setString(editBox.getText());
},
James Chen wrote:
> Hi, it’s mainly because the text is set to Black color. Please use white color if you want to use emoji. Thanks.
>
i mean the emoji can not show when editbox.getText() set to labelTTF.setString()
But C++ is right
Yes, I found the same problem here now. Did you solved this?