大约有 75 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0048 秒)
...r(var m:int=0;m<21;m++){ data.push({m_label:"No."+m}); } mDemoUi.m_list.array=data; Laya.stage.addChild(mDemoUi); ... private function onChange():void{ trace("list index= "+mDemoUi.m_list.scrollBar.value); mDemoUi.valueLab.text="滚动条位置value= "+mDemoUi.m_list.scrollBar.value; } 如上...
来源: Laya_社区 发布时间: 20171016
...名其妙消失,物体渲染队列的_IndexInList会被破坏 我用list.array=Array;数据全部插进去数组里了,但是list中没有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 两个问题 有元...
来源: Laya_社区 发布时间: 20180809
...h("res/1.jpg"); data.push("res/1.jpg"); data.push("res/1.jpg"); } rankList.array = data; function updateItem(cell, index) { cell.setImg(cell.dataSource); } 发布小游戏将code.js 发到开放域设置的目录下面改名为index.js 报错了 具体图片如下 附件 : --> 2018-04-16 ...
来源: Laya_社区 发布时间: 20180416
...rSkin =""; Laya.stage.addChild(list); list.array =this.arr; list.renderHandler =new Laya.Handler(this,this.updateItem); this.listArr.push(list); //------------------------------------------------------------------------------ updateItem...
来源: Laya_社区 发布时间: 20190522
...ctory: Laya.Templet = null; public isFinish = false; private mArmatureUsed:Array<Laya.Skeleton> = []; private mArmatureUnUsed:Array<Laya.Skeleton> = []; public static getInstance():DdzLandlordAni{ return this.instance(DdzLandlordAni); } public constructor(){ super(); this.initTemplet...
来源: Laya_社区 发布时间: 20190821
... 微信 fundge 赞同来自: class List extends ui.UI_ListUI { test: Array<number> = []; constructor() { super(); this.list.vScrollBarSkin = ''; this.list.itemRender = Item_List; this.list.renderHandler = new Laya.Handler(this, ...
来源: Laya_社区 发布时间: 20170614
...ons = false; let slider = scrollBar.slider; slider.bar.stateNum = 1; let txArray = ; for (let i = 0; i <20; ++i) { let list = new Laya.Sprite(); list.width = 600 ; list.height = 155; list.loadImage('xxx.png'); //此处无论是这样给 list.on(Laya.Event.CLICK, this, () => { console.log(41313...
来源: Laya_社区 发布时间: 20190711
...) }); }) // console.log("表的数据:", JSON.stringify(data)); listNode.array = data; } 2020-08-05 0 2 分享 微博 QZONE 微信 赞同来自: 这四个图片都是已经加载好了的, 但是第二张图就显示成纯白色的图了 2020-08-05 0 0 分享 微博 QZONE 微信 kylin 赞同...
来源: Laya_社区 发布时间: 20200805
...{ data.push({ bgColor:{color:'#f3d9b4'}, type:false }) } record_slide_list.array = data; record_slide_list.selectEnable=true; record_slide_list.selectHandler = new Handler(this, onSelect,[record_slide_list]); record_slide_list.renderHandler = new Handler(this, onRender); function onRender(item,index...
来源: Laya_社区 发布时间: 20170803
...建数据 var data = this.createData(9, "初始数据"); this.refreshList.array = data; // 添加事件监听 this.refreshList.on(Event.MOUSE_UP, this, this.stageOnMouseUp); this.refreshList.on(Event.MOUSE_OUT, this, this.stageOnMouseUp); //游戏逻辑关联引擎的停止滚动接口 this.refreshL...
来源: Laya2.0_示例 发布时间: 20261115