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

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

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

...eckBox: { visible: false } }; dataSource.push(_data); } ; this.mainUI.list.array = dataSource; this.mainUI.list.vScrollBarSkin = ""; this.mainUI.list.mouseHandler = new Laya.Handler(this, this.onSelect); this.mainUI.list.renderHandler = new Laya.Handler(this, this.onRender); Laya.stage.addChild(this...

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

62. 请问laya的List除了用selectBox,还有什么方式可以自定义列表项选中状态下的表现吗 [ 63%]

...lt;10;i++) { data.push({img:"res/ui/"+i+".png",isSelect:false}); } my_list.array=data; my_list.selectEnable=true; my_list.selectHandler=new Handler(this,onSlectHandler); my_list.renderHandler=new Handler(this,onRenderHandler); } private function onRenderHandler(cell:Box,index:int):void { var img:Ima...

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

63. List翻页效果 [ 61%]

...this, this.onMouse) } onOpened(param: any) { super.onOpened(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_社区 发布时间: 20171202

64. 分享:为List组件下Item(Box)下的Button(或其他组件)进行监听! [ 61%]

... clip: i % 9,btn:"btn"+i}); } //给list赋值更改list的显示 this.list.array = arr; //给list添加渲染函数 this.list.renderHandler = new Handler(this, onListRender); } //通过渲染函数为Btn添加Click function onListRender(item, index) { var btn=item.getChildByName('btn'); btn.on(Event...

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

65. 打包app,http无法设置content-type [ 61%]

...码如下: static httpRequest(method:string, url:string, data:any, headers:Array<string>, cb:(err:Error, data?:any)=>void) { let req = new Request(); req.on(Event.COMPLETE, this, (data) => { cb(null, data); }); req.on(Event.ERROR, this, (err) => { console.error(err); cb(err); }); let ...

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

66. 【LIST无法拖动】参照官方实例做的 [ 61%]

... // 设置数据项为对应图片的路径         var data: Array<String> = [];         //解析二进制已获得关卡队列,先取有效位书          let s = json.my_guanqia.substr(0,this.default_guanqia.length);         data = this.find_Strin...

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

67. List翻页效果怎么实现 [ 61%]

...this, this.onMouse) } onOpened(param: any) { super.onOpened(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") a...

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

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

...this, this.onMouse) } onOpened(param: any) { super.onOpened(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") a...

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

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

...this, this.onMouse) } onOpened(param: any) { super.onOpened(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_社区 发布时间: 20170215

70. 纹理集包含多个动作的时候按照技术文档写出来的不能正常播放呢? [ 58%]

...    roleAni.y = 0; } private function aniUrls(aniName:String, len:int):Array {     var urls:Array = [];     for (var i:int = 1; i <= len; i++)     {         //动画资源路径要和动画图集打包前的资源命名对应起来         urls.push(aniName + i + "...

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