Layabox
kgdtl
这个作者很懒,什么都没留下…
展开
-
LayaBox动画队列
引用:www.h10game.comlet cleanAnimation = (target, onEvtFinish)=> { let timeLine = new TimeLine(); timeLine.addLabel("hide1", 0).to(target, {alpha: 0}, 100) .addLabel("show1", 100).to(...原创 2018-07-08 16:14:23 · 1378 阅读 · 0 评论 -
LayaBox 不让子节点的鼠标事件穿透到父节点
引用:www.h10game.com/*A是父节点,B是子节点A和B都添加了鼠标监听当点击子节点B的时候,不让鼠标事件穿透到A,那么在B的监听回调函数参数调用stopPropagation函数*/this.on(Laya.Event.CLICK, this, (e: Laya.Event)=>{ e.stopPropagation();})...原创 2018-07-09 23:54:57 · 3171 阅读 · 1 评论