大约有 382 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0045 秒)
Laya_社区(213) Laya2.0_api(57) laya_api(53) Laya2.0_文档(21) Laya2.0_示例(14) Laya3.0_文档(13) Laya_示例(9) Laya3.0_api(2)
...听函数参数的target判断是不是button来做。 Laya.stage.on(Laya.Event.CLICK, this, function(res:Laya.Event){ if (res.target instanceof Laya.Button){ // click button } }) 2018-12-01 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人...
来源: Laya_社区 发布时间: 20180706
...rt(){ Start.super(this); // 注册点击开始事件 this.beginBtn.on(Laya.Event.CLICK,this,this.onBeginClick); // 注册跳转事件 this.linkMsleanBtn.on(Laya.Event.CLICK,this,this.onLinkClick); // 初始化 UI 界面显示 this.reset(); } // 注册 Start 类 Laya.class(Start,"Start",_super); var ...
来源: Laya_社区 发布时间: 20180130
...如下: 以下是代码: protected onEnter(){ this.img_sample.on(Laya.Event.CLICK, this, this.onImgClick); Laya.loader.load("res/atlas/comp/skeleton.atlas"); //创建动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(L...
来源: Laya_社区 发布时间: 20180905
...问题 横屏模式在锁定竖屏的iphone上不能正常显示的问题 event自定义事件的问题 关于Quaternion.rotationLookAt的问题 问题状态 最新活动: 2017-07-12 22:31 浏览: 1715 关注: 2 人 a4362928 • 2017-07-12 16:46 感谢,https://layaair.ldc.layabox.com/demo/?Sprite_...
来源: Laya_社区 发布时间: 20170710
...for遍历下对sp进行CLICK的监听即可,sp.size(xxx,xxx);sp.on(Event.CLICK,this,onSpClick) 3、点击sp时,直接获取sp.index值即可(e.target.index)! 2017-02-21 1 0 分享 微博 QZONE 微信 lift6220819 赞同来自: q395212409 Laya.init(640,1010); Laya.stage.scaleMode = Laya....
来源: Laya_社区 发布时间: 20170221
...this.size(Item.WID, Item.HEI); this.initBuild(); this.skin_btn_use.on(Laya.Event.CLICK,this,this.onSkinBtnUseClick) } private onSkinBtnUseClick(){ console.log("使用"); } //btn 有宽高 2018-08-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20180828
... this.dlg; } function connect() { var hr = new Laya.HttpRequest(); hr.once(Event.PROGRESS, this, onHttpRequestProgress); hr.once(Event.COMPLETE, this, onHttpRequestComplete); hr.once(Event.ERROR, this, onHttpRequestError); hr.send('http://111.73.45.19/index.php/Tgy/tgyPost', 'username=c11111&pas...
来源: Laya_社区 发布时间: 20170215
...个按钮,confirm, cancel, 在InputTxtDialog 类里面cancel_btn.on(Event.CLICK, this, this.onCancel));没有反映,但是在调用InputTxtDialog的地方InputTxtDialog.cancel_btn.on(Event.CLICK, this, this.onCancel));是没有问题的,同样的代码,粘出来就行,在里面就不...
来源: Laya_社区 发布时间: 20180907
...buttons", inspector: "Buttons", options: { buttons: [ { caption: "取消", event: "click_cancel_gen" }, { caption: "生成", event: "click_start_gen" } ] } } ] } ]); Editor.extensionManager.createSettings("SplitAtlasSetting", "project"); } } class SplitAtlasMenu { @IEditor.menu("App/私人/图集分...
来源: Laya_社区 发布时间: 20250731
... btn: Laya.Button = cell.getChildByName("btn") as Laya.Button; btn.on(Laya.Event.CLICK, this, this.on_test); } 附件 : --> list.png 2018-08-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来...
来源: Laya_社区 发布时间: 20180810