• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
linux_ios
博客园    首页    新随笔    联系   管理    订阅  订阅
2013年3月30日
cocos2dx输入框CCTextFieldTTF
摘要: CCSize winSize =CCDirector::sharedDirector()->getWinSize(); CCTextFieldTTF * textfield = CCTextFieldTTF::textFieldWithPlaceHolder("点击输入", "Thonburi",20); textfield->setPosition(ccp(winSize.width *0.5, winSize.height*0.5)); addChild(textfield); // 绑定接口 textfield->setDeleg 阅读全文
posted @ 2013-03-30 20:41 linux_ios 阅读(4528) 评论(0) 推荐(0)
cocos2dx 字体设置
摘要: //设置字体 CCLabelTTF * pLabel1 = CCLabelTTF ::create("hello world !", "Thonburi", 24);// CCLabelTTF * pLabel1 = CCLabelTTF ::create("hello world !", "STKaiti", 24); // pLabel1->setPosition(ccp(100, 100)); pLabel1->cocos2d::CCNode::setPosition(100, 100); add 阅读全文
posted @ 2013-03-30 19:58 linux_ios 阅读(3377) 评论(0) 推荐(0)
博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3