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

大约有 103 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0048 秒)

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

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

52. 鼠标穿透问题 [ 78%]

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

53. list问题 [ 77%]

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

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

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

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

55. Image.loadImage 方法加载问题 [ 77%]

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

56. List修改datasource数据的时候出现部分数据不能被修改 [ 77%]

...ya.stage.addChild(this.mainUI); }; GameMain.prototype.onRender = function (cell, index) { if(index <0 || index >= dataSource.length) return; var data = dataSource[index]; var chBox = cell.getChildByName('chBox'); var img = cell.getChildByName('img'); if(!data.type) { chBox.skin = "../laya/asse...

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

57. panel的两头滚动问题 [ 76%]

...来 2018-05-19 0 0 分享 微博 QZONE 微信 。 赞同来自: 里面的cell都在代码里生成的 2018-05-19 0 0 分享 微博 QZONE 微信 胖虎拿枪 赞同来自: cell在代码写的 就创建后 调整下y坐标 2018-05-21 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折...

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

58. list图片路径没问题.为什么图片就是不显示.啊啊啊也,求解答 [ 76%]

..._furnitureList = new List(); this._furnitureList.itemRender = FurnitureItemCell; this._furnitureList.renderHandler = Handler.create(this, this.__renderFurnitureItem, null, false); this._furnitureList.repeatX = 5; this._furnitureList.repeatY = 3; this._furnitureList.vScrollBarSkin = ""; thi...

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

59. list默认显示 [ 76%]

...list默认显示 请问一下list能够设置刚进入界面显示第五个cell么,不是startIndex么 2017-09-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 xiaohai 赞同来自: 我用 tweenTo(key,0)实...

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

60. List无法滑动,加了scrollbar也没用. [ 75%]

...然是无法滑动. 还有设置selecteEnable = true后,随便选择一个cell,所有的cell都会被隐藏掉. demo如下.   附件 : --> demo.zip 2019-08-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_A...

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