大约有 161 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0077 秒)
...odule PomeloLaya{ export class Pomelo{ static DEBUG:boolean = true; static EVENT_IO_ERROR:string = "io-error"; static EVENT_CLOSE:string = "close"; static EVENT_KICK:string = "onKick"; static EVENT_HEART_BEAT_TIMEOUT:string = 'heartbeat timeout'; private JS_WS_CLIENT_TYPE:string = 'js-websocket'; pr...
来源: Laya_社区 发布时间: 20180119
... } this.event(Event.PROGRESS, 0.3 + 1 / toloadPics.length * 0.6); return this._loadResourceFilter(Loader.IMAGE, URL.formatURL(toloadPics.pop())); } ...
来源: Laya_社区 发布时间: 20201130
... Utils3D._createNodeByJson(this,json,this,innerResouMap); this.event("hierarchyloaded",[this]); this.__loaded=true; } 打了一个log,发现data[0]读取出来的结果是"{",也就是说data被按照字符串读取了,而不是数组。 /** *结束加载,...
来源: Laya_社区 发布时间: 20180101
...is.toggle === false && this._selected) return; if (e.type === Laya.Event.CLICK) { this.toggle && (this.selected = !this._selected); this._clickHandler && this._clickHandler.run(); return; } !this._selected && (this.state = Button.stateMap[e.type]); }上面逻辑当cli...
来源: Laya_社区 发布时间: 20191112
...接 this.socket.connectByUrl("ws://localhost:8899"); this.socket.on(Laya.Event.OPEN, this, this.openHandler); this.socket.on(Laya.Event.MESSAGE, this, this.receiveHandler); this.socket.on(Laya.Event.CLOSE, this, this.closeHandler); this.socket.on(Laya.Event.ERROR, this, this.errorHandler); // this.s...
来源: Laya_社区 发布时间: 20180211
...,仔细研究了源码,发现问题出在事件派发上 截图来自EventDispatcher 如图所示,当派发mouseup事件时,当前的type为mouseup,由于scrollBar移除了mouseUp事件,所以此时的this._events[type]是undefined,而源码中又去取undefined的run属性,肯定会报...
来源: Laya_社区 发布时间: 20211227
...e { Loader.clearRes(url); console.warn("[error]Failed to load:",url); this.event(/*laya.events.Event.ERROR*/"error",url); } } if (this._failRes[url])this._failRes[url]=0; delete LoaderManager._resMap[url]; if (resInfo.originalUrl){ content=Loader.getRes(resInfo.originalUrl); } resInfo.event(/*laya.e...
来源: Laya_社区 发布时间: 20200429
...is.addChild(this.player); //监听 按下 弹起 事件 Laya.stage.on(laya.events.Event.MOUSE_DOWN, this, this.onMouseDown); Laya.stage.on(laya.events.Event.MOUSE_UP, this, this.onMouseUp); //创建一个帧循环处理函数 Laya.timer.frameLoop(1, this, this.onLoop); } _proto.onLoop = function(){ ...
来源: Laya_社区 发布时间: 20160803
... onAwake() { this.createJoystick(); this.bindEvents(); // 监听全局事件 Laya.stage.on("DIALOG_SHOW", this, this.disable); Laya.stage.on("DIALOG_HIDE", this, this.enable); } onDestroy() { // ...
来源: Laya_社区 发布时间: 20251125
...th(content); _$this._loaderCount || _$this.event(/*laya.events.Event.COMPLETE*/"complete"); }); }else { var info=LoaderManager._resMap; if (!info){ ...
来源: Laya_社区 发布时间: 20191122