您的位置:首页 > 移动开发 > Cocos引擎

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)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: