大约有 4,034 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0085 秒)
Laya_社区(3264) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(107) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
this.getStyle().setTranslateX(value)有错 this.getStyle().setTranslateX(value); 这个一直出错 大佬看看,很急! 附件 : --> 2019-04-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron ...
来源: Laya_社区 发布时间: 20190421
...E 微信 189*****192 赞同来自: 他也是自己写的 监听滑动 this._list.on(fairygui.Events.SCROLL, this, this.doSpecialEffect); 通过cell 距离 设置他的缩放比 MainPanel.prototype.doSpecialEffect = function () { //change the scale according to the distance to the mi...
来源: Laya_社区 发布时间: 20180719
...tclass.BKWebSocket var BKWebSocket=(function(){ function BKWebSocket(url){ this._socket=null; this.onopen=null; this.onmessage=null; this.onclose=null; this.onerror=null; this._socket=new BK.WebSocket(url); var _self; _self=this; this._socket.onClose=function (ws){ if (_self.onclose !=null){ _self.o...
来源: Laya_社区 发布时间: 20180328
...于这个,如果需要width和height, new window.Laya.Rectangle(0, 0, this.img_width, this.img_height, '#FF0000'), 然后设置sprite.hitArea = rect. 但是这个其实很弱。 首先,这个rect不会随着图片的旋转而旋转,所以要做精细的碰撞检测得自己写逻辑 kezhiy...
来源: Laya_社区 发布时间: 20180530
...Math.floor(value * 100) + "%"); var num:number = Math.floor(value*100); // this.updateFont(num); this.updateFont(100); //test用 // if(num==100){ // G.I.loginManager.preload(); // } } private hbox:Laya.HBox; private updateFont(value:number){ if(!this.hbox){ this.hbox = new Laya.HBox(); this.addChild...
来源: Laya_社区 发布时间: 20180615
...umber = 0; private y0:number = 0; constructor(){super();} onEnable():void{ this.x = this.x0; this.y = this.y0; Laya.timer.loop(20, this, this.frameWork); // 每 20 ms 执行一次 } private frameWork():void{ this.y = this.y0 + 10 * (this.n % 3); alert("move "); } }代码放在一个 Image 组件的 ...
来源: Laya_社区 发布时间: 20200203
...的链接 提交 2 个回复 Laya_Aaron 赞同来自: on(Event.MOUSE_DOWN,this,onClick); 试一下吧 onclick 函数里再打印log 2017-12-13 0 10 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 这个进度条 var 为pro 另外一张图的类继承了之前页面发布生成的类,直接...
来源: Laya_社区 发布时间: 20171213
...本:2.2.0beta1,ts_new 看代码 constructor(){ super(); this.worker = new Worker(WorkerLoader.workerPath); this.worker.onmessage = function(evt:any):void { //接收worker传过来的数据函数 (this as any as WorkerLoader).workerMessage(evt.data); } } 回调函数this指向有问...
来源: Laya_社区 发布时间: 20190802
...大战游戏出现的问题!! 在鼠标控制飞机移动时,写成this.hero.pos(Laya.stage.mouseX, Laya.stage.mouseY);是没有用的,可以看到hero容器的坐标变化了,但是机身显示还在原地并未移动, 但如果设置this.hero.aniBody.pos(Laya.stage.mouseX, Laya.stage.m...
来源: Laya_社区 发布时间: 20180502
...r = "#232628"; Stat.show(); Laya.loader.load(partPath, Laya.Handler.create(this, this.onAssetsLoaded), null, Loader.JSON); } onAssetsLoaded(settings) { // 当load数组的时候,回调函数传入的参数不再是资源,可以通过以下方法获取资源 // let settings = Laya.loader.getRes(p...
来源: Laya2.0_示例 发布时间: 20250224