大约有 103 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0049 秒)
Laya_社区(90) Laya3.0_api(5) Laya2.0_文档(3) laya_api(1) Laya_示例(1) Laya3.0_文档(1) Laya2.0_api(1) Laya2.0_示例(1)
...m); Laya.stage.addChild(list); list.array = effList; } function updateItem(cell, index) { console.log(cell.dataSource); cell.setImg(cell.dataSource); } function onSelect(index) { console.log("当前选择的索引:" + index); } 我想实现的效果是 设置每个特效宽高都为80 * 8...
来源: Laya_社区 发布时间: 20170627
...index){ console.log(index + ' selected'); } _proto.onRenderList = function(cell,index){ console.log(cell.dataSource); //如果索引不再可索引范围,则终止该函数 if(index > this.data.length)return; //获取当前渲染条目的数据 var listData = this.data[index]; console.log(listD...
来源: Laya_社区 发布时间: 20170914
...标错误 示例附件传了 assets/BugDemo/ItemSort.lh box下面子结点cell ,cell里有两个itm用控制器切换显示,改下cell位置再切换item,里面item还在老位置... 实测最新3.3.6必现,之前3.3.5正常 附件 : --> LayDemo.zip 2026-01-07 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20260107
... 0 分享 微博 QZONE 微信 130*****753 赞同来自: Laya 自带的List cell 不支持修改宽高,就没法不等高了。我也有这个需求,我做的聊天气泡。使用fairyGui得GList结合laya。可以实现每个cell得宽高自定义。 下图是效果,每个聊天气泡是list...
来源: Laya_社区 发布时间: 20191126
升级引擎到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