cocos阻挡层
2016-06-20 18:33
555 查看
local layout_node =ccui.Layout:create():addTo(self)
layout_node:setPosition(display.cx ,display.cy)
layout_node:setAnchorPoint(cc.p(0.5,0.5))
layout_node:setContentSize(display.width, display.height)
layout_node:setTouchEnabled(true)
layout_node:setBackGroundColorType(ccui.LayoutBackGroundColorType.solid)
layout_node:setBackGroundColor(cc.c3b(0,0,0))
layout_node:setBackGroundColorOpacity(150)
layout_node:setPosition(display.cx ,display.cy)
layout_node:setAnchorPoint(cc.p(0.5,0.5))
layout_node:setContentSize(display.width, display.height)
layout_node:setTouchEnabled(true)
layout_node:setBackGroundColorType(ccui.LayoutBackGroundColorType.solid)
layout_node:setBackGroundColor(cc.c3b(0,0,0))
layout_node:setBackGroundColorOpacity(150)
相关文章推荐
- Cocos2d-Js ctor init onEnter的区别
- iOS和android游戏纹理优化和内存优化(cocos2d-x)
- cocos 单循环-按钮列表位置摆放
- cocos-抛物线运动
- cocos-笔记-判断方向-屏幕
- COCOS官网文档
- [zz]cocos2d-x如何优化内存的应用
- [zz]cocos2d-x如何优化内存的应用
- [zz]cocos2d-x如何优化内存的应用
- [zz]cocos2d-x如何优化内存的应用
- quick-cocos2d-x踩坑记
- cocos 自定义事件
- cocos studio做的元件侦听
- cocos 代码添加背景
- cocos 动画整理
- cocos 进入后台的侦听器
- COCOS 屏蔽一个layer
- cocos js 遮罩示例代码
- Cocos2d-x之层间切换
- cocos2dx 历史版本下载问题