@cocosdan wrote:
The cocos2d-html5 project I’m trying to ‘convert to' Cocos Creator was using EditBox to input text.
I didn’t find any mention of EditBox in the Cocos Creator API ( http://cocos2d-x.org/docs/api-ref/creator/v0.71/ ), but some examples are using it, like example-cases:
https://github.com/cocos-creator/example-cases
(specifically in https://github.com/cocos-creator/example-cases/tree/master/assets/cases/02_ui/07_editBox)I was unable to create a EditBox - if I do:
var box, boxSize; boxSize = cc.size(128, 32); box = new cc.EditBox(boxSize, new cc.Scale9Sprite(self.editBoxSprite));
I get the following error message: cc.EditBox is not a constructor
Is EditBox available with Cocos Creator ?
If yes, how can I use it?
If no, how am I supposed to get input from the user (I need the user to input texts, and numbers) ?I just checked the roadmap and EditBox is mentioned for 2016.3, which mean it will be available very soon: COOL !!!
Is there some github repository where I can get latest Cocos Creator modifications without having to wait the official release?
(I need to finish my project before next week...)Thanks.
—
Daniel
Posts: 1
Participants: 1