TextField en cocos2d-x 3.0 con imagen de fondo, alineación de texto y sombra de color

I need a input text filed with:

  1. imagen de fondo
  2. text aligned to center
  3. text color, shadow and shadow color options

But I cannot find and appropriate one. I have investigated and found:

  • cocos2d::extension::EditBox which has 1, but 2 and 3 are missing as I understand
  • cocos2d::TextFieldTTF
  • ui::UICCTextField
  • ui::TextField

The latest 3 ones don't have 2 and 3 and also are not easy to use in terms of getting input.

cocos2d::Label seams to hove what I want (I can use a sprite for background), but it is not for input. What solution suggests cocos2d-x?

preguntado el 24 de mayo de 14 a las 16:05

1 Respuestas

Now there is no way to do this not considering a new TextField definition. But cocos2d-x guys are going to merge TextField with UI system and maybe at that time it will support such features. See here: http://www.cocos2d-x.org/issues/5346#change-12942

contestado el 29 de mayo de 14 a las 05:05

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.