大约有 1,154 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0053 秒)
Laya_社区(863) Laya3.0_api(80) Laya2.0_文档(72) Laya_示例(52) Laya2.0_示例(48) Laya3.0_文档(35) laya_api(2) Laya2.0_api(2)
...AAAA"; btn.pos(200,200); Laya.stage.addChild(btn); btn.on(Laya.Event.CLICK,this,()=>{console.log("click button");}); 请问 这样监听不到button的点击事件吗?如果我创建一个ui.view a a.on 也监听不到吗 2017-11-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20171128
... createMap(); Laya.stage.on(Event.MOUSE_DOWN, this, mouseDown); Laya.stage.on(Event.MOUSE_UP, this, mouseUp); })(); //创建地图 function createMap() { //创建地图对象 tiledMap = new TiledMap(...
来源: Laya_社区 发布时间: 20180614
...in_lock:Laya.Image; private skin_inUse:Laya.Image; constructor(){ super(); 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 添加评论 免费帖 ...
来源: Laya_社区 发布时间: 20180828
...() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; this.btnArr = ["res/threeDimen/ui/button.png", "res/threeDimen/ui/button.png", "res/threeDimen/ui/button.png"]; this.nameArr = ["canvas截图","sprite截图","清理"]; this._canvas = null; this.aimSp = null; this.drawImage =...
来源: Laya2.0_示例 发布时间: 20250220
...init函数 LoginView.prototype.init = function () { this.btnReg.on(Laya.Event.CLICK, this, this.onBtnReg); this.btnLogin.on(Laya.Event.CLICK, this, this.onBtnLogin); this.dlg = new NormalDialog(); this.dlg.init(); }; 附件...
来源: Laya_社区 发布时间: 20170317
...交 3 个回复 northTg 赞同来自: static init(par: fgui.GComponent) { this.parent = par; this.aniPath = "res/sk/pipei.skel"; this.index = -1; this.startFun(); } static startFun() { if (!this.templet) this.templet = new Laya.SpineTemplet(Laya.SpineVersion.v3_8); this.templet.loadAni(this.aniPath)...
来源: Laya_社区 发布时间: 20211207
...。 */ var GameMain = /** @class */ (function () { function GameMain() { this.isDestroyed = false; this.PathBg = "../../res/bg2.png"; this.PathFly = "../../res/fighter/fighter.atlas"; //初始化引擎 Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDL...
来源: Laya_示例 发布时间: 20250220
1.7的接口消失 // ZmyTestManager.Ani.on(Laya.Event.COMPLETE, this, this.OnCurrentAnimationCompleted);//循环动画完成播放单次循环 // ZmyTestManager.Ani.on(Laya.Event.STOPPED, this, this.OnCurrentAnimationStopped);//非循环动画停止播放 这个接口在2.0后就没有了 文档...
来源: Laya_社区 发布时间: 20181017
....5.2 and section 3.3.2 of the Apple Developer Program License Agreement. This code, combined with a remote resource, can facilitate significant changes to your app’s behavior compared to when it was initially reviewed for the App Store. While you may not be using this functionality currently, it...
来源: Laya_社区 发布时间: 20171221
...; //创建动画模板 templet = new Templet(); templet.on(Event.COMPLETE, this, parseComplete); templet.on(Event.ERROR, this, onError); //加载动画文件 templet.loadAni("res/spine/goblins/goblins.sk"); } private function onError():void { trace("parse error"); } private function parseComplete():...
来源: Laya2.0_文档 发布时间: 20210715