大约有 353 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0046 秒)
... 但点击会报下面的错误 WAGame.js:3 gameSubContextThirdScriptError this._stage._canvasTransform.invertTransformPoint is not a function;at requestAnimationFrame callback function TypeError: this._stage._canvasTransform.invertTransformPoint is not a function at MouseManager.__proto.initEvent (...
来源: Laya_社区 发布时间: 20180404
...cts without image resources), specifies whether the mouse events penetrate this object's collision detection. `true` means the object is penetrable, `false` means it is not penetrable. * When penetrable, the engine will no longer detect this object and will recursively check its child objects until ...
来源: Laya_社区 发布时间: 20250825
Tab组件如何通过js控制选中 this._tab._selectedIndex = 0 _tab为在UI编辑器下定义的var值 这样操作不能实现么 2017-12-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞...
来源: Laya_社区 发布时间: 20171214
...loadImage('xxx.png'); //此处无论是这样给 list.on(Laya.Event.CLICK, this, () => { console.log(413132131) }) //还是在handler中去渲染,都会滚动不了 txArray.push(list);} storeTxList.array = txArray; Laya.stage.addChild(storeTxList); 悬赏找大神看问题 export defau...
来源: Laya_社区 发布时间: 20190711
...点击事件第二次点击不生效 list.selectHandler = Handler.create(this,onRender, null, false);//滚动列表点击事件 private function onRender(index:int):void{ list.setItem(lastSelect,arrConver(lastSelect,false));//取消选中效果 list.setItem(index,arrConver(index,true));//添加选...
来源: Laya_社区 发布时间: 20171129
sprite添加texture后,sprite无法触发点击事件? this.item.graphics.drawTexture(Laya.loader.getRes(IMG_RES[this.name])); Laya.stage.addChild(this.item); this.item.on(Laya.Event.CLICK, this, () => { this.item.destroy(); }); 2017-08-26 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20170826
...距离容器的区域也会触发点击事件 function TransitionImg() { this.flag = false; //判断条件 this.img1 = "../laya/assets/comp/haoyoubang-liang.png"; //地址 this.img2 = "../laya/assets/comp/haoyuobang-hui.png"; var img = new Laya.Sprite(); //实例 img.width = 300; //宽高 img.height...
来源: Laya_社区 发布时间: 20180502
...r Handler = laya.utils.Handler; seltInf._list0.renderHandler = new Handler(this, onListRender1); function onListRender1(item,index) { var btn=item.getChildByName('btn_true'); trace(btn); btn.on(Laya.Event.CLICK,this,function(){ trace("dadasdads"); }); } cuixueying • 2017-08-04 11:36 把...
来源: Laya_社区 发布时间: 20170215
...@regClass() export class BloodBar extends BloodBarBase { onAwake(): void { this.bar.value = 1; this.value.visible = false; Laya.stage.on(Laya.Event.CLICK, this, this.onHurt); } onHurt(): void { this.bar.value = this.bar.value - 0.9; this.value.y = 35; this.value.visible = true; Main.instance.animato...
来源: Laya3.0_文档 发布时间: 20251010
Image不能清空图片吗? if(!this.lastMakeMc){ //类型小图片 this.lastMakeMc = new Image(); this.collectUIMC.addChild(this.lastMakeMc); this.lastMakeMc.pos(123,68); this.lastMakeMc.size(32,32); }else{ this.lastMakeMc.skin = "face/type"+type+".png"; } if(type == -999){ this.lastMakeMc.dispo...
来源: Laya_社区 发布时间: 20180623