大约有 4,095 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0081 秒)
Laya_社区(3318) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(114) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
... list.selectEnable = true; list.selectHandler = new Handler(this, onSelect); function onSelect(index) { alert("当前选择的索引:" + index); } 第一次点击时有事件响应: 再次点击(不要点击其它的列表)...
来源: Laya_社区 发布时间: 20180507
...和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.tab.pos(200, 200); this.tab.labelBold = true; this.tab.labelSize = 20; this.tab.labelStrokeColor = "#000000"; this.tab.labels = "Tab 1,Tab 2,Tab 3"; this.tab.labelColors = "#32556b,#8FB299,#ff0000"; this.tab.selectedIndex ...
来源: Laya3.0_文档 发布时间: 20251010
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