大约有 112 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0035 秒)
Laya_社区(98) Laya3.0_api(6) Laya2.0_文档(3) laya_api(1) Laya_示例(1) Laya3.0_文档(1) Laya2.0_api(1) Laya2.0_示例(1)
升级引擎到1.7.19.1beta List报错问题 升级引擎后List._cells在调用父类构造函数之后,导致继承List的类设置itemRender报错,希望Laya技术留意下; 解决方案: 需要把_cells和_offset放置到super.call()前 附件 : --> 2018-08-10 添加评论 免费帖 ...
来源: Laya_社区 发布时间: 20180810
...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_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes(...
来源: Laya_社区 发布时间: 20171202
...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_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes(...
来源: Laya_社区 发布时间: 20181112
[LayaAir3]laya3.2 使用list.getCell时 list长度超过ceil时,有问题 我不知道是不是我用法不对,目前没有找到其他用法。暂时用panel解决。 demo设置cell为9个 list长度为20 列表拉到最下面以后调用getCeil(0) 返回undefined 列表拉到最上面...
来源: Laya_社区 发布时间: 20241202
...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_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes(...
来源: Laya_社区 发布时间: 20180724
...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_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes(...
来源: Laya_社区 发布时间: 20170215
...ist); list.array = data; } updateListItem(cell: BagItem, index: number):void{ console.log("3333333333333"); if (cell.useBtn.clickHandler == undefined) { cell.useBtn.on("click", this, this.onItemUse, [index]); ...
来源: Laya_社区 发布时间: 20170310
...ms.push(image); } _list.array = _items; } protected function renderHandler(cell:Sprite, index:int):void { removeAllChildren(cell); cell.addChild(_items[index]); } protected function removeAllChildren(container:Sprite):void { while(container.numChildren > 0) { container.removeChildAt(0); } } prote...
来源: Laya_社区 发布时间: 20170323
...ata的数据长度是10,但是在打印console.log(this.taskShowMainList.cells)的时候,发现cells的长度只有8, 这样我就并不能获得list下的所有生成的item。我想获取list下生成的所有item,并用代码更改item的属性。 2019-07-23 添加评论 免费帖 --> ...
来源: Laya_社区 发布时间: 20190723
...} } } var sp:Sprite=new Sprite(); } //渲染List private function onRender(cell:Box,index:int):void { //如果索引不再可索引范围,则终止该函数 if(index<0||index>arr.length)return; var data:Object=arr[index];//获取当前渲染条目的数据 var clip:Clip=cell.getChildByName("...
来源: Laya_社区 发布时间: 20170313