大约有 46 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0033 秒)
...nctionsList.array = data; } function renderList(item) { item.setLabel(item.dataSource); } function onEaseFunctionChange(list) { character.pos(100, 50); tween && tween.clear(); tween = Tween.to(character, { x: 350, y: 250 }, duration, Ease[list.selectedItem]); } function createDurationCrontroller() {...
来源: Laya_示例 发布时间: 20240930
...); easeFunctionsList.array = data; } renderList(item) { item.setLabel(item.dataSource); } onEaseFunctionChange(list) { const Tween = Laya.Tween, Ease = Laya.Ease; character.pos(100, 50); tween && tween.clear(); tween = Tween.to(character, { x: 350, y: 250 }, duration, Ease[list.selectedItem]); } cre...
来源: Laya2.0_示例 发布时间: 20240930
...der); function onImgListRender(box: Laya.Box) { let model = box.dataSource; let panel = box.getChildByName('panel') as Laya.Panel; let img = panel.getChildByName('img') as Laya.Image; img.skin = model; let reset = function () { let source ...
来源: Laya_社区 发布时间: 20180514
...ist.array = effList; } function updateItem(cell, index) { console.log(cell.dataSource); cell.setImg(cell.dataSource); } function onSelect(index) { console.log("当前选择的索引:" + index); } 我想实现的效果是 设置每个特效宽高都为80 * 80 然后一排显示3个 界...
来源: Laya_社区 发布时间: 20170627
...一个box,这里面的数据该怎么渲染呢 使用 _data={name值:{datasource:‘dd’}} 这样不能不渲染到渲染项内部box的数据,该怎么做的呢? 2018-07-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...
来源: Laya_社区 发布时间: 20180720
...rivate updateItem(cell: Item): void { cell.setImg(cell.dataSource); } private onSelect(index: number): void { console.log("当前选择的索引:" + index); console.log("目的是哪一关" + this.box_arr[index]); ...
来源: Laya_社区 发布时间: 20210122
...} list.array = data; } function updateItem(cell, index) { cell.setImg(cell.dataSource); } function onSelect(index) { console.log("当前选择的索引:" + index); } })(); ```
来源: Laya2.0_文档 发布时间: 20210714
...; } private updateItem(cell: Item, index: number): void { cell.setImg(cell.dataSource); } private onSelect(index: number): void { console.log("当前选择的索引:" + index); } } import Box = Laya.Box; import Image = Laya.Image; class Item extends Box { public static WID: number = 373; public st...
来源: Laya2.0_文档 发布时间: 20210715
...; } private updateItem(cell: Item, index: number): void { cell.setImg(cell.dataSource); } private onSelect(index: number): void { console.log("当前选择的索引:" + index); } } class Item extends Laya.Box { static WID: number = 373; static HEI: number = 85; private img: Laya.Image; constructor...
来源: Laya3.0_文档 发布时间: 20230927
...; } private function onRender(cell:Item,index:int):void { cell.setImg(cell.dataSource.src); cell.setLabel(cell.dataSource.txt); } } } import laya.ui.Image; import laya.ui.Label; import laya.ui.View; class Item extends View { public static var WID:int=150; public static var HEI:int=85; private var im...
来源: Laya_社区 发布时间: 20170626