• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
养眼大魔王
博客园    首页    新随笔    联系   管理    订阅  订阅
2016年3月21日
Button控件常用api
摘要: 加载按钮的纹理。loadTextures (const std::string &normal, const std::string &selected, const std::string &disabled="", TextureResType texType=TextureResType::L 阅读全文
posted @ 2016-03-21 20:41 养眼大魔王 阅读(1384) 评论(0) 推荐(0)
基础容器的常用接口
摘要: 设置是否响应触摸事件。setTouchEnabled (bool enabled) 设置用于识别节点的名字。setName (const std::string &name) 设置用于识别节点的标记。setTag (int tag) 设置控件在OpenGL坐标系中的百分比位置(x,y)setPosi 阅读全文
posted @ 2016-03-21 20:33 养眼大魔王 阅读(544) 评论(0) 推荐(0)
tolua.cast的实用方法
摘要: local name = (tolua.cast(sender, "ccui.Button")):getTitleText() 阅读全文
posted @ 2016-03-21 10:36 养眼大魔王 阅读(2371) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3