• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 112 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0031 秒)

51. 升级引擎到1.7.19.1beta List报错问题 [ 79%]

升级引擎到1.7.19.1beta List报错问题 升级引擎后List._cells在调用父类构造函数之后,导致继承List的类设置itemRender报错,希望Laya技术留意下;   解决方案: 需要把_cells和_offset放置到super.call()前 附件 : --> 2018-08-10 添加评论 免费帖 ...

来源: Laya_社区 发布时间: 20180810

52. List翻页效果 [ 78%]

...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

53. List翻页效果怎么实现 [ 78%]

...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

54. laya 的list组件,如果有多页信息,怎么实现翻页丫?? [ 77%]

...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

55. 请问laya有没有类似翻页容器(pageView)的组件? [ 76%]

...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

56. list中加的button不能接收点击事件 求一个list中加button的demo [ 76%]

...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

57. 鼠标穿透问题 [ 76%]

...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

58. list问题 [ 76%]

...ata的数据长度是10,但是在打印console.log(this.taskShowMainList.cells)的时候,发现cells的长度只有8, 这样我就并不能获得list下的所有生成的item。我想获取list下生成的所有item,并用代码更改item的属性。 2019-07-23 添加评论 免费帖 --> ...

来源: Laya_社区 发布时间: 20190723

59. 分享:List相关(Item增删功能) [ 75%]

...} } } 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

60. Image.loadImage 方法加载问题 [ 75%]

...is.publicSpaceList.array = this.publicSpacesInfo; } private updateListItem(cell: gamepublicspaceitem.PublicSpaceItem, index: number) : void {          cell.publicSpaceData = cell.dataSource; } module gamepublicspaceitem {  export class PublicSpaceItem extends Laya.Box  {   public static ...

来源: Laya_社区 发布时间: 20170923