摘要: EditBox 创建添加 以及 一些函数参数的解析#include "GUI/CCEditBox/CCEditBox.h"#include "GUI/CCControlExtension/CCScale9Sprite.h"#include "cocos-ext.h"USING_NS_CC;USING_NS_CC_EXT;CCScale9Sprite* spr = CCScale9Sprite::create("Icon.png"); CCEditBox* box = CCEditBox::create(CCSize 阅读全文
posted @ 2013-11-19 23:23 解放1949 阅读(707) 评论(0) 推荐(0) 编辑
摘要: //继承(class HelloWorld : public cocos2d::CCLayer, public cocos2d::CCTextFieldDelegate) CCTextFieldTTF* textField = CCTextFieldTTF::textFieldWithPlaceHolder("Click input...", "Helvetica", 24); textField->setPosition(ccp(size.width*0.5,size.height*0.7)); addChild(textField); ... 阅读全文
posted @ 2013-11-19 22:42 解放1949 阅读(360) 评论(0) 推荐(0) 编辑