设置 弹窗优先级

 LayerTouchPriority = -129  --弹窗层的优先级<大于最大优先级>

--设置弹窗层的优先级<handle,是否多点触摸,优先级,是否吞噬下层touch><began方法里必须返回true>

self:registerScriptTouchHandler(function(eventType) if eventType == "began" then
return true end end, false, LayerTouchPriority, true)
self:setTouchEnabled(true)


--再将按钮的优先级设置为大于弹窗层的优先级

--btnClose:setTouchPriority(LayerTouchPriority - 1)

posted on 2018-03-29 16:22  echo111333  阅读(893)  评论(0编辑  收藏  举报

导航