大约有 1,765 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0056 秒)
...游戏 this.StartLeft.on(Laya.Event.CLICK,null,function(){ //TO GamePage2 console.log("left onclick"); Laya.stage.addChild(new GameView); }); //分享快乐 this.StartRight.on(Laya.Event.CLICK,null,function(){ //超链接 onLink(href); }); //天猫Logo this.img_TianMao.on(Laya.Event.CLICK,null,f...
来源: Laya_社区 发布时间: 20180810
...r _proto = StorageUILayer.prototype; _proto.onclick = function(params){ console.log("--------------------------------hhhhhhhhhhh- "); } ---------------------------------------------------------- 麻烦看下,这个为何监听不到点击的事件呢?会是什么原因可能导致监听不...
来源: Laya_社区 发布时间: 20171113
...关的链接 提交 2 个回复 Laya_Yan 赞同来自: Tick 、131*****361 console.log("加载字体"); let ttfloader = new Laya.TTFLoader(); ttfloader.load("font/ubuntu-bold.ttf"); ttfloader.fontName = "ubuntu"; ttfloader.err...
来源: Laya_社区 发布时间: 20220330
...ndler.create(this, this.onProcess), null, 1, false); } onComplete(e,a,b) { console.log('资源加载完成!!',e,a,b); var cfg = Laya.Loader.getRes("config/data.txt"); console.log('cfg===',cfg, Laya.Loader.groupMap); } 2018-08-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20180816
...,例如节点被添加到舞台后 onEnable(): void { console.log("2d gamescene onEnable"); let btn:Laya.Button = LayaUtil.GetChildByPath(this.owner, "CreatePanel/BtnCreate"); btn.clickHandler = Laya.Handler.create(this, this.onCl...
来源: Laya_社区 发布时间: 20231221
... (zipData: JSZip) => { console.log(zipData.files); for (let i in zipData.files) { console.log(`key=${i},value=${zipData.files[i]}`); } ...
来源: Laya_社区 发布时间: 20230208
...is.onLoading, null, false)); } private onLoading(progress: number): void { console.log("加载进度: " + progress); } private onAssetLoaded(texture:Laya.Texture){ console.log("加载结束"); } Log输出内容 Warning!,this class[MiniAdpter] already exist: Object {} 加载进度: 0.3 加载进度: ...
来源: Laya_社区 发布时间: 20180314
...说一下思路?或者上完成的代码? LoseFocus(){ console.log("失去焦点") this.NowPlayMusic.stop(); } GetFocus(){ console.log("获取焦点"); Laya.SoundManager.stopMusic(); Laya.SoundM...
来源: Laya_社区 发布时间: 20200220
...n", Laya.Handler.create(this, function (obj) { console.log('hero',obj); }), null, Laya.Loader.PREFAB); Laya.loader.create("prefab/WeiTiao.json", Laya.Handler.create(this, function (obj) { console.log('WeiTiao',...
来源: Laya_社区 发布时间: 20211026
...r.getUserGold(); if(gold > 500){ Online.joinGame().then(function(data){ console.log(data); StorageHelper.setDeskNo(data.desk.deskNo); StorageHelper.setDeskSeat(data.ownSeatNo); Laya.stage.destroyChildren(); var playSence = new OnlinePlaySence(data); Laya.stage.addChild(playSence); },function(data...
来源: Laya_社区 发布时间: 20171219