大约有 297 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0052 秒)
...stWords.width-words[0].x,lastWords.height); hitRec.href=this.href; recList.push(hitRec); } } } }if(words[0].y != words[words.length-1].y) 此处的修改。目前这个代码只支持单条富文本的1次换行。如果各位项目有遇到多次换行的,请自行扩展 循环即可. 如果同...
来源: Laya_社区 发布时间: 20190611
... target */ public addColorTarget(target: Laya.Sprite): void { this.targets.push(target); } /** * 设置颜色改变值 * @param color */ public targetsChangeColor(color: number) { this._targetsLastValue = this._targetsValue; this._targetsValue = color; } /** * 设置改变时间 * @param time */...
来源: Laya_社区 发布时间: 20180930
...pened(param); let imgArray = []; for (let i = 1; i < 7; i++) { imgArray.push(`ui/bg_help_0${i}.png`) } this.list_rule.array = imgArray; } public updateItem(cell: Laya.Box, index: number): void { let img_rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text...
来源: Laya_社区 发布时间: 20181112
... } } this._keyframeNodeOwners.push(keyframeNodeOwner); clipOwners[nodeIndex] = keyframeNodeOwner; } } 附件 : --> Animator.rar 2024-05-17 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...
来源: Laya_社区 发布时间: 20240517
...mpItem); tempItem.x=i*100; tempItem.y=200; tempItem.setAnimated(true); arr.push(tempItem); // this.playAni(tempItem,new Point(0,-20),0); } } 然后这是itemUI类里的方法 private var animate:Boolean; public function setAnimated(b:Boolean):void { animate=b if(animate) { startAnimated(); } } pr...
来源: Laya_社区 发布时间: 20180524
...Invisibles = true; //需要手动设置脏状态 aBox.layout.stretchParams.push(new StretchParam().setRatio(0.5)); aBox.setLayoutChangedFlag(); aBox.layout.stretchParamsX[0].ratio = 0.8; aBox.setLayoutChangedFlag(); 当容器内的子节点的位置、尺寸、可见性改变时,或者添加孩子...
来源: Laya3.0_文档 发布时间: 20251010
...e,__value){ var value=[];for(var i=1,sz=arguments.length;i<sz;i++)value.push(arguments[i]); var a=value[0]; } 这个时候的value变成了两层数组了,拿出来a是__value的这个数组。而不是第一个参数
来源: Laya_社区 发布时间: 20171025
...pened(param); let imgArray = []; for (let i = 1; i < 7; i++) { imgArray.push(`ui/bg_help_0${i}.png`) } this.list_rule.array = imgArray; } public updateItem(cell: Laya.Box, index: number): void { let img_rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text...
来源: Laya_社区 发布时间: 20180724
...[k]; for(var j in RES.resources){ if(RES.resources[j].name == key){ assets.push(RES.resources[j]); } } } Laya.loader.load(assets,new Laya.Handler(this,function(arg){ RES.getInstance().event(RES.ONLOADGROUPCOMPLETE,arg); })) } /** * 获取资源 resName 资源名 isAtLas 是否是图集 */ public sta...
来源: Laya_社区 发布时间: 20161011
...nOpened(param); let imgArray = ; for (let i = 1; i < 7; i++) { imgArray.push(`ui/bg_help_0${i}.png`) } this.list_rule.array = imgArray; } public updateItem(cell: Laya.Box, index: number): void { let img_rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text...
来源: Laya_社区 发布时间: 20170215