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

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

41. LIST 严重BUG,求解决 [ 59%]

... 当list 的 item只有一个项,(repeatX =1  repeatY=1)的时候 selectHandler 只会触发一次,重置也无效,求解        2018-03-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 170*****650...

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

42. 自己创建的box作为tab,为啥没有点击事件啊? [ 57%]

...hild(UI); } function MyBoot() {     MyBoot.super(this);     this.MyTab.selectHandler = new Laya.Handler(this, onSelect, null, false);//设置 tab 的选择项发生改变时执行的处理器。     console.log("A123");     function onSelect(index)     {         console.log("当前选...

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

43. 为什么官网例子里,UI组件的事件都用new Handler,而资源加载用Handler.create() [ 56%]

...源加载用Handler.create()? 我测试了一下,如果类似于 tab.selectHandler = Laya.Handler.create(tab, this.onSelect); 这种的,如果用create则只能触发一下,如果用new Handler则正常触发? 2017-08-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

44. 为什么list不能滑动,怎么让list滑动 [ 56%]

...皮筋极限距离。  this.gradeList.selectEnable = true; this.gradeList.selectHandler = new Laya.Handler(this, this.onSelect) this.gradeList.renderHandler = new Laya.Handler(this, this.updateItem) } 2019-05-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

45. list的render复用问题 [ 56%]

...4个render为item0,1,2,3,往下拖第五个item也叫item0, 通过list.selectHandler = new Laya.Handler(this, this._OnSelect); function _OnSelect(){ //选中的render上加个选中框, var selection = this.visualizeList.selection;         selection.addChild(this.m_CenterDiv.imgSelect)...

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

46. 如何为list内部的button添加事件 [ 54%]

...: 3 人 cuixueying • 2017-01-05 22:10 你可以在renderHandler下或者selectHandler下,通过返回值index索引,去为你的button添加点击事件即可,不需要遍历。 weiyongwill • 2017-01-06 10:56 多谢指点。list.getItem(xxx).getChildByName()无效,获取不到,我发...

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

47. 分享:如何用代码创建自定义Tab组件 [ 54%]

...需要调一下initItems() tab.addChild(btn); } tab.selectedIndex=2; tab.selectHandler=new Handler(this,onSelect); } private function onSelect(index:int):void { trace("你点击的当前索引是:"+index); } } } 2017-06-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

48. list方法onSelect失效 [ 54%]

...mgList.renderHandler = new Laya.Handler(this, this.onRender); this.imgList.selectHandler = new Laya.Handler(this, this.onSelect); } onSelect(index) { this.reqImage.skin = listArr[index].img.skin; if (defaultImgs[this.reqImage.skin]) { this.reqImage["guid"] = defaultImgs[this.reqImage.skin]; } this.i...

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

49. 有个问题想不明白,请教一下。为什么List的selectedIndex要对List进行重新渲染 [ 52%]

...dIndex值和对选中状态的显示和隐藏,派发change事件,调用selectHandler。 为什么要对List重新渲染。如果我的list里的子项内容修改了,但是selectedIndex重新渲染List,那么修改过的子项不是就变回最初的内容。那不就是不对了。 而且...

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

50. <多人PVE游戏大厅>案例——含演示 [ 52%]

...慢摸索,总结下list:创建好item项,其所有ui都是基于name;selectHandler只有在index改变了才会触发,当你使用同一个list,仅刷新内容时,用mouseHandler;你可以使用,自定义数据结构来填充list.array,会相当方便;填充item时,不需要所...

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