大约有 1,489 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0053 秒)
...:console.log("content not null"); //输出//////////////////////////////// if (content==null){ var errorCount=this._failRes[url] || 0; if (errorCount < this.retryNum){ console.warn("[warn]Retry to load:",url); this._failRes[url]=errorCount+1; Laya.systemTimer.once(this.retryDelay,this,this._addRe...
来源: Laya_社区 发布时间: 20200429
...e); } onBoyClick(e) { //点击后小人会放大缩小 let boy = e.target; if (boy.scaleX === 1) { boy.scale(1.2, 1.2); } else { boy.scale(1, 1); } } onTxtClick(e) { //点击后切换适配模式 e.stopPropagation(); index++; if (index >= modes.length) index = 0; Laya.stage.scaleMode = modes[index];...
来源: Laya2.0_示例 发布时间: 20251209
...usic(url, loop, rate) { Laya.SoundManager.playbackRate = rate; if(soundControl){ Laya.SoundManager.playMusic(url, loop, Laya.Handler.create(this, onCompleteBgMusic, [loop, url])); } } function onCompleteBgMusic(loop, url) { if(loop > 0){ Laya.SoundM...
来源: Laya_社区 发布时间: 20170414
... break; } if (this.style === style.DEFAULT) { this.color1Size = 20; this.color1 = DEFAULT_COLOR_1; this.color2Size = 40; this.color2 = DEFA...
来源: Laya_社区 发布时间: 20180824
...r _this = this; this.AppConfirm = document.getElementById("AppConfirm"); if (this.AppConfirm == null) { this.AppConfirm = document.createElement("div"); document.body.appendChild(this.AppConfirm); this.AppConfirm.id = "AppConfirm"; } this.modlueDiv = document.getElementById("modlue"); if (this.m...
来源: Laya_社区 发布时间: 20181214
...作的按钮监听事件中播放动作 switch (this.blendType) { case 0: if (this.motionCross) { //在当前动画状态和目标动画状态之间进行融合过渡播放 //第三个参数为layerIndex 层索引使用混合模式,混合了0层和1层的动画 this.animator.crossFade(this.motions...
来源: Laya2.0_文档 发布时间: 20210715
...作的按钮监听事件中播放动作 switch (this.blendType) { case 0: if (this.motionCross) { //在当前动画状态和目标动画状态之间进行融合过渡播放 //第三个参数为layerIndex 层索引使用混合模式,混合了0层和1层的动画 this.animator.crossFade(this.motions...
来源: Laya2.0_文档 发布时间: 20210715
...etHeightOfOneU():Number { if(this.U<=0) return 0; return this.cab.height/this.U; } private function setCurrentCabinet(ev:MouseEvent):void ...
来源: Laya_社区 发布时间: 20180202
...; } private updateLightByTime(progress: number): void { let intensity = 0; if (progress < 0.125) { intensity = 0.2; } else if (progress < 0.375) { const t = (progress - 0.125) / 0.25; intensity = 0.2 + t * 0.8; } else if (progress < 0.708) { intensity = 1.0; } else if (progress < 0.833) ...
来源: Laya3.0_文档 发布时间: 20251010
...owner.on("keydown", this, (event: KeyboardEvent) => { if (event.ctrlKey && event.key === "c") { event.preventDefault(); } if (event.ctrlKey && event.key === "v") { event.preventDe...
来源: Laya_社区 发布时间: 20251115