大约有 791 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0064 秒)
Laya_社区(764) Laya3.0_文档(5) laya_api(4) Laya3.0_api(4) Laya2.0_示例(4) Laya2.0_api(4) Laya2.0_文档(3) Laya_示例(3)
...像素为单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalRotation : Number[read-only] 获得相对于stage的全局旋转值(会叠加父亲节点的旋转值)。 Sprite globalScaleX : Number[read-only] 获得...
来源: Laya2.0_api 发布时间: 20190513
... new Laya.Handler(this, UpdateMarketItem); Laya.stage.addChild(list); list.array = that._items;updateitem代码如下: function UpdateMarketItem(cell, index) { // {id:1,name:"10金豆-测试",price:0.01,title:"10金豆-测试",desc:"测试",balance:10,gift:0,imgPath:"res\\common\\BalanceSellDlg\\x...
来源: Laya_社区 发布时间: 20170422
...dSprite); //初始化当前菜品下标 this.index = 0; //数据数组 foodArray = ; foodArray.push(new Food("菜品1", "1", 0)); foodArray.push(new Food("菜品2", "2", 1)); foodArray.push(new Food("菜品3", "3", 2)); foodArray.push(new Food("菜品4", "4", 3)); foodArray.push(new Food("菜品5", ...
来源: Laya_社区 发布时间: 20180407
...es/ui/listskins/4.jpg"); data.push("../../res/ui/listskins/5.jpg"); } list.array = data; } function updateItem(cell, index) { cell.setImg(cell.dataSource); } function onSelect(index) { console.log("当前选择的索引:" + index); } })(); 2018-07-25 0 0 分享 微博 QZONE 微信 为什么...
来源: Laya_社区 发布时间: 20180724
...lean, repeat: boolean, delay: number, caller: any, method: Function, args: Array<any>, coverBefore: boolean): void; /** * 定时执行一次。 * @param delay 延迟时间(单位为毫秒)。 * @param caller 执行域(this)。 * @param method 定时器回调函数。 * @param args 回调参数...
来源: Laya_社区 发布时间: 20171109
...相关的链接 提交 2 个回复 cry_11858 赞同来自: 原先用label-Array listArray行不通。到点击事件的时候,变得非常复杂。 2017-03-29 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 这里有个例子,你可以参考下! listdemo_item展开与收起.rar 2017-...
来源: Laya_社区 发布时间: 20170329
...采用WebGL渲染模式,在置灰状态,不能完全灰化 我用list.array=Array;数据全部插进去数组里了,但是list中没有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 问题状态 最新...
来源: Laya_社区 发布时间: 20241217
...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
... 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
...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