大约有 4,034 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0083 秒)
Laya_社区(3264) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(107) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...: private createAnimation(images: Array<string>): Laya.Animation { this.animation = new Laya.Animation(); this.ui.addChild(this.animation); this.animation.loadImages(images); this.animation.interval = 70; this.animation.play(0); return this.animation } 我不知道你是怎么做的。这...
来源: Laya_社区 发布时间: 20190325
...yer; var loadMap = (function (_super) { function loadMap() { loadMap.super(this); } Laya.class(loadMap,"loadMap",_super); var _proto = loadMap.prototype; _proto.init = function() { this.num = ""; this.map = new TiledMap(); } _proto.showMap = function(num) { this.num = num; this.map.createMap("map/le...
来源: Laya_社区 发布时间: 20170605
...邀请: 与内容相关的链接 提交 2 个回复 金风 赞同来自: this.xhr.once(Laya.Event.COMPLETE, this, this.CompleteHandler); this.xhr.once(Laya.Event.ERROR, this, this.ErrorHandler); this.xhr.on(Laya.Event.PROGRESS, this, this.ProgressHandler); this.xhr.send(Global.WebHost+this.currentRe...
来源: Laya_社区 发布时间: 20200629
...uot;"+itemlo.image, m_label:""+allEquipArr[i].amount}); } } this.otherItem_list.array = data; this.otherItem_list.mouseHandler = new Handler(this,otherItem_listRender); fengjingmeng • 2018-03-21 16:44 你这个是list的逻辑,item的更新逻辑呢。item拿到数据后你做了...
来源: Laya_社区 发布时间: 20180321
...此方法只执行一次 onEnable(): void { // 添加2D线渲染器组件 this.line2DRender = this.owner.addComponent(Laya.Line2DRender); // 设置线的宽度 this.line2DRender.lineWidth = 5; } // 鼠标按下时开始绘制 onMouseDown(evt: Laya.Event): void { this.isDrawing = true; // 记录起...
来源: Laya3.0_文档 发布时间: 20250214
...ALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(skin, Handler.create(this, this.onLoadComplete)); } onLoadComplete() { let cb = this.createComboBox(skin); cb.autoSize = true; cb.pos((Laya.stage.width - cb.width) / 2, 100); cb.autoSize = false; } createComboBox(skin) { const ComboBox = Laya.Com...
来源: Laya2.0_示例 发布时间: 20250224
...= (function(_super){ function GameInfo(){ GameInfo.super(this); this.pauseBtn.on(Laya.Event.CLICK, this, this.onPauseBtnClick); this.reset(); } Laya.class(GameInfo, "GameInfo", _super); var _proto = GameInfo.prototype; _proto.reset = ...
来源: Laya_社区 发布时间: 20170416
...多个button如何区分 通过 for 循环 加入多个button 添加事件 this.emojiBut1.on(Laya.Event.CLICK,this,this.onEmojiBut1Click); 多个button 如何区分 点击的哪一个button 可以设置tag吗 或者通过监听事件透传? 附件 : --> 2017-04-25 添加评论 免费帖 --> ...
来源: Laya_社区 发布时间: 20170425
... 提交 3 个回复 Laya_Aaron 赞同来自: button.on(Laya.Event.CLICK, this, function(event:Laya.Event){ console.log("点击到了UI"); event.stopPropagation(); }); 完整代码 2018-05-30 0 17 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 你这个问题描述的很明确,很好,这个...
来源: Laya_社区 发布时间: 20180529
...动作的骨骼动画 替换插图没有用 sp(){ this.skebqb = new Laya.Skeleton(SkeTemp.tempbqb, 1); this.skebqb.play(4, false); this.skebqb.on(Laya.Event.STOPPED,this,this.changeSkin); this.owner.addChild(this.skebqb); ...
来源: Laya_社区 发布时间: 20201231