大约有 123 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0036 秒)
...update"); var c = Math.floor(Math.random()*4); console.log(c); switch(c) { case 0:text.color='red';break; case 1:text.color="blue";break; case 2:text.color ='black';break; case 3:text.color = 'green';break; case 4:text.color = "yellow";break; } console.log(text.color); } ```注意Props中的Handler...
来源: Laya_社区 发布时间: 20180620
...使用 private function creatRen(lei):void { var url:String switch(lei){ case 1: url = "tu/白.png" break; case 2: url = "tu/花旦.png" break; case 3: url = "tu/zhadan.png" break; } var nan:Image = Pool.getItemByClass("nam", Image); nan.skin = url; nan.x = Math.random() * 600 + 80; nan.y =-60; this...
来源: Laya_社区 发布时间: 20171226
... switch (_map.orientation) { case TiledMap.ORIENTATION_ISOMETRIC: screenPos.x = _map.width / 2 - (tileY - tileX) * _tileWidthHalf; screenPos.y = (tileY + tileX) * _tileHeightHalf; ...
来源: Laya_社区 发布时间: 20161109
...caleY = divH / desH; scaleX = divW / desW; switch (Laya.stage.scaleMode) { case "noborder": if (scaleX > scaleY) { scaleY = scaleX; } else { scaleX = scaleY; } break; case "showall": if (scaleX < scaleY) { scaleY = scaleX; } else { scaleX = scaleY; } break; case "fixedwidth": scaleY = scaleX; ...
来源: Laya_社区 发布时间: 20171205
...//在切换动作的按钮监听事件中播放动作 switch (blendType) { case 0: if (motionCross) { //在当前动画状态和目标动画状态之间进行融合过渡播放 //第三个参数为layerIndex 层索引使用混合模式,混合了0层和1层的动画 animator.crossFade(motions[motio...
来源: Laya2.0_文档 发布时间: 20210715
...p.height,"#ff0000"); } private _onclick(e:Event){ switch (e.target.name) { case this.nameArr[0]: var base64Url:string = this._canvas.toDataURL("image/png",1); this.drawImage.skin = base64Url; break; case this.nameArr[1]: var text:Texture = Laya.stage.drawToTexture(Browser.clientWidth,Browser.clientH...
来源: Laya2.0_示例 发布时间: 20251209
...核心代码: private onBtnClick(e:Laya.Event):void { switch(e.target) { case this.btn1: Laya.Scene.open("ui/p1/Page1.scene", false); break; case this.btn2: Laya.Scene.close("ui/p1/Page1.scene"); break; case this.btn3: Laya.Resource.destroyUnusedResources(); break; } }问题:特定操作会让...
来源: Laya_社区 发布时间: 20190216
...切换动作的按钮监听事件中播放动作 switch (this.blendType) { case 0: if (this.motionCross) { //在当前动画状态和目标动画状态之间进行融合过渡播放 //第三个参数为layerIndex 层索引使用混合模式,混合了0层和1层的动画 this.animator.crossFade(thi...
来源: Laya2.0_文档 发布时间: 20210715
...切换动作的按钮监听事件中播放动作 switch (this.blendType) { case 0: if (this.motionCross) { //在当前动画状态和目标动画状态之间进行融合过渡播放 //第三个参数为layerIndex 层索引使用混合模式,混合了0层和1层的动画 this.animator.crossFade(thi...
来源: Laya2.0_文档 发布时间: 20210715
...]; switch (align){ case 'center': x-=lineWidth / 2; break ; case 'right': x-=lineWidth; ...
来源: Laya_社区 发布时间: 20171019