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

大约有 343 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0045 秒)

1. UI-List [ 100%]

...class Item extends Box { constructor(){ super(); const Image = Laya.Image; this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); } setImg(src) { this.img.skin = src; } } class UI_List { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya....

来源: Laya2.0_示例 发布时间: 20240929

2. UI-List [ 99%]

...= Laya.Image; var WID = 373, HEI = 85; function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box); // 主要逻辑代码 var Stage = Laya.Stage; var List = Laya....

来源: Laya_示例 发布时间: 20240929

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

...selectEnable = true;         list.selectHandler = new Handler(thisthis.onSelect);         list.renderHandler = new Handler(thisthis.updateItem);                  // 设置数据项为对应图片的路径         var data: Array<String>...

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

4. List翻页效果 [ 97%]

...x: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.changeHandler = new Laya.Handler(this, this.onChange) this.list_rule.mouseHandler = new Laya...

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

5. List翻页效果怎么实现 [ 97%]

...x: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.changeHandler = new Laya.Handler(this, this.onChange) this.list_rule.mouseHandler = new Laya...

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

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

...x: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.changeHandler = new Laya.Handler(this, this.onChange) this.list_rule.mouseHandler = new Laya...

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

7. List中放TextInput,当list滚动的时候,复用会有问题,input中的内容会乱,尤其有输入框focus的情况下 [ 96%]

...ui.TextInput; var WID = 373, HEI = 30; function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.img.graphics.drawRect(0, 0, WID, HEI - 2, "#eeeeee"); this.label = new Label(); this.addChild(this.label); this.input = new TextInput(); this.a...

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

8. 关于list空间的问题 [ 96%]

...s/ui/listskins/1.jpg");     data.push("../../res/ui/listskins/2.jpg"); } this._ui.serverList.vScrollBarSkin = ""; this._ui.serverList.selectHandler = new Handler(this, this.onSelect); this._ui.serverList.renderHandler = new Handler(this, this.onUpdateItem); //this._ui.serverList.array = this._load...

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

9. 列表组件 · LayaAir3.0文档 · LAYABOX [ 96%]

...(var m: number = 0; m < 20; m++) { data.push({ m_label: "No." + m }); } this.list.array = data; } } 代码中,m_label的命名要与List列表项下的Label组件命名相同。 1.2.5 运行查看效果 将脚本挂载到Scene2D场景上,然后将List组件拖入到脚本暴露出来的属性...

来源: Laya3.0_文档 发布时间: 20230927

10. IDE-显示IDE创建的界面 [ 95%]

... Laya.Event; // 创建TestPageUI的子类 function TestUI() { TestUI.super(this); //btn是编辑器界面设定的,代码里面能直接使用,并且有代码提示 this.btn.on(Event.CLICK, this, onBtnClick); this.btn2.on(Event.CLICK, this, onBtn2Click); function onBtnClick() { //手动控制组...

来源: Laya_示例 发布时间: 20240929