大约有 4,000 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0082 秒)
Laya_社区(3251) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(94) Laya3.0_文档(86) Laya2.0_api(9) laya_api(6)
...= (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
...动作的骨骼动画 替换插图没有用 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
... 提交 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
...则不销毁子节点。 */ destroy(destroyChild: boolean = true): void { this.destroyed = true; this._destroyAllComponent(); this._parent && this._parent.removeChild(this); //销毁子节点 if (this._children) { if (destroyChild) this.destroyChildren(); else this.removeChildren(); } this...
来源: Laya_社区 发布时间: 20220224
...鼠标 画笔 画线 锯齿 mouseMove(e:Laya.Event){ /**/ var p:Laya.Point=this.startPoint; this.cls.graphics.drawPath(0,0,[ ["moveTo", p.x,p.y], ["lineTo", e.stageX,e.stageY] ],null,{strokeStyle:"#ff0000",lineWidth:15,lineJoin:"round",lineCap:"round"}); //*/ //this.cls.graphics.drawLine(this.startP...
来源: Laya_社区 发布时间: 20220920
...= 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_示例 发布时间: 20241002
...json", type:Laya.Loader.BUFFER} ], Laya.Handler.create(this, this.onLoaded)); Laya.core.js 调试log __proto._endLoad=function(resInfo,content){ var url=resInfo.url; //输出//////////////////////////////// console.log("url:"+url); content==null?console.log("content null")...
来源: Laya_社区 发布时间: 20200429
...../../res/ui/radioButton (3).png"]; Laya.loader.load(skins, Handler.create(this, initRadioGroups)); })(); function initRadioGroups() { for (var i = 0; i ; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = ...
来源: Laya_示例 发布时间: 20241002
...值。 */ __proto.getInt16=function(){ if (this._pos_+2 > this._length)throw "getInt16 error - Out of bounds"; var us=this._d_.getInt16(this._pos_,this._xd_); this._pos_+=2; return us; } 只在那个 If 那...
来源: Laya_社区 发布时间: 20181025